Commit 929799973ba4a40f7b8001e9cc461c13d04c4124
Committed by
Sam Ravnborg
1 parent
11df65c3c6
Exists in
master
and in
20 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
Makefile
... | ... | @@ -389,6 +389,7 @@ |
389 | 389 | # output directory. |
390 | 390 | outputmakefile: |
391 | 391 | ifneq ($(KBUILD_SRC),) |
392 | + $(Q)ln -fsn $(srctree) source | |
392 | 393 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \ |
393 | 394 | $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) |
394 | 395 | endif |
... | ... | @@ -946,7 +947,6 @@ |
946 | 947 | mkdir -p include2; \ |
947 | 948 | ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ |
948 | 949 | fi |
949 | - ln -fsn $(srctree) source | |
950 | 950 | endif |
951 | 951 | |
952 | 952 | # prepare2 creates a makefile if using a separate output directory |