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
|
|
|
|