From: Masahiro Yamada Date: Sun, 28 Aug 2022 02:39:51 +0000 (+0900) Subject: kbuild: move 'PHONY += modules_prepare' to the common part X-Git-Tag: v6.1-rc1~87^2~32 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7f37181393a9aaa695187701bb38f356df1f1cf8;p=users%2Fdwmw2%2Flinux.git 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 --- diff --git a/Makefile b/Makefile index 009d03f3c80a6..8536404529a55 100644 --- a/Makefile +++ b/Makefile @@ -1441,7 +1441,6 @@ modules.order: $(subdir-modorder) FORCE targets += modules.order # Target to prepare building external modules -PHONY += modules_prepare modules_prepare: prepare $(Q)$(MAKE) $(build)=scripts scripts/module.lds @@ -1742,15 +1741,12 @@ help: @echo ' clean - remove generated files in module directory only' @echo '' -# no-op for external module builds -PHONY += modules_prepare - endif # KBUILD_EXTMOD # --------------------------------------------------------------------------- # Modules -PHONY += modules modules_install +PHONY += modules modules_install modules_prepare ifdef CONFIG_MODULES