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

Unify the code between in-tree builds and external module builds.
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
上级 f110e5a2
...@@ -1441,7 +1441,6 @@ modules.order: $(subdir-modorder) FORCE ...@@ -1441,7 +1441,6 @@ modules.order: $(subdir-modorder) FORCE
targets += modules.order targets += modules.order
# Target to prepare building external modules # Target to prepare building external modules
PHONY += modules_prepare
modules_prepare: prepare modules_prepare: prepare
$(Q)$(MAKE) $(build)=scripts scripts/module.lds $(Q)$(MAKE) $(build)=scripts scripts/module.lds
...@@ -1742,15 +1741,12 @@ help: ...@@ -1742,15 +1741,12 @@ help:
@echo ' clean - remove generated files in module directory only' @echo ' clean - remove generated files in module directory only'
@echo '' @echo ''
# no-op for external module builds
PHONY += modules_prepare
endif # KBUILD_EXTMOD endif # KBUILD_EXTMOD
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Modules # Modules
PHONY += modules modules_install PHONY += modules modules_install modules_prepare
ifdef CONFIG_MODULES ifdef CONFIG_MODULES
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部