Skip to content

Commit 399b835

Browse files
Andi Kleensravnborg
Andi Kleen
authored andcommitted
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 <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]>
1 parent 8e54701 commit 399b835

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,7 @@ ifneq ($(KBUILD_SRC),)
965965
mkdir -p include2; \
966966
ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \
967967
fi
968+
ln -fsn $(srctree) source
968969
endif
969970

970971
# prepare2 creates a makefile if using a separate output directory

0 commit comments

Comments
 (0)