summaryrefslogtreecommitdiffstats
path: root/Makefile
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 /Makefile
parentkconfig: add script to manipulate .config files on the command line (diff)
downloadlinux-399b835be30e8fdec6705fa9803f9fb8822c52ae.tar.xz
linux-399b835be30e8fdec6705fa9803f9fb8822c52ae.zip
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>
Diffstat (limited to '')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f9006663f01e..0469e48c9a84 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