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,)
|
|
|
|
|
|
|
|
include $(srctree)/arch/$(ARCH)/soc/$(SOC_NAME)/Makefile
|
|
|
|
|
|
|
|
KBUILD_CFLAGS += $(cflags-y)
|
|
|
|
KBUILD_CXXFLAGS += $(cflags-y)
|
2015-06-20 21:23:14 +08:00
|
|
|
|