[PATCH 02/10] nios2: Fix out of tree build
Sascha Hauer
s.hauer at pengutronix.de
Wed Nov 23 01:39:29 PST 2016
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 at pengutronix.de>
---
arch/nios2/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.10.2
More information about the barebox
mailing list