2015-09-02 05:33:00 +08:00
|
|
|
cflags-y += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
2017-01-04 05:06:44 +08:00
|
|
|
|
|
|
|
# Without this (poorly named) option, compiler may generate undefined
|
|
|
|
# references to abort().
|
|
|
|
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63691
|
|
|
|
cflags-y += $(call cc-option,-fno-delete-null-pointer-checks)
|
|
|
|
|
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)
|
|
|
|
|