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] host-tf-a: Add more host tools.
Date: Mon, 27 Jun 2022 11:24:54 +0200	[thread overview]
Message-ID: <20220627092454.1631682-1-christian.melki@t2data.com> (raw)

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

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

diff --git a/platforms/host-tf-a.in b/platforms/host-tf-a.in
index 1a299f042..dd5f402ae 100644
--- a/platforms/host-tf-a.in
+++ b/platforms/host-tf-a.in
@@ -1,7 +1,8 @@
-## SECTION=hosttools_platform
+## SECTION=hosttools_noprompt
 
 config HOST_TF_A
 	tristate
 	default y if ALLYES && TF_A
+	select HOST_OPENSSL
 	help
-	  This provides fiptool
+	  This provides fiptool, encrypt_fw, cert_create and sptool.
diff --git a/rules/host-tf-a.make b/rules/host-tf-a.make
index 9b4a94f7a..eaf4730f2 100644
--- a/rules/host-tf-a.make
+++ b/rules/host-tf-a.make
@@ -10,10 +10,18 @@
 #
 HOST_PACKAGES-$(PTXCONF_HOST_TF_A) += host-tf-a
 
-HOST_TF_A_MAKE_OPT = fiptool
+HOST_TF_A_MAKE_OPT = \
+	OPENSSL_DIR=$(PTXDIST_SYSROOT_HOST) \
+	certtool \
+	enctool \
+	sptool \
+	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/sptool/sptool $(HOST_TF_A_PKGDIR)/bin/sptool
 	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-27  9:25 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=20220627092454.1631682-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