aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2009-01-09 22:56:13 -0500
committerSam Ravnborg <sam@ravnborg.org>2009-02-15 06:51:05 -0500
commit929799973ba4a40f7b8001e9cc461c13d04c4124 (patch)
tree8d2116ea6f0f972bb2ef5765a6a9d469b77d6958 /Makefile
parent11df65c3c6f7fdc837a5be8787d31011e8bb93c1 (diff)
kbuild: create the source symlink earlier in the objdir
It's useful to already have the source symlink in a objdir when one just runs make *config. Then one can do mkdir obj-allyes cd obj-allyes make -C ../sourcedir O=$(pwd) allyesconfig ./source/scripts/config --disable debug_info make CC=icecc -j18 without having to interrupt the make first just to get the source symlink. Signed-off-by: Andi Kleen <ak@linux.intel.com> [sam: deleted the other source symlink statement] Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 22d758495ad2..59cf6dacec07 100644
--- a/Makefile
+++ b/Makefile
@@ -389,6 +389,7 @@ PHONY += outputmakefile
389# output directory. 389# output directory.
390outputmakefile: 390outputmakefile:
391ifneq ($(KBUILD_SRC),) 391ifneq ($(KBUILD_SRC),)
392 $(Q)ln -fsn $(srctree) source
392 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \ 393 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \
393 $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) 394 $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL)
394endif 395endif
@@ -946,7 +947,6 @@ ifneq ($(KBUILD_SRC),)
946 mkdir -p include2; \ 947 mkdir -p include2; \
947 ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ 948 ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \
948 fi 949 fi
949 ln -fsn $(srctree) source
950endif 950endif
951 951
952# prepare2 creates a makefile if using a separate output directory 952# prepare2 creates a makefile if using a separate output directory