Skip to contentSkip to conversation

optee: Update to upstream 4.0.0

PATCH In review Ryan Eatmon 2 participants 4 messages Oct 26, 2023 – Oct 27, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 optee: Update to upstream 4.0.0

Update all of the optee components to the upstream 4.0.0 version.

---
 meta-ti-bsp/recipes-security/optee/optee-client-ti.inc    | 4 ++--
 meta-ti-bsp/recipes-security/optee/optee-examples-ti.inc  | 4 ++--
 .../recipes-security/optee/optee-os-tadevkit-ti.inc       | 5 +++--
 meta-ti-bsp/recipes-security/optee/optee-os-ti.inc        | 4 ++--
 meta-ti-bsp/recipes-security/optee/optee-test-ti.inc      | 8 ++++++--
 5 files changed, 15 insertions(+), 10 deletions(-)
meta-ti-bsp/recipes-security/optee/optee-client-ti.inc +2 -2
index fef87d30..f64a90c3 100644
@@ -1,5 +1,5 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "dd2d39b49975d2ada7870fe2b7f5a84d0d3860dc"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "acb0885c117e73cb6c5c9b1dd9054cb3f93507ee"
 
 inherit pkgconfig
 DEPENDS += "util-linux"
meta-ti-bsp/recipes-security/optee/optee-examples-ti.inc +2 -2
index 7d119f0d..7a733f53 100644
@@ -1,3 +1,3 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "a98d01e1b9168eaed96bcd0bac0df67c44a81081"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "378dc0db2d5dd279f58a3b6cb3f78ffd6b165035"
 SRC_URI:remove = "file://0001-Makefile-Fix-non-portable-sh-check-for-plugins.patch"
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +3 -2
index 18820af1..c1354539 100644
@@ -1,2 +1,3 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "8e74d47616a20eaa23ca692f4bbbf917a236ed94"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6"
+
meta-ti-bsp/recipes-security/optee/optee-os-ti.inc +2 -2
index 19386295..763dd1d5 100644
@@ -1,5 +1,5 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "8e74d47616a20eaa23ca692f4bbbf917a236ed94"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6"
 
 # Use TI SECDEV for signing
 inherit ti-secdev
meta-ti-bsp/recipes-security/optee/optee-test-ti.inc +6 -2
index 43e0172d..b68caf0c 100644
@@ -1,2 +1,6 @@
-PV = "3.19.0+git${SRCPV}"
-SRCREV = "ab9863cc187724e54c032b738c28bd6e9460a4db"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "1c3d6be5eaa6174e3dbabf60928d15628e39b994"
+
+EXTRA_OEMAKE:append = " OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}"
+DEPENDS:append = " openssl"
+
Signature · 1 line
2.17.1
#1 lore raw

Hi Ryan,

Quoted 38 lines · Ryan Eatmon via lists.yoctoproject.org

Update all of the optee components to the upstream 4.0.0 version.

---
 meta-ti-bsp/recipes-security/optee/optee-client-ti.inc    | 4 ++--
 meta-ti-bsp/recipes-security/optee/optee-examples-ti.inc  | 4 ++--
 .../recipes-security/optee/optee-os-tadevkit-ti.inc       | 5 +++--
 meta-ti-bsp/recipes-security/optee/optee-os-ti.inc        | 4 ++--
 meta-ti-bsp/recipes-security/optee/optee-test-ti.inc      | 8 ++++++--
 5 files changed, 15 insertions(+), 10 deletions(-)
meta-ti-bsp/recipes-security/optee/optee-client-ti.inc +2 -2
index fef87d30..f64a90c3 100644
@@ -1,5 +1,5 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "dd2d39b49975d2ada7870fe2b7f5a84d0d3860dc"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "acb0885c117e73cb6c5c9b1dd9054cb3f93507ee"
 
 inherit pkgconfig
 DEPENDS += "util-linux"
meta-ti-bsp/recipes-security/optee/optee-examples-ti.inc +2 -2
index 7d119f0d..7a733f53 100644
@@ -1,3 +1,3 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "a98d01e1b9168eaed96bcd0bac0df67c44a81081"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "378dc0db2d5dd279f58a3b6cb3f78ffd6b165035"
 SRC_URI:remove = "file://0001-Makefile-Fix-non-portable-sh-check-for-plugins.patch"
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +0 -0
index 18820af1..c1354539 100644

meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc line 2

Quoted 4 lines
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +2 -2
@@ -1,2 +1,3 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "8e74d47616a20eaa23ca692f4bbbf917a236ed94"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6"

