mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] imx-cst: version bump 3.1.0 -> 3.4.1
@ 2025-03-05 11:00 Rouven Czerwinski
  2025-03-07 10:15 ` Michael Olbrich
  2025-03-10  8:27 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 2 replies; 5+ messages in thread
From: Rouven Czerwinski @ 2025-03-05 11:00 UTC (permalink / raw)
  To: ptxdist; +Cc: Rouven Czerwinski

The CST archive from NXP now ships with a proper Makefile, all we need
to do is supply the correct host openssl library. Additionally, pkcs11
is now supported, but has to be enabled via "-b pkcs11".

In barebox recipes that means the the compile environment needs to
contain CST_EXTRA_CMDLINE_OPTIONS="-b pkcs11", to use the native pkcs11
backend.

Additionally the frontend library no longer exists.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
---
 rules/host-imx-cst.make | 24 +++++++-----------------
 1 file changed, 7 insertions(+), 17 deletions(-)

diff --git a/rules/host-imx-cst.make b/rules/host-imx-cst.make
index 42d6f667b..3850f7200 100644
--- a/rules/host-imx-cst.make
+++ b/rules/host-imx-cst.make
@@ -14,8 +14,8 @@ HOST_PACKAGES-$(PTXCONF_HOST_IMX_CST) += host-imx-cst
 #
 # Paths and names
 #
-HOST_IMX_CST_VERSION	:= 3.1.0
-HOST_IMX_CST_MD5	:= 89a2d6c05253c4de9a1bf9d5710bb7ae
+HOST_IMX_CST_VERSION	:= 3.4.1
+HOST_IMX_CST_MD5	:= b23ed5983734d4812fcf1da33eac8f31
 HOST_IMX_CST		:= cst-$(HOST_IMX_CST_VERSION)
 HOST_IMX_CST_SUFFIX	:= tgz
 HOST_IMX_CST_SOURCE	:= $(SRCDIR)/$(HOST_IMX_CST).$(HOST_IMX_CST_SUFFIX)
@@ -56,13 +56,9 @@ HOST_IMX_CST_CONF := NO
 HOST_IMX_CST_ARCH := \
 	linux$(call ptx/ifeq, GNU_BUILD, x86_64-%, 64, 32)
 
-$(STATEDIR)/host-imx-cst.compile:
-	@$(call targetinfo)
-	cd $(HOST_IMX_CST_DIR)/code/back_end/src && \
-		$(HOSTCC) \
-		-Wall -O2 -g3 -o ../../../$(HOST_IMX_CST_ARCH)/bin/cst \
-		-I ../hdr -L ../../../$(HOST_IMX_CST_ARCH)/lib *.c -lfrontend -lcrypto
-	@$(call touch)
+HOST_IMX_CST_MAKE_ENV := \
+	$(HOST_ENV) \
+	OPENSSL_PATH="$(PTXDIST_SYSROOT_HOST)/usr/lib/"
 
 # ----------------------------------------------------------------------------
 # Install
@@ -71,19 +67,13 @@ $(STATEDIR)/host-imx-cst.compile:
 HOST_IMX_CST_PROGS := \
 	cst \
 	srktool \
-	x5092wtls
-
-HOST_IMX_CST_LIBS := \
-	libfrontend.a
+	mac_dump
 
 $(STATEDIR)/host-imx-cst.install:
 	@$(call targetinfo)
 	@$(foreach prog, $(HOST_IMX_CST_PROGS), \
-		install -v -m0755 -D $(HOST_IMX_CST_DIR)/$(HOST_IMX_CST_ARCH)/bin/$(prog) \
+		install -v -m0755 -D $(HOST_IMX_CST_DIR)/build/$(HOST_IMX_CST_ARCH)/bin/$(prog) \
 		$(HOST_IMX_CST_PKGDIR)/usr/bin/$(prog)$(ptx/nl))
-	@$(foreach lib, $(HOST_IMX_CST_LIBS), \
-		install -v -m0644 -D $(HOST_IMX_CST_DIR)/$(HOST_IMX_CST_ARCH)/lib/$(lib) \
-		$(HOST_IMX_CST_PKGDIR)/usr/lib/imx-cst/$(lib)$(ptx/nl))
 	@$(call touch)
 
 # vim: syntax=make
-- 
2.39.5




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-10  8:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-05 11:00 [ptxdist] [PATCH] imx-cst: version bump 3.1.0 -> 3.4.1 Rouven Czerwinski
2025-03-07 10:15 ` Michael Olbrich
2025-03-07 10:20   ` Rouven Czerwinski
2025-03-07 10:25     ` Michael Olbrich
2025-03-10  8:27 ` [ptxdist] [APPLIED] " Michael Olbrich

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