From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 31 Aug 2023 09:37:16 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) 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 1qbcEv-00Feqn-Mi for lore@lore.pengutronix.de; Thu, 31 Aug 2023 09:37:16 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qbcEt-0005bN-NF; Thu, 31 Aug 2023 09:37:15 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qbcET-0005b9-8k; Thu, 31 Aug 2023 09:36:49 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qbcES-002rwN-KL; Thu, 31 Aug 2023 09:36:48 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qbcES-00ErhB-17; Thu, 31 Aug 2023 09:36:48 +0200 Date: Thu, 31 Aug 2023 09:36:48 +0200 From: Michael Olbrich To: Roland Hieber , ptxdist@pengutronix.de Message-ID: Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de References: <20230822121234.2040303-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230822121234.2040303-1-rhi@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [ptxdist] [PATCH 1/3] 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 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.ext.pengutronix.de); SAEximRunCond expanded to false On Tue, Aug 22, 2023 at 02:12:32PM +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 > --- > 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)" "" I didn't know that syntax existed, but we use () in ptxdist, so lets keep it consistent: ifneq ($(KERNEL_DTB_FILES),) Michael > +$(addprefix $(IMAGEDIR)/,$(KERNEL_DTB_FILES)): $(STATEDIR)/kernel.targetinstall > +endif > + > $(STATEDIR)/kernel.targetinstall: > @$(call targetinfo) > > -- > 2.39.2 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |