2015-09-02 05:33:00 +08:00
|
|
|
cflags-y += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
|
|
|
arch-$(CONFIG_LTO) = $(call cc-option,-flto,)
|
|
|
|
arch-$(CONFIG_CPU_ARCEM4) = $(call cc-option,-mARCv2EM) \
|
|
|
|
$(call cc-option,-mav2em,) $(call cc-option,-mno-sdata)
|
2015-06-20 21:23:14 +08:00
|
|
|
|
2015-09-02 05:33:00 +08:00
|
|
|
KBUILD_CFLAGS += $(arch-y) $(cflags-y)
|
|
|
|
KBUILD_AFLAGS += $(arch-y)
|