From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 03 Jun 2022 11:39:32 +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 1nx3mG-001g9k-6l for lore@lore.pengutronix.de; Fri, 03 Jun 2022 11:39:32 +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 1nx3mF-0006hj-HZ; Fri, 03 Jun 2022 11:39:31 +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 1nx3lf-0006gy-2P; Fri, 03 Jun 2022 11:38:55 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nx3le-006C4c-Gs; Fri, 03 Jun 2022 11:38:53 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nx3lc-008qS3-Dl; Fri, 03 Jun 2022 11:38:52 +0200 Date: Fri, 3 Jun 2022 11:38:52 +0200 From: Michael Olbrich To: Ahmad Fatoum Message-ID: Mail-Followup-To: Ahmad Fatoum , ptxdist@pengutronix.de, Christian Melki , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= References: <20220602063823.3045052-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220602063823.3045052-1-a.fatoum@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/2] tf-a: add new host-tf-a recipe 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: Christian Melki , ptxdist@pengutronix.de, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= 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 Thu, Jun 02, 2022 at 08:38:22AM +0200, Ahmad Fatoum wrote: > FIP is becoming the standard for firmware booted by ARM Trusted > Firmware. While TF-A provides a fip target to assemble such images, > building them outside the TF-A build by means of fiptool (e.g. via > genimage[0]) can provide more flexibility. > Add a host-tf-a rule to facilitate this. > > [0]: https://github.com/pengutronix/genimage/pull/190 > > Signed-off-by: Ahmad Fatoum > --- > platforms/host-tf-a.in | 7 +++++++ > rules/host-tf-a.make | 20 ++++++++++++++++++++ > 2 files changed, 27 insertions(+) > create mode 100644 platforms/host-tf-a.in > create mode 100644 rules/host-tf-a.make > > diff --git a/platforms/host-tf-a.in b/platforms/host-tf-a.in > new file mode 100644 > index 000000000000..825f3a38b97c > --- /dev/null > +++ b/platforms/host-tf-a.in > @@ -0,0 +1,7 @@ > +## SECTION=hosttools_noprompt > + > +config HOST_TF_A > + tristate > + default y if ALLYES This is a problem: The package inherits the version from tf-a so if that is not enabled, then the version is missing. It will be selected by image packages right? So it's ok if it is only available in the platformconfig. So: ## SECTION=hosttools_platform config HOST_TF_A tristate default y if ALLYES && TF_A > + help > + This provides fiptool > diff --git a/rules/host-tf-a.make b/rules/host-tf-a.make > new file mode 100644 > index 000000000000..9b4a94f7ab93 > --- /dev/null > +++ b/rules/host-tf-a.make > @@ -0,0 +1,20 @@ > +# -*-makefile-*- > +# Copyright (C) 2021 by Uwe Kleine-König > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +HOST_PACKAGES-$(PTXCONF_HOST_TF_A) += host-tf-a > + > +HOST_TF_A_MAKE_OPT = fiptool > + > +$(STATEDIR)/host-tf-a.install: > + @$(call targetinfo) > + install -vD -m755 $(HOST_TF_A_DIR)/tools/fiptool/fiptool \ $(HOST_TF_A_PKGDIR)/bin/fiptool break. Michael > + @$(call touch) > + > +# vim: syntax=make > -- > 2.30.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 |