1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-01-11 15:00:39 +00:00

arm/optee-ftpm: enable clang compilation

Remove the forcing of GCC in the recipe, and make the changes necessary
to get clang working.

Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Jon Mason
2025-10-20 16:09:22 +01:00
parent 982c986a30
commit 9a613e84f3

View File

@@ -8,16 +8,14 @@ COMPATIBLE_MACHINE:qemuarm64 = "qemuarm64"
COMPATIBLE_MACHINE:qemuarm64-secureboot = "qemuarm64"
COMPATIBLE_MACHINE:qemuarm-secureboot = "qemuarm"
#FIXME - doesn't currently work with clang
TOOLCHAIN = "gcc"
inherit deploy python3native
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5a3925ece0806073ae9ebbb08ff6f11e"
LIC_FILES_CHKSUM += "file://optee-ta/LICENSE;md5=5a3925ece0806073ae9ebbb08ff6f11e"
DEPENDS = "python3-pyelftools-native optee-os-tadevkit python3-cryptography-native "
DEPENDS = "python3-pyelftools-native optee-os-tadevkit python3-cryptography-native"
DEPENDS:append:toolchain-clang = " lld-native"
FTPM_UUID = "bc50d971-d4c9-42c4-82cb-343fb7f37896"
@@ -49,6 +47,7 @@ TEEC_EXPORT = "${STAGING_DIR_HOST}${prefix}"
TA_DEV_KIT_DIR = "${STAGING_INCDIR}/optee/export-user_ta"
EXTRA_OEMAKE += '\
COMPILER=${TOOLCHAIN} \
TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \
CROSS_COMPILE=${TARGET_PREFIX} \
CFG_MS_TPM_20_REF="${S}" \
@@ -59,6 +58,8 @@ EXTRA_OEMAKE:append:aarch64:qemuall = "\
CFG_ARM64_ta_arm64=y \
"
CFLAGS:append:toolchain-clang = " -Wno-unknown-warning-option"
# 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"