summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-08-28 11:39:51 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2022-09-29 04:40:15 +0900
commit7f37181393a9aaa695187701bb38f356df1f1cf8 (patch)
treef6c139ba4cc671465da8acbfefa8db8b913fbbfa /Makefile
parentf110e5a250e3c5db417e094b3dd86f1c135291ca (diff)
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 1 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 009d03f3c80a..8536404529a5 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