stm32f7: fix build failure when CFLAGS is set
Use TGT_CFLAGS instead of CFLAGS in Makefile. Otherwise build will abort when CFLAGS is passed to the build process by make option or environment.
This commit is contained in:
parent
6b5150a4dc
commit
189396c959
|
@ -29,7 +29,7 @@ AR = $(PREFIX)-ar
|
|||
# STM32F7 only supports single precision FPU
|
||||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv5-sp-d16
|
||||
|
||||
CFLAGS = -Os -g \
|
||||
TGT_CFLAGS = -Os -g \
|
||||
-Wall -Wextra -Wimplicit-function-declaration \
|
||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||
-Wundef -Wshadow \
|
||||
|
|
Loading…
Reference in New Issue