diff options
author | Andi Kleen <andi@firstfloor.org> | 2009-01-02 21:21:42 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-01-07 15:44:22 -0500 |
commit | 399b835be30e8fdec6705fa9803f9fb8822c52ae (patch) | |
tree | bc35ff8c3927d3c8e40bf50e6c164ae28ab465c6 /Makefile | |
parent | 8e54701ea85b0ab0971637825a628f5aa2b678a4 (diff) |
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 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -965,6 +965,7 @@ ifneq ($(KBUILD_SRC),) | |||
965 | mkdir -p include2; \ | 965 | mkdir -p include2; \ |
966 | ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ | 966 | ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ |
967 | fi | 967 | fi |
968 | ln -fsn $(srctree) source | ||
968 | endif | 969 | endif |
969 | 970 | ||
970 | # prepare2 creates a makefile if using a separate output directory | 971 | # prepare2 creates a makefile if using a separate output directory |