summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-11-23 09:17:53 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-01-10 08:27:33 +0100
commitf3738224ec9b485feb3dd5923c9eee9c42c2367f (patch)
tree16d24f12f953095ec666767c17565c48205bbb61 /arch/nios2
parent49fc4a6052c25fb0fb24a783a93e0b052ecd5b08 (diff)
downloadbarebox-f3738224ec9b485feb3dd5923c9eee9c42c2367f.tar.gz
nios2: Fix out of tree build
nios2 links the board specific nios_sopc.h to include/. The relative pathes used do not work with an out of tree build. Use absolute pathes instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile
index 681944f..3e97155 100644
--- a/arch/nios2/Makefile
+++ b/arch/nios2/Makefile
@@ -7,7 +7,7 @@ KALLSYMS += --symbol-prefix=_
archprepare: maketools
@$(kecho) " SYMLINK include/nios_sopc.h -> arch/nios2/boards/$(board-y)/nios_sopc.h"
- @ln -fsn ../arch/nios2/boards/$(board-y)/nios_sopc.h include/nios_sopc.h
+ @ln -fsn $(src)/arch/nios2/boards/$(board-y)/nios_sopc.h $(obj)/include/nios_sopc.h
PHONY += maketools