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:
Tido Klaassen 2016-04-07 18:58:44 +02:00
parent 6b5150a4dc
commit 189396c959
1 changed files with 1 additions and 1 deletions

View File

@ -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 \