Skip to content

Commit

Permalink
kbuild: add a symlink to the source for separate objdirs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Andi Kleen authored and sravnborg committed Jan 7, 2009
1 parent 8e54701 commit 399b835
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 399b835

Please sign in to comment.