public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [v2 1/2] kbuild: move scripts/mod/ build to modules_prepare
@ 2022-05-14  4:02 Masahiro Yamada
  2022-05-14  4:02 ` [v2 2/2] kbuild: copy scripts/atomic/atomic-*.h to include/generated/atomic-*.h Masahiro Yamada
  2022-05-16  6:02 ` [v2 1/2] kbuild: move scripts/mod/ build to modules_prepare kernel test robot
  0 siblings, 2 replies; 6+ messages in thread
From: Masahiro Yamada @ 2022-05-14  4:02 UTC (permalink / raw)
  To: linux-kbuild; +Cc: linux-kernel, Mark Rutland, Vincent Mailhol, Masahiro Yamada

Do $(build)=scripts/mod after $(build)=. so that
scripts/mod/devicetable-offsets.c can use headers generated by ./Kbuild.

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

Changes for v2:
  - New patch to fix errors reported by 0-day bot


 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index f90fcc1a7ff4..baa3440aea7f 100644
--- a/Makefile
+++ b/Makefile
@@ -1190,7 +1190,6 @@ archprepare: outputmakefile archheaders archscripts scripts include/config/kerne
 	include/generated/autoconf.h remove-stale-files
 
 prepare0: archprepare
-	$(Q)$(MAKE) $(build)=scripts/mod
 	$(Q)$(MAKE) $(build)=.
 
 # All the preparing..
@@ -1441,6 +1440,7 @@ targets += modules.order
 PHONY += modules_prepare
 modules_prepare: prepare
 	$(Q)$(MAKE) $(build)=scripts scripts/module.lds
+	$(Q)$(MAKE) $(build)=scripts/mod
 
 export modules_sign_only :=
 
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-19  9:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-14  4:02 [v2 1/2] kbuild: move scripts/mod/ build to modules_prepare Masahiro Yamada
2022-05-14  4:02 ` [v2 2/2] kbuild: copy scripts/atomic/atomic-*.h to include/generated/atomic-*.h Masahiro Yamada
2022-05-16  8:42   ` Mark Rutland
2022-05-16  9:30     ` Masahiro Yamada
2022-05-19  9:16       ` Mark Rutland
2022-05-16  6:02 ` [v2 1/2] kbuild: move scripts/mod/ build to modules_prepare kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox