* [ptxdist] [PATCH v2] host-tf-a: Add more host tools.
@ 2022-06-28 13:20 Christian Melki
0 siblings, 0 replies; only message in thread
From: Christian Melki @ 2022-06-28 13:20 UTC (permalink / raw)
To: ptxdist
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-28 13:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 13:20 [ptxdist] [PATCH v2] 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