If possible, can we pick the same SHA of optee-os itself for this through some include file? I don't think it makes sense to update the same SHA at two places for this tadevkit that I see always being in sync with optee-os only. Ig this had been the missing piece in my testing that I had missed updating that led to crashed for me. Upto you but just a suggestion.

Regards,
Manorit

Quoted 39 lines
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +1 -0
+
meta-ti-bsp/recipes-security/optee/optee-os-ti.inc +2 -2
index 19386295..763dd1d5 100644
@@ -1,5 +1,5 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "8e74d47616a20eaa23ca692f4bbbf917a236ed94"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6"
 
 # Use TI SECDEV for signing
 inherit ti-secdev
meta-ti-bsp/recipes-security/optee/optee-test-ti.inc +6 -2
index 43e0172d..b68caf0c 100644
@@ -1,2 +1,6 @@
-PV = "3.19.0+git${SRCPV}"
-SRCREV = "ab9863cc187724e54c032b738c28bd6e9460a4db"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "1c3d6be5eaa6174e3dbabf60928d15628e39b994"
+
+EXTRA_OEMAKE:append = " OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}"
+DEPENDS:append = " openssl"
+
Signature · 11 lines
2.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17195): https://lists.yoctoproject.org/g/meta-ti/message/17195
Mute This Topic: https://lists.yoctoproject.org/mt/102199608/6945827
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/11362175/6945827/309017070/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw
Quoted 44 lines · Manorit Chawdhry

Hi Ryan,

Quoted 41 lines · Ryan Eatmon via lists.yoctoproject.org

Update all of the optee components to the upstream 4.0.0 version.

---
  meta-ti-bsp/recipes-security/optee/optee-client-ti.inc    | 4 ++--
  meta-ti-bsp/recipes-security/optee/optee-examples-ti.inc  | 4 ++--
  .../recipes-security/optee/optee-os-tadevkit-ti.inc       | 5 +++--
  meta-ti-bsp/recipes-security/optee/optee-os-ti.inc        | 4 ++--
  meta-ti-bsp/recipes-security/optee/optee-test-ti.inc      | 8 ++++++--
  5 files changed, 15 insertions(+), 10 deletions(-)
meta-ti-bsp/recipes-security/optee/optee-client-ti.inc +2 -2
index fef87d30..f64a90c3 100644
@@ -1,5 +1,5 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "dd2d39b49975d2ada7870fe2b7f5a84d0d3860dc"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "acb0885c117e73cb6c5c9b1dd9054cb3f93507ee"
 
  inherit pkgconfig
  DEPENDS += "util-linux"
meta-ti-bsp/recipes-security/optee/optee-examples-ti.inc +2 -2
index 7d119f0d..7a733f53 100644
@@ -1,3 +1,3 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "a98d01e1b9168eaed96bcd0bac0df67c44a81081"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "378dc0db2d5dd279f58a3b6cb3f78ffd6b165035"
  SRC_URI:remove = "file://0001-Makefile-Fix-non-portable-sh-check-for-plugins.patch"
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +1 -2
index 18820af1..c1354539 100644
@@ -1,2 +1,3 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "8e74d47616a20eaa23ca692f4bbbf917a236ed94"
+PV = "4.0.0+git${SRCPV}"
Quoted 8 lines

meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc line 2

Quoted 1 line
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +1 -0
+SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6"

If possible, can we pick the same SHA of optee-os itself for this through some include file? I don't think it makes sense to update the same SHA at two places for this tadevkit that I see always being in sync with optee-os only. Ig this had been the missing piece in my testing that I had missed updating that led to crashed for me. Upto you but just a suggestion.

I noticed that too. Let me look into that. I may go ahead and do the 4.0.0 update and clean that up in a later patch.

Quoted 42 lines

Regards,
Manorit

Quoted 39 lines
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +1 -0
+
meta-ti-bsp/recipes-security/optee/optee-os-ti.inc +2 -2
index 19386295..763dd1d5 100644
@@ -1,5 +1,5 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "8e74d47616a20eaa23ca692f4bbbf917a236ed94"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6"
 
  # Use TI SECDEV for signing
  inherit ti-secdev
