diff mbox series

[1/3] arm/optee-ftpm: silence new compiler errors from GCC 14.1

Message ID 20240618154129.456464-1-ross.burton@arm.com
State New
Headers show
Series [1/3] arm/optee-ftpm: silence new compiler errors from GCC 14.1 | expand

Commit Message

Ross Burton June 18, 2024, 3:41 p.m. UTC
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 <ross.burton@arm.com>
---
 meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Jon Mason June 19, 2024, 12:46 p.m. UTC | #1
On Tue, 18 Jun 2024 15:41:27 +0000, Ross Burton wrote:
> 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
> 
> [...]

Applied, thanks!

[1/3] arm/optee-ftpm: silence new compiler errors from GCC 14.1
      commit: 1985604bebacab4ecbc721469d319e1a4a1de1c5
[2/3] arm-bsp/firmware-image-juno: use UNPACKDIR
      commit: 80be96437ee285611a46536d75c7f35a8afe61ec
[3/3] arm/libts: use UNPACKDIR
      commit: 981425c54e36e3414ab1abadd2c7b1f684f2c1ff

Best regards,
diff mbox series

Patch

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 d5f6e01d..9546215a 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"