From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 20 Jun 2022 16:09:39 +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 1o3I5x-0089Cf-RE for lore@lore.pengutronix.de; Mon, 20 Jun 2022 16:09:39 +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 1o3I5y-0006I8-3E; Mon, 20 Jun 2022 16:09:38 +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 1o3I5G-00065B-TP; Mon, 20 Jun 2022 16:08:54 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1o3I5E-001eYZ-1E; Mon, 20 Jun 2022 16:08:53 +0200 Received: from afa by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1o3I5E-009rMj-Lt; Mon, 20 Jun 2022 16:08:52 +0200 From: Ahmad Fatoum To: ptxdist@pengutronix.de Date: Mon, 20 Jun 2022 16:08:50 +0200 Message-Id: <20220620140851.2349897-1-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH v2 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 , Ahmad Fatoum , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= 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 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 --- v1 -> v2: - move to hosttools_platform (mol) - depend on TF_A for default y if ALLYES (mol) --- 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..c5e7d843b034 --- /dev/null +++ b/platforms/host-tf-a.in @@ -0,0 +1,7 @@ +### 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 + @$(call touch) + +# vim: syntax=make -- 2.30.2