build: Introduce concept of SoC specific build flags

Introduce a soc-cflags, soc-cxxflags, and soc-aflags as a means for
SoC specific compiler flags to be set without manipulating Kbuild
options directly.

Change-Id: I2c8f5019fb237429e59717ef96bd4251a61dc1a5
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2016-05-26 10:32:04 -05:00
commit 6102427e5d
17 changed files with 48 additions and 78 deletions

View file

@ -1,10 +1,6 @@
arch-cflags += $(call cc-option,-mthumb -mcpu=cortex-m4) \
soc-cflags = $(call cc-option,-mthumb -mcpu=cortex-m4) \
$(call cc-option,-march=armv7e-m) \
$(call cc-option,-mabi=aapcs) \
$(call cc-option,-mabi=aapcs)
_CROSS_COMPILE_arm_isa = armv7e-m
export _CROSS_COMPILE_arm_isa
KBUILD_CFLAGS += $(arch-cflags)
KBUILD_CXXFLAGS += $(arch-cflags)
KBUILD_AFLAGS += $(arch-cflags)