aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5d0ecf11bfa0..a8d41b7d549d 100644
--- a/Makefile
+++ b/Makefile
@@ -767,7 +767,7 @@ $(vmlinux-dirs): prepare-all scripts
767prepare2: 767prepare2:
768ifneq ($(KBUILD_SRC),) 768ifneq ($(KBUILD_SRC),)
769 @echo ' Using $(srctree) as source for kernel' 769 @echo ' Using $(srctree) as source for kernel'
770 $(Q)if [ -h $(srctree)/include/asm -o -f $(srctree)/.config ]; then \ 770 $(Q)if [ -f $(srctree)/.config ]; then \
771 echo " $(srctree) is not clean, please run 'make mrproper'";\ 771 echo " $(srctree) is not clean, please run 'make mrproper'";\
772 echo " in the '$(srctree)' directory.";\ 772 echo " in the '$(srctree)' directory.";\
773 /bin/false; \ 773 /bin/false; \
@@ -779,7 +779,8 @@ endif
779# prepare1 creates a makefile if using a separate output directory 779# prepare1 creates a makefile if using a separate output directory
780prepare1: prepare2 outputmakefile 780prepare1: prepare2 outputmakefile
781 781
782prepare0: prepare1 include/linux/version.h include/asm include/config/MARKER 782prepare0: prepare1 include/linux/version.h $(objtree)/include/asm \
783 include/config/MARKER
783ifneq ($(KBUILD_MODULES),) 784ifneq ($(KBUILD_MODULES),)
784 $(Q)rm -rf $(MODVERDIR) 785 $(Q)rm -rf $(MODVERDIR)
785 $(Q)mkdir -p $(MODVERDIR) 786 $(Q)mkdir -p $(MODVERDIR)
@@ -818,7 +819,7 @@ export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH)
818# hard to detect, but I suppose "make mrproper" is a good idea 819# hard to detect, but I suppose "make mrproper" is a good idea
819# before switching between archs anyway. 820# before switching between archs anyway.
820 821
821include/asm: 822$(objtree)/include/asm:
822 @echo ' SYMLINK $@ -> include/asm-$(ARCH)' 823 @echo ' SYMLINK $@ -> include/asm-$(ARCH)'
823 $(Q)if [ ! -d include ]; then mkdir -p include; fi; 824 $(Q)if [ ! -d include ]; then mkdir -p include; fi;
824 @ln -fsn asm-$(ARCH) $@ 825 @ln -fsn asm-$(ARCH) $@