Skip to contentSkip to conversation

arm/trusted-services: upgrade in-tree nanopb

PATCH New Ross Burton 1 participant 2 messages Mar 10

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 arm/trusted-services: upgrade in-tree nanopb

Trusted Services uses nanopb 0.4.8 but this imports pkg_resources from setuptools, which has been deprecated since 2023[1] and was finally removed in setuptools 82.

This was fixed in nanopb some time ago[2] so upgrade the recipe from nanopb 0.48 to 0.49.1.

[1] https://setuptools.pypa.io/en/latest/deprecated/pkg_resources.html
[2] https://github.com/nanopb/nanopb/commit/7961a939ebeeb27631c6def44f3452522264c64b

---
 .../trusted-services/trusted-services-src.inc               | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-arm/recipes-security/trusted-services/trusted-services-src.inc +3 -3
index 7638a3ea67..22cc76ef25 100644
@@ -22,9 +22,9 @@ SRC_URI_TRUSTED_SERVICES_MBEDTLS = "gitsm://github.com/Mbed-TLS/mbedtls;protocol
 SRCREV_mbedtls = "e185d7fd85499c8ce5ca2a54f5cf8fe7dbe3f8df"
 LIC_FILES_CHKSUM += "file://ts-external/mbedtls/LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"
 
-# Nanopb, tag "nanopb-0.4.8" plus some further fixes
-SRC_URI_TRUSTED_SERVICES_NANOPB = "git://github.com/nanopb/nanopb.git;protocol=https;branch=master"
-SRCREV_nanopb = "6cfe48d6f1593f8fa5c0f90437f5e6522587745e"
+# Nanopb, tag "nanopb-0.4.9.1"
+SRC_URI_TRUSTED_SERVICES_NANOPB = "git://github.com/nanopb/nanopb.git;protocol=https;branch=maintenance_0.4"
+SRCREV_nanopb = "cad3c18ef15a663e30e3e43e3a752b66378adec1"
 LIC_FILES_CHKSUM += "file://ts-external/nanopb/LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f"
 
 # qcbor, tag "v1.0.0"
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 arm/fvp-corstone-1000-a320: trim Python install instead of using INSANE_SKIP

The INSANE_SKIPs were not sufficient because the chrpath code used in nativesdk builds still warns, so instead of hiding the warnings fix them
instead: remove the pointless RPATHs in the embedded Python libaries, and delete the static libraries.

---
 meta-arm/recipes-devtools/fvp/fvp-corstone1000-a320.bb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
meta-arm/recipes-devtools/fvp/fvp-corstone1000-a320.bb +6 -2
index f3093d7173..c266abc4f1 100644
@@ -19,6 +19,10 @@ LIC_FILES_CHKSUM = "\
     file://license_terms/third_party_licenses/third_party_licenses.txt;md5=a5ce56e117d0ab63791fbb7c35ec2211 \
 "
 
+do_install:append() {
+    # This FVP embeds a Python runtime, so clean up RPATHs and remove pointless static libraries
+    chrpath --delete ${D}${FVPDIR}/python/lib/python*/lib-dynload/*.so
+    find ${D}${FVPDIR}/python/ -name *.a -delete
+}
+
 COMPATIBLE_HOST = "(aarch64|x86_64).*-linux"
-INSANE_SKIP:${PN} += "staticdev rpaths useless-rpaths"
-INSANE_SKIP:nativesdk-${PN} += "staticdev rpaths useless-rpaths"
Signature · 1 line
2.43.0