Skip to content

Commit

Permalink
arm/optee-ftpm: silence new compiler errors from GCC 14.1
Browse files Browse the repository at this point in the history
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] microsoft/ms-tpm-20-ref#108

Signed-off-by: Ross Burton <[email protected]>
  • Loading branch information
rossburton authored and jonmason committed Jun 18, 2024
1 parent bd9fc4b commit 1985604
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1985604

Please sign in to comment.