From e57f3446acf5570e1781b6fea589e7c4f9a5b32e Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Mon, 9 May 2016 16:51:10 -0700 Subject: [PATCH] nios2: add arch/nios2/soc//include to linker include path Linker scripts for Nios II will also need these headers as it specifies the device's physical layout and various important vector addresses. Change-Id: Ie9efaf19e53d2493eed7b9783052393d7ea9dd0f Signed-off-by: Andrew Boie --- arch/nios2/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile index 5c467601ac8..84464461a96 100644 --- a/arch/nios2/Makefile +++ b/arch/nios2/Makefile @@ -16,7 +16,9 @@ arch_cflags += $(call cc-option,-ffunction-sections) \ # 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) +soc_ld_include := -I$(srctree)/arch/$(ARCH)/soc/$(SOC_PATH)/include +arch_cflags += $(soc_ld_include) +EXTRA_LINKER_CMD_OPT += $(soc_ld_include) KBUILD_AFLAGS += $(arch_cflags) KBUILD_CFLAGS += $(arch_cflags)