2015-09-02 05:33:00 +08:00
|
|
|
cflags-y += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
2016-03-12 01:29:14 +08:00
|
|
|
cflags-$(CONFIG_ARC_STACK_CHECKING) = $(call cc-option,-fomit-frame-pointer)
|
2016-01-13 20:49:42 +08:00
|
|
|
cflags-$(CONFIG_LTO) = $(call cc-option,-flto,)
|
|
|
|
|
2016-04-03 21:37:43 +08:00
|
|
|
include $(srctree)/arch/$(ARCH)/soc/$(SOC_PATH)/Makefile
|
2016-01-13 20:49:42 +08:00
|
|
|
|
|
|
|
KBUILD_CFLAGS += $(cflags-y)
|
|
|
|
KBUILD_CXXFLAGS += $(cflags-y)
|
2015-06-20 21:23:14 +08:00
|
|
|
|
2016-05-26 23:32:04 +08:00
|
|
|
soc-cxxflags ?= $(soc-cflags)
|
|
|
|
soc-aflags ?= $(soc-cflags)
|
|
|
|
KBUILD_CFLAGS += $(soc-cflags)
|
|
|
|
KBUILD_CXXFLAGS += $(soc-cxxflags)
|
|
|
|
KBUILD_AFLAGS += $(soc-aflags)
|
|
|
|
|