mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] host-tf-a: Add more host tools.
@ 2022-06-27  9:24 Christian Melki
  0 siblings, 0 replies; only message in thread
From: Christian Melki @ 2022-06-27  9:24 UTC (permalink / raw)
  To: ptxdist

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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-27  9:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-27  9:24 [ptxdist] [PATCH] host-tf-a: Add more host tools Christian Melki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox