From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sun, 24 Sep 2023 07:44:45 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkHvC-008zkC-Gw for lore@lore.pengutronix.de; Sun, 24 Sep 2023 07:44:45 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qkHvA-0006qM-TC; Sun, 24 Sep 2023 07:44:44 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qkHuY-0006Y0-0B; Sun, 24 Sep 2023 07:44:06 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkHuX-008ZDo-KB; Sun, 24 Sep 2023 07:44:05 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qkHuX-000VX3-1s; Sun, 24 Sep 2023 07:44:05 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Sun, 24 Sep 2023 07:44:05 +0200 Message-Id: <20230924054405.121202-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230912165759.3492269-1-rhi@pengutronix.de> References: <20230912165759.3492269-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] kernel: add make target for the installed device trees X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 7205e52a301ce552aa5a5c1a5e257b1609822b80. Michael [sent from post-receive hook] On Sun, 24 Sep 2023 07:44:05 +0200, Roland Hieber 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 " to build the device > tree. > > Signed-off-by: Roland Hieber > Message-Id: <20230912165759.3492269-1-rhi@pengutronix.de> > Signed-off-by: Michael Olbrich > > 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) >