From 0a89440a9b74010e12c9882233fce9cf1f635cea Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 12 Mar 2023 21:38:47 -0700 Subject: optee-test: Fix build with clang compiler Signed-off-by: Khem Raj --- recipes-security/optee-imx/optee-test_3.19.0.imx.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-security/optee-imx/optee-test_3.19.0.imx.bb b/recipes-security/optee-imx/optee-test_3.19.0.imx.bb index fa418b87..a75b577c 100644 --- a/recipes-security/optee-imx/optee-test_3.19.0.imx.bb +++ b/recipes-security/optee-imx/optee-test_3.19.0.imx.bb @@ -22,6 +22,9 @@ REQUIRED_MACHINE_FEATURES = "optee" OPTEE_ARCH:arm = "arm32" OPTEE_ARCH:aarch64 = "arm64" +COMPILER ?= "gcc" +COMPILER:toolchain-clang = "clang" + CFLAGS += "--sysroot=${STAGING_DIR_HOST}" CXXFLAGS += "--sysroot=${STAGING_DIR_HOST}" @@ -32,6 +35,7 @@ EXTRA_OEMAKE = " \ CROSS_COMPILE_TA=${HOST_PREFIX} \ CROSS_COMPILE=${HOST_PREFIX} \ OPENSSL_MODULES=${STAGING_LIBDIR_NATIVE}/ossl-modules \ + COMPILER=${COMPILER} \ -C ${S} O=${B} \ " -- cgit v1.2.3-54-g00ecf