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>
16 lines
487 B
Makefile
16 lines
487 B
Makefile
cflags-y += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
|
cflags-$(CONFIG_ARC_STACK_CHECKING) = $(call cc-option,-fomit-frame-pointer)
|
|
cflags-$(CONFIG_LTO) = $(call cc-option,-flto,)
|
|
|
|
include $(srctree)/arch/$(ARCH)/soc/$(SOC_PATH)/Makefile
|
|
|
|
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)
|
|
|