[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220828024003.28873-4-masahiroy@kernel.org>
Date: Sun, 28 Aug 2022 11:39:51 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: linux-kbuild@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
Masahiro Yamada <masahiroy@...nel.org>
Subject: [PATCH 03/15] 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@...nel.org>
---
Makefile | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index badd318c5524..54e481162608 100644
--- a/Makefile
+++ b/Makefile
@@ -1446,7 +1446,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
@@ -1747,15 +1746,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
--
2.34.1
Powered by blists - more mailing lists