[PATCH 26/26] kbuild: support switching source directories with O=.. builds

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sam Ravnborg
Date: Saturday, December 20, 2008 - 7:31 am

It was not possible to use the same output directory
for two different source repositories becuase the asm
symlink in include2/asm would point to the first repository.

We now create the symlink each time thus allowing switch
between different source repositories.

This feature was requested by Andi Kleen.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Andi Kleen <andi@firstfloor.org>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index b3d1c8f..2da055c 100644
--- a/Makefile
+++ b/Makefile
@@ -961,8 +961,8 @@ ifneq ($(KBUILD_SRC),)
 	fi;
 	$(Q)if [ ! -d include2 ]; then                                  \
 	    mkdir -p include2;                                          \
-	    ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm;     \
 	fi
+	$(Q)ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm
 endif
 
 # prepare2 creates a makefile if using a separate output directory
-- 
1.6.0.2.GIT

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
kbuild-next content, Sam Ravnborg, (Sat Dec 20, 7:25 am)
[PATCH 02/26] kbuild: expand -I in KBUILD_CPPFLAGS, Sam Ravnborg, (Sat Dec 20, 7:31 am)
[PATCH 05/26] kbuild: use KECHO convenience echo, Sam Ravnborg, (Sat Dec 20, 7:31 am)
[PATCH 06/26] kbuild: teach mkmakfile to be silent, Sam Ravnborg, (Sat Dec 20, 7:31 am)
[PATCH 09/26] kconfig: fix options to check-lxdialog.sh, Sam Ravnborg, (Sat Dec 20, 7:31 am)
[PATCH 11/26] genksyms: track symbol checksum changes, Sam Ravnborg, (Sat Dec 20, 7:31 am)
[PATCH 14/26] scripts: improve the decodecode script, Sam Ravnborg, (Sat Dec 20, 7:31 am)
[PATCH 16/26] setlocalversion: add git-svn support, Sam Ravnborg, (Sat Dec 20, 7:31 am)
[PATCH 17/26] kbuild: remove TAR_IGNORE, Sam Ravnborg, (Sat Dec 20, 7:31 am)
[PATCH 18/26] kbuild: fix make incompatibility, Sam Ravnborg, (Sat Dec 20, 7:31 am)
[PATCH 19/26] kbuild: fix make tags/cscope, Sam Ravnborg, (Sat Dec 20, 7:31 am)
[PATCH 23/26] kbuild: simplify use of genksyms, Sam Ravnborg, (Sat Dec 20, 7:31 am)
[PATCH 24/26] kbuild: strip generated symbols from *.ko, Sam Ravnborg, (Sat Dec 20, 7:31 am)
[PATCH 26/26] kbuild: support switching source directories ..., Sam Ravnborg, (Sat Dec 20, 7:31 am)