diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -767,7 +767,7 @@ $(vmlinux-dirs): prepare-all scripts | |||
767 | prepare2: | 767 | prepare2: |
768 | ifneq ($(KBUILD_SRC),) | 768 | ifneq ($(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 |
780 | prepare1: prepare2 outputmakefile | 780 | prepare1: prepare2 outputmakefile |
781 | 781 | ||
782 | prepare0: prepare1 include/linux/version.h include/asm include/config/MARKER | 782 | prepare0: prepare1 include/linux/version.h $(objtree)/include/asm \ |
783 | include/config/MARKER | ||
783 | ifneq ($(KBUILD_MODULES),) | 784 | ifneq ($(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 | ||
821 | include/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) $@ |