From patchwork Wed Aug 7 20:43:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mariam Elshakfy X-Patchwork-Id: 47486 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 399E6C52D6F for ; Wed, 7 Aug 2024 20:44:02 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.44222.1723063434283703390 for ; Wed, 07 Aug 2024 13:43:54 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: mariam.elshakfy@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 62B85FEC; Wed, 7 Aug 2024 13:44:19 -0700 (PDT) Received: from Ubuntu.arm.com (unknown [10.57.95.92]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1930A3F766; Wed, 7 Aug 2024 13:43:52 -0700 (PDT) From: mariam.elshakfy@arm.com To: meta-arm@lists.yoctoproject.org Cc: Mariam Elshakfy Subject: [PATCH] arm/trusted-services: Move ts-newlib compilation fix to meta-arm Date: Wed, 7 Aug 2024 21:43:43 +0100 Message-Id: <20240807204343.4267-1-mariam.elshakfy@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 07 Aug 2024 20:44:02 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/5957 From: Mariam Elshakfy 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. Signed-off-by: Mariam Elshakfy --- .../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(-) diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-newlib_%.bbappend b/meta-arm-bsp/recipes-security/trusted-services/ts-newlib_%.bbappend index e861426a..708f5986 100644 --- a/meta-arm-bsp/recipes-security/trusted-services/ts-newlib_%.bbappend +++ b/meta-arm-bsp/recipes-security/trusted-services/ts-newlib_%.bbappend @@ -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" diff --git a/meta-arm/recipes-security/trusted-services/ts-newlib_4.1.0.bb b/meta-arm/recipes-security/trusted-services/ts-newlib_4.1.0.bb index 669e87ae..866276b3 100644 --- a/meta-arm/recipes-security/trusted-services/ts-newlib_4.1.0.bb +++ b/meta-arm/recipes-security/trusted-services/ts-newlib_4.1.0.bb @@ -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 )