diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -776,15 +776,20 @@ $(sort $(vmlinux-init) $(vmlinux-main)) $(vmlinux-lds): $(vmlinux-dirs) ; | |||
776 | # Error messages still appears in the original language | 776 | # Error messages still appears in the original language |
777 | 777 | ||
778 | .PHONY: $(vmlinux-dirs) | 778 | .PHONY: $(vmlinux-dirs) |
779 | $(vmlinux-dirs): prepare-all scripts | 779 | $(vmlinux-dirs): prepare scripts |
780 | $(Q)$(MAKE) $(build)=$@ | 780 | $(Q)$(MAKE) $(build)=$@ |
781 | 781 | ||
782 | # Things we need to do before we recursively start building the kernel | 782 | # Things we need to do before we recursively start building the kernel |
783 | # or the modules are listed in "prepare-all". | 783 | # or the modules are listed in "prepare". |
784 | # A multi level approach is used. prepare1 is updated first, then prepare0. | 784 | # A multi level approach is used. prepareN is processed before prepareN-1. |
785 | # prepare-all is the collection point for the prepare targets. | 785 | # archprepare is used in arch Makefiles and when processed asm symlink, |
786 | # version.h and scripts_basic is processed / created. | ||
786 | 787 | ||
787 | .PHONY: prepare-all prepare prepare0 prepare1 prepare2 prepare3 | 788 | # Listed in dependency order |
789 | .PHONY: prepare archprepare prepare0 prepare1 prepare2 prepare3 | ||
790 | |||
791 | # prepare-all is deprecated, use prepare as valid replacement | ||
792 | .PHONY: prepare-all | ||
788 | 793 | ||
789 | # prepare3 is used to check if we are building in a separate output directory, | 794 | # prepare3 is used to check if we are building in a separate output directory, |
790 | # and if so do: | 795 | # and if so do: |
@@ -813,11 +818,13 @@ ifneq ($(KBUILD_MODULES),) | |||
813 | $(Q)mkdir -p $(MODVERDIR) | 818 | $(Q)mkdir -p $(MODVERDIR) |
814 | endif | 819 | endif |
815 | 820 | ||
816 | prepare0: prepare prepare1 FORCE | 821 | archprepare: prepare1 scripts_basic |
822 | |||
823 | prepare0: archprepare FORCE | ||
817 | $(Q)$(MAKE) $(build)=. | 824 | $(Q)$(MAKE) $(build)=. |
818 | 825 | ||
819 | # All the preparing.. | 826 | # All the preparing.. |
820 | prepare-all: prepare0 | 827 | prepare prepare-all: prepare0 |
821 | 828 | ||
822 | # Leave this as default for preprocessing vmlinux.lds.S, which is now | 829 | # Leave this as default for preprocessing vmlinux.lds.S, which is now |
823 | # done in arch/$(ARCH)/kernel/Makefile | 830 | # done in arch/$(ARCH)/kernel/Makefile |
@@ -908,7 +915,7 @@ modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) | |||
908 | 915 | ||
909 | # Target to prepare building external modules | 916 | # Target to prepare building external modules |
910 | .PHONY: modules_prepare | 917 | .PHONY: modules_prepare |
911 | modules_prepare: prepare-all scripts | 918 | modules_prepare: prepare scripts |
912 | 919 | ||
913 | # Target to install modules | 920 | # Target to install modules |
914 | .PHONY: modules_install | 921 | .PHONY: modules_install |