diff mbox series

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

Message ID 20260310141943.1590585-2-ross.burton@arm.com
State New
Headers show
Series [1/2] arm/trusted-services: upgrade in-tree nanopb | expand

Commit Message

Ross Burton March 10, 2026, 2:19 p.m. UTC
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.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-arm/recipes-devtools/fvp/fvp-corstone1000-a320.bb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-arm/recipes-devtools/fvp/fvp-corstone1000-a320.bb b/meta-arm/recipes-devtools/fvp/fvp-corstone1000-a320.bb
index f3093d7173..c266abc4f1 100644
--- a/meta-arm/recipes-devtools/fvp/fvp-corstone1000-a320.bb
+++ b/meta-arm/recipes-devtools/fvp/fvp-corstone1000-a320.bb
@@ -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"