Skip to contentSkip to conversation

arm/trusted-services: Move ts-newlib compilation fix to meta-arm

PATCH New [email protected] 1 participant 1 message Aug 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/trusted-services: Move ts-newlib compilation fix to meta-arm

From: Mariam Elshakfy <[email protected]>

This change moves ts-newlib compilation fix from meta-arm-bsp to meta-arm, as this compilation failure is not specific to meta-arm-bsp platforms.

---
 .../recipes-security/trusted-services/ts-newlib_%.bbappend     | 1 -
 meta-arm/recipes-security/trusted-services/ts-newlib_4.1.0.bb  | 3 +++
 2 files changed, 3 insertions(+), 1 deletion(-)
meta-arm-bsp/recipes-security/trusted-services/ts-newlib_%.bbappend +0 -1
index e861426a..708f5986 100644
@@ -4,6 +4,5 @@ COMPATIBLE_MACHINE:corstone1000 = "corstone1000"
 SRC_URI:append:corstone1000 = " \
   file://0001-newlib-memcpy-remove-optimized-version.patch;patchdir=../newlib \
 "
-export NEWLIB_CFLAGS_TARGET = "-Wno-implicit-function-declaration -Wno-int-conversion"
 
 COMPATIBLE_MACHINE:fvp-base = "fvp-base"
meta-arm/recipes-security/trusted-services/ts-newlib_4.1.0.bb +3 -0
index 669e87ae..866276b3 100644
@@ -20,6 +20,9 @@ EXTRA_OECMAKE += '-DNEWLIB_SOURCE_DIR=${WORKDIR}/git/newlib \
 
 OECMAKE_SOURCEPATH = "${S}/deployments/newlib/${TS_ENV}/"
 
+# Silence compilation errors from GCC 14.1 due to stricter code validation
+export NEWLIB_CFLAGS_TARGET = "-Wno-implicit-function-declaration -Wno-int-conversion"
+
 # TS ships a patch that needs to be applied to newlib
 apply_ts_patch() {
     ( cd ${WORKDIR}/git/newlib;    git stash; git branch -f bf_am; git am ${S}/external/newlib/*.patch; git reset bf_am )
Signature · 1 line
2.34.1