File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ INC += -I..
1313INC += -I$(BUILD )
1414
1515CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion
16- CFLAGS = $(INC ) -Wall -Werror -ansi - std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4 ) $(COPT )
16+ CFLAGS = $(INC ) -Wall -Werror -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4 ) $(COPT )
1717
1818# Debugging/Optimization
1919ifeq ($(DEBUG ) , 1)
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ include ../py/mkenv.mk
2020CROSS_COMPILE ?= arm-none-eabi-
2121
2222CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -march=armv7e-m -mabi=aapcs -mcpu=cortex-m4 -msoft-float -mfloat-abi=soft -fsingle-precision-constant -Wdouble-promotion
23- CFLAGS = -Wall -Wpointer-arith -Werror -ansi - std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4 ) -Os
23+ CFLAGS = -Wall -Wpointer-arith -Werror -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4 ) -Os
2424CFLAGS += -g -ffunction-sections -fdata-sections -fno-common -fsigned-char -mno-unaligned-access
2525CFLAGS += -Iboards/$(BOARD )
2626CFLAGS += $(CFLAGS_MOD )
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ CFLAGS_XTENSA = -fsingle-precision-constant -Wdouble-promotion \
4141 -Wl,-EL -mlongcalls -mtext-section-literals -mforce-l32 \
4242 -DLWIP_OPEN_SRC
4343
44- CFLAGS = $(INC ) -Wall -Wpointer-arith -Werror -ansi - std=gnu99 -nostdlib -DUART_OS=$(UART_OS ) \
44+ CFLAGS = $(INC ) -Wall -Wpointer-arith -Werror -std=gnu99 -nostdlib -DUART_OS=$(UART_OS ) \
4545 $(CFLAGS_XTENSA ) $(CFLAGS_MOD ) $(COPT ) $(CFLAGS_EXTRA )
4646
4747LDSCRIPT = esp8266.ld
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ INC += -I$(BUILD)
2020# compiler settings
2121CWARN = -Wall -Werror
2222CWARN += -Wpointer-arith -Wuninitialized
23- CFLAGS = $(INC) $(CWARN) -ansi - std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
23+ CFLAGS = $(INC) $(CWARN) -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
2424
2525# Debugging/Optimization
2626ifdef DEBUG
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ ifeq ($(CROSS), 1)
2222DFU = ../tools/dfu.py
2323PYDFU = ../tools/pydfu.py
2424CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion
25- CFLAGS = $(INC ) -Wall -Werror -ansi - std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4 ) $(COPT )
25+ CFLAGS = $(INC ) -Wall -Werror -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4 ) $(COPT )
2626else
27- CFLAGS = -m32 $(INC ) -Wall -Werror -ansi - std=gnu99 $(COPT )
27+ CFLAGS = -m32 $(INC ) -Wall -Werror -std=gnu99 $(COPT )
2828endif
2929
3030# Debugging/Optimization
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ INC += -I$(BUILD)
1919# compiler settings
2020CWARN = -Wall -Werror
2121CWARN += -Wpointer-arith -Wuninitialized
22- CFLAGS = $(INC ) $(CWARN ) -ansi - std=gnu99 $(CFLAGS_MOD ) $(COPT ) $(CFLAGS_EXTRA )
22+ CFLAGS = $(INC ) $(CWARN ) -std=gnu99 $(CFLAGS_MOD ) $(COPT ) $(CFLAGS_EXTRA )
2323CFLAGS += -fdata-sections -ffunction-sections -fno-asynchronous-unwind-tables
2424
2525# Debugging/Optimization
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ INC += -I$(XC16)/include
2121INC += -I$(XC16 ) /support/$(PARTFAMILY ) /h
2222
2323CFLAGS_PIC16BIT = -mcpu=$(PART ) -mlarge-code
24- CFLAGS = $(INC ) -Wall -Werror -ansi - std=gnu99 -nostdlib $(CFLAGS_PIC16BIT ) $(COPT )
24+ CFLAGS = $(INC ) -Wall -Werror -std=gnu99 -nostdlib $(CFLAGS_PIC16BIT ) $(COPT )
2525
2626# Debugging/Optimization
2727ifeq ($(DEBUG ) , 1)
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ INC += -I$(BUILD)
1515INC += -I../tools/tinytest/
1616
1717CFLAGS_CORTEX_M3 = -mthumb -mcpu=cortex-m3 -mfloat-abi=soft
18- CFLAGS = $(INC ) -Wall -Wpointer-arith -Werror -ansi - std=gnu99 $(CFLAGS_CORTEX_M3 ) $(COPT ) \
18+ CFLAGS = $(INC ) -Wall -Wpointer-arith -Werror -std=gnu99 $(CFLAGS_CORTEX_M3 ) $(COPT ) \
1919 -ffunction-sections -fdata-sections
2020
2121# Debugging/Optimization
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ CFLAGS_MCU_f4 = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4 -DMCU_SERIES
5656CFLAGS_MCU_f7 = $(CFLAGS_CORTEX_M ) -mtune=cortex-m7 -mcpu=cortex-m7 -DMCU_SERIES_F7
5757CFLAGS_MCU_l4 = $(CFLAGS_CORTEX_M ) -mtune=cortex-m4 -mcpu=cortex-m4 -DMCU_SERIES_L4
5858
59- CFLAGS = $(INC ) -Wall -Wpointer-arith -Werror -ansi - std=gnu99 -nostdlib $(CFLAGS_MOD )
59+ CFLAGS = $(INC ) -Wall -Wpointer-arith -Werror -std=gnu99 -nostdlib $(CFLAGS_MOD )
6060CFLAGS += -D$(CMSIS_MCU )
6161CFLAGS += $(CFLAGS_MCU_$(MCU_SERIES ) )
6262CFLAGS += $(COPT )
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ INC += -I../lib/mp-readline
3636INC += -I$(BUILD )
3737INC += -Icore
3838
39- CFLAGS = $(INC ) -Wall -Wpointer-arith -ansi - std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4 )
39+ CFLAGS = $(INC ) -Wall -Wpointer-arith -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4 )
4040LDFLAGS = -nostdlib -T mk20dx256.ld -msoft-float -mfloat-abi=soft
4141
4242ifeq ($(USE_ARDUINO_TOOLCHAIN ) ,1)
You can’t perform that action at this time.
0 commit comments