From 189396c9594ec9f4f6ab6fe0f4a45193028359c8 Mon Sep 17 00:00:00 2001 From: Tido Klaassen Date: Thu, 7 Apr 2016 18:58:44 +0200 Subject: [PATCH] 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. --- lib/stm32/f7/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stm32/f7/Makefile b/lib/stm32/f7/Makefile index 3c894045..3eafd2f7 100644 --- a/lib/stm32/f7/Makefile +++ b/lib/stm32/f7/Makefile @@ -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 \