meta-ti-bsp: optee: Ensure libckteec.so symlink is installed
PATCH v4 1/1 meta-ti-bsp: optee: Ensure libckteec.so symlink is installed
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.
---
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/[email protected]/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
meta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc new file +1 -0
@@ -0,0 +1 @@ +FILES:${PN} += "${libdir}/libckteec.so*"
meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend +5 -0
@@ -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}
Signature · 1 line
2.34.1
meta-ti / na / 20251117083407.3719468-1-s-joshi
PRC Results: PASS
=========================================================
check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
WARN - [meta-ti][scarthgap][PATCH v4] meta-ti-bsp: optee: Ensure libckteec.so symlink is installed
WARN: Commit message does not include file/recipe name: meta-ti-bsp: optee: Ensure libckteec.so symlink is installed. (COMMIT-MESSAGE-2)
patch
WARN: Commit message should not include directory path to recipe: meta-ti-bsp: optee: Ensure libckteec.so symlink is installed.
meta-ti-bsp: (COMMIT-MESSAGE-3)
patch
=========================================================
apply-yocto-patch: PASS
=========================================================
scarthgap
=====================
Summary:
- Patch Series: [meta-ti][scarthgap][PATCH v4] meta-ti-bsp: optee: Ensure libckteec.so symlink is installed
- Submitter: From: Suhaas Joshi <[email protected]>
- Date: Date: Mon, 17 Nov 2025 14:04:08 +0530
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: b7db69a9dc1494589c99704730dcecaead2489e7
Applied to:
- Repository: lcpd-prc-meta-ti
- Base Branch: scarthgap-wip
- Commit Author: LCPD Automation Script <[email protected]>
- Commit Subject: CI/CD Auto-Merger: cicd.scarthgap.202511140456
- Commit SHA: f483464c72055cdcb81853e06afc89719e73073f
Patches
----------------------------------------
All patches applied
=========================================================
check-yocto-repo: PASS
=========================================================
scarthgap
=====================
PASS
Quoted 5 lines · Suhaas Joshi via lists.yoctoproject.org
Presently,
/usr/lib/libckteec.sois not installed. Instead, the only symlink present is/usr/lib/libckteec.so.0which points to libckteec.so.0.1.0. This makes OpenSSL commands fail since it looks for/usr/bin/libckteec.so.
Seems like this would be an issue for others, have you sent this fix upstream to meta-arm?
Andrew
Quoted 50 lines
So ensure that this symlink is installed by explicitly adding a FILES:${PN} assignment.
Signed-off-by Suhaas Joshi <[email protected]>---
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_TAandCFG_REE_FSare enabled by-default.
* v4 only fixes one issue: the absence of libckteec.so./usr/bin/libckteec.soshould link to/usr/bin/libckteec.so.0which then links to/usr/bin/libckteec.so.0.1.0.
* Link to v3:
https://lore.kernel.org/yocto-meta-ti/[email protected]/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
meta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc new file +1
-0@@ -0,0 +1 @@ +FILES:${PN} += "${libdir}/libckteec.so*"meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend +5
-1@@ -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} -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#19278): https://lists.yoctoproject.org/g/meta-ti/message/19278
Mute This Topic: https://lists.yoctoproject.org/mt/116334516/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 9 lines · Andrew Davis
Quoted 5 lines · Suhaas Joshi via lists.yoctoproject.org
Presently,
/usr/lib/libckteec.sois not installed. Instead, the only symlink present is/usr/lib/libckteec.so.0which points to libckteec.so.0.1.0. This makes OpenSSL commands fail since it looks for/usr/bin/libckteec.so.Seems like this would be an issue for others, have you sent this fix upstream to meta-arm?
No, I have not. Will send it soon, once this patch is accepted.
Thanks
Suhaas
Quoted 53 lines
Andrew
Quoted 49 lines
So ensure that this symlink is installed by explicitly adding a FILES:${PN} assignment.
Signed-off-by Suhaas Joshi <[email protected]>---
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_TAandCFG_REE_FSare enabled by-default.
* v4 only fixes one issue: the absence of libckteec.so./usr/bin/libckteec.soshould link to/usr/bin/libckteec.so.0which then links to/usr/bin/libckteec.so.0.1.0.
* Link to v3:
https://lore.kernel.org/yocto-meta-ti/[email protected]/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
meta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc new file +1
-0@@ -0,0 +1 @@ +FILES:${PN} += "${libdir}/libckteec.so*"meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend +5
-1@@ -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} -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#19278): https://lists.yoctoproject.org/g/meta-ti/message/19278
Mute This Topic: https://lists.yoctoproject.org/mt/116334516/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 8 lines · Suhaas Joshi
Quoted 7 lines · Andrew Davis
Quoted 5 lines · Suhaas Joshi via lists.yoctoproject.org
Presently,
/usr/lib/libckteec.sois not installed. Instead, the only symlink present is/usr/lib/libckteec.so.0which points to libckteec.so.0.1.0. This makes OpenSSL commands fail since it looks for/usr/bin/libckteec.so.
Quoted 5 lines
Quoted 2 lines
Seems like this would be an issue for others, have you sent this fix upstream to meta-arm?
No, I have not. Will send it soon, once this patch is accepted.
Why wait? "Upstream first", maybe the ARM/OP-TEE folks will have a different/better solution you can simply back-port to meta-ti.
Andrew
Quoted 55 lines
Thanks
SuhaasQuoted 53 lines
Andrew
Quoted 49 lines
So ensure that this symlink is installed by explicitly adding a FILES:${PN} assignment.
Signed-off-by Suhaas Joshi <[email protected]>---
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_TAandCFG_REE_FSare enabled by-default.
* v4 only fixes one issue: the absence of libckteec.so./usr/bin/libckteec.soshould link to/usr/bin/libckteec.so.0which then links to/usr/bin/libckteec.so.0.1.0.
* Link to v3:
https://lore.kernel.org/yocto-meta-ti/[email protected]/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
meta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc new file +1
-0@@ -0,0 +1 @@ +FILES:${PN} += "${libdir}/libckteec.so*"meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend +5
-1@@ -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} -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#19278): https://lists.yoctoproject.org/g/meta-ti/message/19278
Mute This Topic: https://lists.yoctoproject.org/mt/116334516/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 8 lines · Suhaas Joshi via lists.yoctoproject.org
Presently,
/usr/lib/libckteec.sois not installed. Instead, the only symlink present is/usr/lib/libckteec.so.0which 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.
Quoted 8 lines
Signed-off-by Suhaas Joshi <[email protected]>---
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_TAandCFG_REE_FSare enabled by-default.
* v4 only fixes one issue: the absence of libckteec.so./usr/bin/libckteec.soshould link to/usr/bin/libckteec.so.0which then links to/usr/bin/libckteec.so.0.1.0.
NAK
This patch seems to be unnecessary.
After 4 revisions it was determined that the necessary library is getting built and packaged.
I just checked and all the symlinks are also getting created. In accordance with Distro packaging guidelines, which OE follows, the *.so file is assumed to be a development symlink, hence it gets packaged into a corresponding *-dev package.
Simply pulling *.so symlink into the main package is not the right way to handle it. Doing so will trigger a QA error that will require a "dev-so" flag in INSANE_SKIP list - while not immediately violating YP Compat requirements, it's still not recommended.
Quoted 30 lines
* Link to v3:
https://lore.kernel.org/yocto-meta-ti/[email protected]/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.incmeta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc new file +1
-0@@ -0,0 +1 @@ +FILES:${PN} += "${libdir}/libckteec.so*"meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend +5
-0@@ -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}Signature · 1 line
2.34.1