Thanks, applied as 7205e52a301ce552aa5a5c1a5e257b1609822b80. Michael
[sent from post-receive hook] On Sun, 24 Sep 2023 07:44:05 +0200, Roland Hieber <r...@pengutronix.de> wrote: > 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 <r...@pengutronix.de> > Message-Id: <20230912165759.3492269-1-...@pengutronix.de> > Signed-off-by: Michael Olbrich <m.olbr...@pengutronix.de> > > diff --git a/rules/kernel.make b/rules/kernel.make > index 3d200eaecfee..d82aa27fb78e 100644 > --- a/rules/kernel.make > +++ b/rules/kernel.make > @@ -283,6 +283,10 @@ endif > # Target-Install > # > ---------------------------------------------------------------------------- > > +ifneq ($(KERNEL_DTB_FILES),) > +$(addprefix $(IMAGEDIR)/,$(KERNEL_DTB_FILES)): > $(STATEDIR)/kernel.targetinstall > +endif > + > $(STATEDIR)/kernel.targetinstall: > @$(call targetinfo) > > diff --git a/rules/templates/template-kernel-make > b/rules/templates/template-kernel-make > index c5f0c9303b51..cd1b717c51ba 100644 > --- a/rules/templates/template-kernel-make > +++ b/rules/templates/template-kernel-make > @@ -106,6 +106,10 @@ $(STATEDIR)/kernel-@package@.install: > # Target-Install > # > ---------------------------------------------------------------------------- > > +ifneq ($(KERNEL_@PACKAGE@_DTB_FILES),) > +$(addprefix $(IMAGEDIR)/,$(KERNEL_@PACKAGE@_DTB_FILES)): > $(STATEDIR)/kernel-@package@.targetinstall > +endif > + > $(STATEDIR)/kernel-@package@.targetinstall: > @$(call targetinfo) >