All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-ti][scarthgap][PATCH v4] meta-ti-bsp: optee: Ensure libckteec.so symlink is installed
@ 2025-11-17  8:34 Suhaas Joshi
  2025-11-17  8:40 ` PRC Automation
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Suhaas Joshi @ 2025-11-17  8:34 UTC (permalink / raw)
  To: meta-ti; +Cc: kamlesh, k-malarvizhi, s-tripathi1

Presently, /usr/lib/libckteec.so is not installed. Instead, the only
symlink present is /usr/lib/libckteec.so.0 which points to
libckteec.so.0.1.0. This makes OpenSSL commands fail since it looks for
/usr/bin/libckteec.so.

So ensure that this symlink is installed by explicitly adding a
FILES:${PN} assignment.

Signed-off-by: Suhaas Joshi <s-joshi@ti.com>
---
v3 -> v4:
* I realized that libckteec.so.0* and the PKCS#11 TA file were both already installed in the SDK.
  Therefore, in v4, I have removed the logic for that since its redundant now. CFG_PKCS11_TA and
  CFG_REE_FS are enabled by-default.
* v4 only fixes one issue: the absence of libckteec.so. /usr/bin/libckteec.so should link to
  /usr/bin/libckteec.so.0 which then links to /usr/bin/libckteec.so.0.1.0.
* Link to v3:
https://lore.kernel.org/yocto-meta-ti/20251113104522.2443817-1-prc@list.ti.com/T/#t
---
 .../recipes-security/optee/optee-client-ti-overrides.inc     | 1 +
 meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend   | 5 +++++
 2 files changed, 6 insertions(+)
 create mode 100644 meta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc

diff --git a/meta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc b/meta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc
new file mode 100644
index 00000000..dd6a9d01
--- /dev/null
+++ b/meta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc
@@ -0,0 +1 @@
+FILES:${PN} += "${libdir}/libckteec.so*"
diff --git a/meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend b/meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend
index f193e78b..0cee127f 100644
--- a/meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend
+++ b/meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend
@@ -2,3 +2,8 @@ OPTEE_TI_VERSION = ""
 OPTEE_TI_VERSION:ti-soc = "${BPN}-ti-version.inc"
 
 require ${OPTEE_TI_VERSION}
+
+OPTEE_TI_OVERRIDES = ""
+OPTEE_TI_OVERRIDES:ti-soc = "${BPN}-ti-overrides.inc"
+
+require ${OPTEE_TI_OVERRIDES}
-- 
2.34.1



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

end of thread, other threads:[~2025-11-18 19:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-17  8:34 [meta-ti][scarthgap][PATCH v4] meta-ti-bsp: optee: Ensure libckteec.so symlink is installed Suhaas Joshi
2025-11-17  8:40 ` PRC Automation
2025-11-17 19:06 ` Andrew Davis
2025-11-18  8:14   ` Suhaas Joshi
2025-11-18 16:29     ` Andrew Davis
2025-11-18 19:01 ` Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.