mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Christian Melki <christian.melki@t2data.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v2] host-tf-a: Add more host tools.
Date: Tue, 28 Jun 2022 15:20:14 +0200	[thread overview]
Message-ID: <20220628132014.3376427-1-christian.melki@t2data.com> (raw)

Beside fiptool, tools for cert handling,
and encryption may be used outside the tf-a makefile.
They depend on host-openssl.

Delay sptool installation until it is actually used
by something.

Also add ptxdist verbose handling.

Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
 platforms/host-tf-a.in | 3 ++-
 rules/host-tf-a.make   | 9 ++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/platforms/host-tf-a.in b/platforms/host-tf-a.in
index 1a299f042..fdf7bfc58 100644
--- a/platforms/host-tf-a.in
+++ b/platforms/host-tf-a.in
@@ -3,5 +3,6 @@
 config HOST_TF_A
 	tristate
 	default y if ALLYES && TF_A
+	select HOST_OPENSSL
 	help
-	  This provides fiptool
+	  This provides fiptool, encrypt_fw and cert_create.
diff --git a/rules/host-tf-a.make b/rules/host-tf-a.make
index 9b4a94f7a..550fc9c12 100644
--- a/rules/host-tf-a.make
+++ b/rules/host-tf-a.make
@@ -10,10 +10,17 @@
 #
 HOST_PACKAGES-$(PTXCONF_HOST_TF_A) += host-tf-a
 
-HOST_TF_A_MAKE_OPT = fiptool
+HOST_TF_A_MAKE_OPT = \
+	V=$(if $(filter 1, $(PTXDIST_VERBOSE)),1,0) \
+	OPENSSL_DIR=$(PTXDIST_SYSROOT_HOST) \
+	certtool \
+	enctool \
+	fiptool
 
 $(STATEDIR)/host-tf-a.install:
 	@$(call targetinfo)
+	install -vD -m755 $(HOST_TF_A_DIR)/tools/cert_create/cert_create $(HOST_TF_A_PKGDIR)/bin/cert_create
+	install -vD -m755 $(HOST_TF_A_DIR)/tools/encrypt_fw/encrypt_fw $(HOST_TF_A_PKGDIR)/bin/encrypt_fw
 	install -vD -m755 $(HOST_TF_A_DIR)/tools/fiptool/fiptool $(HOST_TF_A_PKGDIR)/bin/fiptool
 	@$(call touch)
 
-- 
2.34.1




                 reply	other threads:[~2022-06-28 13:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220628132014.3376427-1-christian.melki@t2data.com \
    --to=christian.melki@t2data.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox