summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2009-01-03 03:21:42 +0100
committerSam Ravnborg <sam@ravnborg.org>2009-01-07 21:44:22 +0100
commit399b835be30e8fdec6705fa9803f9fb8822c52ae (patch)
treebc35ff8c3927d3c8e40bf50e6c164ae28ab465c6
parent8e54701ea85b0ab0971637825a628f5aa2b678a4 (diff)
downloadop-kernel-dev-399b835be30e8fdec6705fa9803f9fb8822c52ae.zip
op-kernel-dev-399b835be30e8fdec6705fa9803f9fb8822c52ae.tar.gz
kbuild: add a symlink to the source for separate objdirs
I have some scripts which need to map back to the source directory from an objdir. This was so far done by parsing the Makefile, but the Makefile format changes occasionally and breaks my scripts then. To make this more reliable add a "source" symlink back. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f900666..0469e48 100644
--- a/Makefile
+++ b/Makefile
@@ -965,6 +965,7 @@ ifneq ($(KBUILD_SRC),)
mkdir -p include2; \
ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \
fi
+ ln -fsn $(srctree) source
endif
# prepare2 creates a makefile if using a separate output directory
OpenPOWER on IntegriCloud