Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kbuild: move 'PHONY += modules_prepare' to the common part

Unify the code between in-tree builds and external module builds.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+1 -5
+1 -5
Makefile
··· 1441 1441 targets += modules.order 1442 1442 1443 1443 # Target to prepare building external modules 1444 - PHONY += modules_prepare 1445 1444 modules_prepare: prepare 1446 1445 $(Q)$(MAKE) $(build)=scripts scripts/module.lds 1447 1446 ··· 1741 1742 @echo ' clean - remove generated files in module directory only' 1742 1743 @echo '' 1743 1744 1744 - # no-op for external module builds 1745 - PHONY += modules_prepare 1746 - 1747 1745 endif # KBUILD_EXTMOD 1748 1746 1749 1747 # --------------------------------------------------------------------------- 1750 1748 # Modules 1751 1749 1752 - PHONY += modules modules_install 1750 + PHONY += modules modules_install modules_prepare 1753 1751 1754 1752 ifdef CONFIG_MODULES 1755 1753