Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 1/3] linux/linux.mk: export LINUX_DTBS
@ 2026-03-04 15:20 Neal Frager via buildroot
  2026-03-04 15:20 ` [Buildroot] [PATCH v3 2/3] board/zynqmp/post-image.sh: use LINUX_DTBS variable Neal Frager via buildroot
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Neal Frager via buildroot @ 2026-03-04 15:20 UTC (permalink / raw)
  To: buildroot
  Cc: ibai.erkiaga-elorza, luca.ceresoli, yann.morin, brandon.maier,
	fiona.klute, ju.o, Neal Frager, thomas.petazzoni, romain.naour,
	michal.simek, romain.naour

Users of the BR2_LINUX_KERNEL_CUSTOM_DTS_DIR config for custom hardware may
wish to have the dtb filenames for use in their post-build scripts. Since the
BR2_LINUX_KERNEL_CUSTOM_DTS_DIR only specifies paths to custom dts files, the
actual filenames are not available for any post-build scripting.

By exporting the LINUX_DTBS variable, users will have a list of all the built
dtb filenames that are built and installed, and they can use this for
convenient post-build scripting.

Even if users are working with an evaluation board with an intree dts, the
LINUX_DTBS variable will still give them a list of all built DTBs, so the
same post-build scripts which work for custom hardware will also work for
evaluation boards with intree dts files.

Signed-off-by: Neal Frager <neal.frager@amd.com>
---
 linux/linux.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/linux/linux.mk b/linux/linux.mk
index c61089bfe0..6ef9f54ffc 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -226,6 +226,9 @@ endef
 endif
 
 LINUX_DTBS = $(addsuffix .dtb,$(LINUX_DTS_NAME)) $(addsuffix .dtbo,$(LINUX_DTSO_NAMES))
+# Post-build scripts may need to reference the LINUX_DTBS,
+# so export it so it is easier to use
+export LINUX_DTBS
 
 ifeq ($(BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM),y)
 LINUX_IMAGE_NAME = $(call qstrip,$(BR2_LINUX_KERNEL_IMAGE_NAME))
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2026-03-05 10:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04 15:20 [Buildroot] [PATCH v3 1/3] linux/linux.mk: export LINUX_DTBS Neal Frager via buildroot
2026-03-04 15:20 ` [Buildroot] [PATCH v3 2/3] board/zynqmp/post-image.sh: use LINUX_DTBS variable Neal Frager via buildroot
2026-03-04 15:20 ` [Buildroot] [PATCH v3 3/3] board/versal/post-image.sh: " Neal Frager via buildroot
2026-03-04 18:00 ` [Buildroot] [PATCH v3 1/3] linux/linux.mk: export LINUX_DTBS Thomas Petazzoni via buildroot
2026-03-05 10:08   ` Frager, Neal via buildroot

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