From: Andi Kleen Date: Sat, 3 Jan 2009 02:21:42 +0000 (+0100) Subject: kbuild: add a symlink to the source for separate objdirs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=399b835be30e8fdec6705fa9803f9fb8822c52ae;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Sam Ravnborg --- 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