mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/3] kernel: add make target for the installed device trees
@ 2023-08-22 12:12 Roland Hieber
  2023-08-22 12:12 ` [ptxdist] [PATCH 2/3] templates: add template for custom FIT images Roland Hieber
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Roland Hieber @ 2023-08-22 12:12 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

This makes it easy to depend on the kernel.targetinstall stage by
depending on one of the .dtb's that it installs into the image dir, e.g.
when building a custom recipe for a FIT image. As a nice side-effect,
you can simply call "ptxdist image <board.dtb>" to build the device
tree.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/kernel.make | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/rules/kernel.make b/rules/kernel.make
index e70af54e6137..5c1817efe7c7 100644
--- a/rules/kernel.make
+++ b/rules/kernel.make
@@ -281,6 +281,10 @@ endif
 # Target-Install
 # ----------------------------------------------------------------------------
 
+ifneq "$(KERNEL_DTB_FILES)" ""
+$(addprefix $(IMAGEDIR)/,$(KERNEL_DTB_FILES)): $(STATEDIR)/kernel.targetinstall
+endif
+
 $(STATEDIR)/kernel.targetinstall:
 	@$(call targetinfo)
 
-- 
2.39.2




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

end of thread, other threads:[~2023-08-31  7:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-22 12:12 [ptxdist] [PATCH 1/3] kernel: add make target for the installed device trees Roland Hieber
2023-08-22 12:12 ` [ptxdist] [PATCH 2/3] templates: add template for custom FIT images Roland Hieber
2023-08-22 12:12 ` [ptxdist] [PATCH 3/3] doc: ref_make_macros: document world/image-fit macro Roland Hieber
2023-08-31  7:36 ` [ptxdist] [PATCH 1/3] kernel: add make target for the installed device trees Michael Olbrich

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