* [PATCH master] kbuild: don't expect a Kbuild file in dts/src
@ 2026-11-08 20:17 Ahmad Fatoum
2026-11-09 8:54 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2026-11-08 20:17 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
dts/ is synced from upstream as is, so the v7.3 sync dropped the empty
dts/src/Kbuild added by commit 77addf6205d4 ("kbuild: allow building
the device trees in dts/ by name") and building a device tree by name
fails since:
make[2]: *** No rule to make target 'dts/src/Makefile'. Stop.
Let's have Makefile.build include /dev/null instead. Overlays never
built by name at all, as Makefile.build pulls in Makefile.dtbs without
a dtb-y only for .dtb goals, so set need-dtbslist for them too.
Fixes: 77addf6205d4 ("kbuild: allow building the device trees in dts/ by name")
Assisted-by: Claude:opus-5.5
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index c3de0956eb7c..8f3f7bc17c25 100644
--- a/Makefile
+++ b/Makefile
@@ -1444,11 +1444,13 @@ ifneq ($(dtstree),)
# Build an upstream device tree by name, e.g.
# make dts/src/arm/st/stm32mp157c-dk2.dtb
+# dts/ is synced from upstream as is, so there's no Kbuild file to include
dts/src/%.dtb: dtbs_prepare
- $(Q)$(MAKE) $(build)=dts/src $@
+ $(Q)$(MAKE) $(build)=dts/src kbuild-file=/dev/null $@
+# without a dtb-y, Makefile.build includes Makefile.dtbs only for .dtb goals
dts/src/%.dtbo: dtbs_prepare
- $(Q)$(MAKE) $(build)=dts/src $@
+ $(Q)$(MAKE) $(build)=dts/src kbuild-file=/dev/null need-dtbslist=y $@
PHONY += dtbs dtbs_prepare dtbs_install
dtbs: dtbs_prepare
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH master] kbuild: don't expect a Kbuild file in dts/src
2026-11-08 20:17 [PATCH master] kbuild: don't expect a Kbuild file in dts/src Ahmad Fatoum
@ 2026-11-09 8:54 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2026-11-09 8:54 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Sun, 08 Nov 2026 21:17:51 +0100, Ahmad Fatoum wrote:
> dts/ is synced from upstream as is, so the v7.3 sync dropped the empty
> dts/src/Kbuild added by commit 77addf6205d4 ("kbuild: allow building
> the device trees in dts/ by name") and building a device tree by name
> fails since:
>
> make[2]: *** No rule to make target 'dts/src/Makefile'. Stop.
>
> [...]
Applied, thanks!
[1/1] kbuild: don't expect a Kbuild file in dts/src
https://git.pengutronix.de/cgit/barebox/commit/?id=06ce402d1a36 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-09 8:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 20:17 [PATCH master] kbuild: don't expect a Kbuild file in dts/src Ahmad Fatoum
2026-11-09 8:54 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox