From 1985604bebacab4ecbc721469d319e1a4a1de1c5 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 18 Jun 2024 15:41:27 +0000 Subject: [PATCH] arm/optee-ftpm: silence new compiler errors from GCC 14.1 GCC 14.1 is stricter with code validation and the build now fails. However as upstream appear to be about to remove this source entirely from upstream[1] I didn't want to spend long investigating this if upstream changes will obsolete it, so just silence the errors for now. [1] https://github.com/microsoft/ms-tpm-20-ref/pull/108 Signed-off-by: Ross Burton --- meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb b/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb index d5f6e01db..9546215a2 100644 --- a/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb +++ b/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb @@ -42,6 +42,11 @@ EXTRA_OEMAKE:append:aarch64:qemuall = "\ CFG_ARM64_ta_arm64=y \ " +# TODO: GCC 14.1 is finding genuine issues with the code but as upstream appear to be removing +# the code we're building (https://github.com/microsoft/ms-tpm-20-ref/pull/108) lets just +# ignore them for now. +CFLAGS += "-Wno-implicit-function-declaration -Wno-incompatible-pointer-types" + # python3-cryptography needs the legacy provider, so set OPENSSL_MODULES to the # right path until this is relocated automatically. export OPENSSL_MODULES="${STAGING_LIBDIR_NATIVE}/ossl-modules"