From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sat, 02 Sep 2023 12:42:34 +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 1qcO5L-000xoq-S7 for lore@lore.pengutronix.de; Sat, 02 Sep 2023 12:42:34 +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 1qc6y7-0001fb-MJ; Fri, 01 Sep 2023 18:25:59 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qc4kO-0000Xp-Pq; Fri, 01 Sep 2023 16:03:40 +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 1qby1T-0035rl-L3; Fri, 01 Sep 2023 08:52:51 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qby1T-008b5W-1I; Fri, 01 Sep 2023 08:52:51 +0200 Date: Fri, 1 Sep 2023 08:52:51 +0200 From: Michael Olbrich To: Roland Hieber , ptxdist@pengutronix.de Message-ID: Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de References: <20230831104425.2874985-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230831104425.2874985-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 v2 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Thu, Aug 31, 2023 at 12:44:23PM +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. Add the same thing to the kernel template to make sure that behaves the same way. Sorry, forgot about that when I reviewed the first version. Michael > > Signed-off-by: Roland Hieber > --- > PATCH v2: > * change ifneq syntax > > PATCH v1: https://lore.ptxdist.org/ptxdist/20230822121234.2040303-1-rhi@pengutronix.de > --- > rules/kernel.make | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/rules/kernel.make b/rules/kernel.make > index e70af54e6137..a12838bd78ea 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 > > > -- 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 |