summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-01-30 14:39:46 +1100
committerDamien George <damien.p.george@gmail.com>2020-01-30 14:39:46 +1100
commit7bb2bf965e529302aececb30d0b42014cac641fa (patch)
treedd0e4fd84ade3c18c4a13cf0caaa1605e5c68c84
parent30501d3f54fa642770faefa117b4c39d95aff549 (diff)
stm32/Makefile: Allow a board's .mk file to add things to CFLAGS.
-rw-r--r--ports/stm32/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile
index 6a6242df5..96f10fe98 100644
--- a/ports/stm32/Makefile
+++ b/ports/stm32/Makefile
@@ -87,7 +87,7 @@ CFLAGS_MCU_l4 = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4
CFLAGS_MCU_h7 = $(CFLAGS_CORTEX_M) -mtune=cortex-m7 -mcpu=cortex-m7
CFLAGS_MCU_wb = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4
-CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -std=gnu99 -nostdlib $(CFLAGS_MOD) $(CFLAGS_EXTRA)
+CFLAGS += $(INC) -Wall -Wpointer-arith -Werror -std=gnu99 -nostdlib $(CFLAGS_MOD) $(CFLAGS_EXTRA)
CFLAGS += -D$(CMSIS_MCU)
CFLAGS += $(CFLAGS_MCU_$(MCU_SERIES))
CFLAGS += $(COPT)