Skip to contentSkip to conversation

optee-client: Switch away from S = WORKDIR

PATCH Applied Andrey Zhizhikin 2 participants 3 messages May 28, 2024 – Jun 18, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 optee-client: Switch away from S = WORKDIR

Since OE-Core commit 32cba1cc916a ("insane: Error for S == WORKDIR") usage of WORKDIR in tasks is fatal, and shall be replaced with UNPACKDIR. Similar change is introduced in OE-Core commit d9328e3b0b06 ("recipes:
Switch away from S = WORKDIR"), follow the same pattern for OP-TEE client.

---
 meta-arm/recipes-security/optee/optee-client.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arm/recipes-security/optee/optee-client.inc +2 -2
index 77f6a642..ddda2d1a 100644
@@ -24,8 +24,8 @@ EXTRA_OECMAKE = " \
 EXTRA_OECMAKE:append:toolchain-clang = " -DCFG_WERROR=0"
 
 do_install:append() {
-    install -D -p -m0644 ${WORKDIR}/[email protected] ${D}${systemd_system_unitdir}/[email protected]
-    install -D -p -m0755 ${WORKDIR}/tee-supplicant.sh ${D}${sysconfdir}/init.d/tee-supplicant
+    install -D -p -m0644 ${UNPACKDIR}/[email protected] ${D}${systemd_system_unitdir}/[email protected]
+    install -D -p -m0755 ${UNPACKDIR}/tee-supplicant.sh ${D}${sysconfdir}/init.d/tee-supplicant
 
     sed -i -e s:@sysconfdir@:${sysconfdir}:g \
            -e s:@sbindir@:${sbindir}:g \
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Andrey Zhizhikin

Since OE-Core commit 32cba1cc916a ("insane: Error for S == WORKDIR") usage of WORKDIR in tasks is fatal, and shall be replaced with UNPACKDIR. Similar change is introduced in OE-Core commit d9328e3b0b06 ("recipes:
Switch away from S = WORKDIR"), follow the same pattern for OP-TEE client.

Thanks for the patch. Unfortunately, we need to delay merging it for a couple of weeks. This is due to the WORKDIR changes not working on scarthgap and needing master to be pinned to scarthgap for an upcoming BSP release. I've added this patch to my gitlab master-next-master branch with the other patch(es) being held for the same reason, and will push it to master once that release occurs.

Thanks,
Jon

Quoted 23 lines
---
 meta-arm/recipes-security/optee/optee-client.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arm/recipes-security/optee/optee-client.inc +2 -2
index 77f6a642..ddda2d1a 100644
@@ -24,8 +24,8 @@ EXTRA_OECMAKE = " \
 EXTRA_OECMAKE:append:toolchain-clang = " -DCFG_WERROR=0"
 
 do_install:append() {
-    install -D -p -m0644 ${WORKDIR}/[email protected] ${D}${systemd_system_unitdir}/[email protected]
-    install -D -p -m0755 ${WORKDIR}/tee-supplicant.sh ${D}${sysconfdir}/init.d/tee-supplicant
+    install -D -p -m0644 ${UNPACKDIR}/[email protected] ${D}${systemd_system_unitdir}/[email protected]
+    install -D -p -m0755 ${UNPACKDIR}/tee-supplicant.sh ${D}${sysconfdir}/init.d/tee-supplicant
 
     sed -i -e s:@sysconfdir@:${sysconfdir}:g \
            -e s:@sbindir@:${sbindir}:g \
Signature · 1 line
2.34.1
Applied
#2 lore raw
In reply to Andrey Zhizhikin
Quoted 6 lines · Andrey Zhizhikin

Since OE-Core commit 32cba1cc916a ("insane: Error for S == WORKDIR") usage of WORKDIR in tasks is fatal, and shall be replaced with UNPACKDIR. Similar change is introduced in OE-Core commit d9328e3b0b06 ("recipes:
Switch away from S = WORKDIR"), follow the same pattern for OP-TEE client.

Applied, thanks!

[1/1] optee-client: Switch away from S = WORKDIR

      commit: 30872ba12abaab0a53e332a33429e602be30e249

Best regards,

Signature · 1 line
Jon Mason <[email protected]>