]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
kbuild: add a symlink to the source for separate objdirs
authorAndi Kleen <andi@firstfloor.org>
Sat, 3 Jan 2009 02:21:42 +0000 (03:21 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 7 Jan 2009 20:44:22 +0000 (21:44 +0100)
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>
Makefile

index f9006663f01e428ec13a39fb215914e750ab66de..0469e48c9a84a275314954db5092260fc561862c 100644 (file)
--- 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