2016-04-22 05:47:09 +08:00
|
|
|
include $(srctree)/arch/$(ARCH)/soc/$(SOC_PATH)/Makefile
|
|
|
|
|
2016-04-29 05:15:09 +08:00
|
|
|
# FIXME: Disable use of global pointer for now, this isn't properly set up
|
|
|
|
# in our linker script.
|
|
|
|
arch_cflags := $(call cc-option,-G0)
|
|
|
|
|
|
|
|
# FIXME I got tired of adding ARG_UNUSED to all the stubs, sanitycheck treats
|
|
|
|
# warnings as errors. Remove this once the stubs are all implemented
|
|
|
|
arch_cflags += $(call cc-option,-Wno-unused-parameter)
|
|
|
|
|
2016-04-29 05:16:00 +08:00
|
|
|
# Put functions and data in their own binary sections so that ld can
|
|
|
|
# garbage collect them
|
|
|
|
arch_cflags += $(call cc-option,-ffunction-sections) \
|
|
|
|
$(call cc-option,-fdata-sections)
|
|
|
|
|
2016-05-05 04:52:25 +08:00
|
|
|
# Nios II CPUs are configurable and we need to pull in the generated
|
|
|
|
# headers system.h and linker.h which specify what is enabled and where
|
|
|
|
# everything is.
|
|
|
|
arch_cflags += $(call cc-option,-I$(srctree)/arch/$(ARCH)/soc/$(SOC_PATH)/include)
|
|
|
|
|
2016-04-29 05:15:09 +08:00
|
|
|
KBUILD_AFLAGS += $(arch_cflags)
|
|
|
|
KBUILD_CFLAGS += $(arch_cflags)
|
|
|
|
KBUILD_CXXFLAGS += $(arch_cflags)
|