From 862b07fda21bc69c99169ef070fff0325d9df71e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se> Date: Mon, 8 Feb 2016 11:19:01 +0100 Subject: [PATCH] boards/cortexm_common: Use code style CFLAGS from Makefile.cflags --- cpu/Makefile.include.cortexm_common | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cpu/Makefile.include.cortexm_common b/cpu/Makefile.include.cortexm_common index f7d20a35cd..a31165af98 100644 --- a/cpu/Makefile.include.cortexm_common +++ b/cpu/Makefile.include.cortexm_common @@ -35,17 +35,16 @@ ifneq (llvm,$(TOOLCHAIN)) # not building with LLVM export CFLAGS_CPU += -mno-thumb-interwork endif -export CFLAGS_STYLE = -std=gnu99 -Wall -Wstrict-prototypes -Werror=implicit-function-declaration export CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums export CFLAGS_DBG = -ggdb -g3 export CFLAGS_OPT ?= -Os -export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_STYLE) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT) +export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT) export ASFLAGS += $(CFLAGS_CPU) $(CFLAGS_DEBUG) export LINKFLAGS += -L$(RIOTCPU)/$(CPU)/ldscripts -L$(RIOTCPU)/cortexm_common/ldscripts export LINKFLAGS += -T$(RIOTCPU)/$(CPU)/ldscripts/$(CPU_MODEL).ld -Wl,--fatal-warnings -export LINKFLAGS += $(CFLAGS_DEBUG) $(CFLAGS_CPU) $(CFLAGS_STYLE) -static -lgcc -nostartfiles +export LINKFLAGS += $(CFLAGS_DEBUG) $(CFLAGS_CPU) -static -lgcc -nostartfiles export LINKFLAGS += -Wl,--gc-sections # This CPU implementation is using the new core/CPU interface: -- GitLab