meta-ti-bsp/recipes-security/optee/optee-test-ti.inc +6 -2
index 43e0172d..b68caf0c 100644
@@ -1,2 +1,6 @@
-PV = "3.19.0+git${SRCPV}"
-SRCREV = "ab9863cc187724e54c032b738c28bd6e9460a4db"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "1c3d6be5eaa6174e3dbabf60928d15628e39b994"
+
+EXTRA_OEMAKE:append = " OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}"
+DEPENDS:append = " openssl"
+
Signature · 11 lines
2.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17195): https://lists.yoctoproject.org/g/meta-ti/message/17195
Mute This Topic: https://lists.yoctoproject.org/mt/102199608/6945827
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/11362175/6945827/309017070/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 55 lines · Ryan Eatmon via lists.yoctoproject.org
Quoted 43 lines · Manorit Chawdhry

Hi Ryan,

Quoted 40 lines · Ryan Eatmon via lists.yoctoproject.org

Update all of the optee components to the upstream 4.0.0 version.

---
  meta-ti-bsp/recipes-security/optee/optee-client-ti.inc    | 4 ++-- meta-ti-bsp/recipes-security/optee/optee-examples-ti.inc  | 4 ++-- .../recipes-security/optee/optee-os-tadevkit-ti.inc       | 5 +++-- meta-ti-bsp/recipes-security/optee/optee-os-ti.inc        | 4 ++-- meta-ti-bsp/recipes-security/optee/optee-test-ti.inc      | 8 ++++++--

  5 files changed, 15 insertions(+), 10 deletions(-)
meta-ti-bsp/recipes-security/optee/optee-client-ti.inc +2 -2
index fef87d30..f64a90c3 100644
@@ -1,5 +1,5 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "dd2d39b49975d2ada7870fe2b7f5a84d0d3860dc"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "acb0885c117e73cb6c5c9b1dd9054cb3f93507ee"

  inherit pkgconfig
  DEPENDS += "util-linux"

meta-ti-bsp/recipes-security/optee/optee-examples-ti.inc +2 -2
index 7d119f0d..7a733f53 100644
@@ -1,3 +1,3 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "a98d01e1b9168eaed96bcd0bac0df67c44a81081"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "378dc0db2d5dd279f58a3b6cb3f78ffd6b165035"

  SRC_URI:remove = "file://0001-Makefile-Fix-non-portable-sh-check-for-plugins.patch"

meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +1 -2
index 18820af1..c1354539 100644
@@ -1,2 +1,3 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "8e74d47616a20eaa23ca692f4bbbf917a236ed94"
+PV = "4.0.0+git${SRCPV}"
Quoted 8 lines

meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc line 2

Quoted 1 line
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +1 -0
+SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6"

If possible, can we pick the same SHA of optee-os itself for this through some include file? I don't think it makes sense to update the same SHA at two places for this tadevkit that I see always being in sync with optee-os only. Ig this had been the missing piece in my testing that I had missed updating that led to crashed for me. Upto you but just a suggestion.

Quoted 1 line

I noticed that too.  Let me look into that.  I may go ahead and do the 4.0.0 update and clean that up in a later patch.

I think we can do this. This is what I'm thinking... For those .inc files that have both SRCREV and other changes, split them into two .inc files.

optee-os-ti.inc - changes to the recipe optee-os-ti-src.inc - changes to SRCREV and SRC_URI (for patches)

For those that just change SRCDEV, rename them to the *-ti-src.inc for consistency.

Then we can include the *-ti-src.inc changes from multiple places without also including the recipe changes.

Denys, thoughts on this idea?

Quoted 47 lines
Quoted 36 lines

Regards,
Manorit

Quoted 32 lines
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +1 -0
+
meta-ti-bsp/recipes-security/optee/optee-os-ti.inc +2 -2
index 19386295..763dd1d5 100644
@@ -1,5 +1,5 @@
-PV = "3.20.0+git${SRCPV}"
-SRCREV = "8e74d47616a20eaa23ca692f4bbbf917a236ed94"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6"
   # Use TI SECDEV for signing

  inherit ti-secdev

meta-ti-bsp/recipes-security/optee/optee-test-ti.inc +6 -2
index 43e0172d..b68caf0c 100644
@@ -1,2 +1,6 @@
-PV = "3.19.0+git${SRCPV}"
-SRCREV = "ab9863cc187724e54c032b738c28bd6e9460a4db"
+PV = "4.0.0+git${SRCPV}"
+SRCREV = "1c3d6be5eaa6174e3dbabf60928d15628e39b994"
+
+EXTRA_OEMAKE:append = " OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}"
+DEPENDS:append = " openssl"
+
Signature · 1 line
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17208): https://lists.yoctoproject.org/g/meta-ti/message/17208
Mute This Topic: https://lists.yoctoproject.org/mt/102199608/6551054
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/10828724/6551054/1815494134/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS