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>
21 lines
596 B
Makefile
21 lines
596 B
Makefile
KBUILD_CFLAGS += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
|
|
|
include $(srctree)/arch/$(ARCH)/soc/$(SOC_PATH)/Makefile
|
|
|
|
cflags-$(CONFIG_LTO) += $(call cc-option,-flto,)
|
|
|
|
KBUILD_CFLAGS += $(cflags-y)
|
|
KBUILD_CXXFLAGS += $(cflags-y)
|
|
|
|
soc-cxxflags ?= $(soc-cflags)
|
|
soc-aflags ?= $(soc-cflags)
|
|
KBUILD_CFLAGS += $(soc-cflags)
|
|
KBUILD_CXXFLAGS += $(soc-cxxflags)
|
|
KBUILD_AFLAGS += $(soc-aflags)
|
|
|
|
QEMU_CPU_TYPE_arm = cortex-m3
|
|
QEMU_FLAGS_arm = -cpu $(QEMU_CPU_TYPE_arm) \
|
|
-machine lm3s6965evb -nographic -vga none
|
|
QEMU_arm = qemu-system-arm
|
|
|
|
export QEMU_FLAGS_arm QEMU_arm
|