nios2: add arch/nios2/soc/<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 <andrew.p.boie@intel.com>
This commit is contained in:
parent
275a853c16
commit
e57f3446ac
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue