summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsascha <sascha@nomad.localdomain>2007-10-17 19:02:56 +0200
committersascha <sascha@nomad.localdomain>2007-10-17 19:02:56 +0200
commitf8ccf74934712f6bba0fd6e6f0075cc02cd9e89b (patch)
treec2a1593cf8a5535c109ec7c56c150ef33a33ea5f /Makefile
parent5d746e895307d77de4f80fa058a1178700e89905 (diff)
downloadbarebox-f8ccf74934712f6bba0fd6e6f0075cc02cd9e89b.tar.gz
barebox-f8ccf74934712f6bba0fd6e6f0075cc02cd9e89b.tar.xz
Toplevel Makefile: fix link for include/config.h for external builds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1d4b5b1d19..3c831e035b 100644
--- a/Makefile
+++ b/Makefile
@@ -787,7 +787,11 @@ include/asm:
include/config.h:
@echo ' SYMLINK $@ -> include/configs/$(board-y).h'
+ifneq ($(KBUILD_SRC),)
+ $(Q)ln -fsn $(srctree)/include/configs/$(board-y).h $@
+else
@ln -fsn configs/$(board-y).h $@
+endif
# Generate some files
# ---------------------------------------------------------------------------