summaryrefslogtreecommitdiffstats
path: root/recipes-security/optee-imx
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-03-12 21:38:47 -0700
committerKhem Raj <raj.khem@gmail.com>2023-03-12 21:38:47 -0700
commit0a89440a9b74010e12c9882233fce9cf1f635cea (patch)
tree3758f59f5a8b26878edb56417f63b3080539187a /recipes-security/optee-imx
parente7b24f8aefda47f95863154aa75cae2c81bd9dbe (diff)
downloadmeta-freescale-0a89440a9b74010e12c9882233fce9cf1f635cea.tar.gz
optee-test: Fix build with clang compiler
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-security/optee-imx')
-rw-r--r--recipes-security/optee-imx/optee-test_3.19.0.imx.bb4
1 files changed, 4 insertions, 0 deletions
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"
22OPTEE_ARCH:arm = "arm32" 22OPTEE_ARCH:arm = "arm32"
23OPTEE_ARCH:aarch64 = "arm64" 23OPTEE_ARCH:aarch64 = "arm64"
24 24
25COMPILER ?= "gcc"
26COMPILER:toolchain-clang = "clang"
27
25CFLAGS += "--sysroot=${STAGING_DIR_HOST}" 28CFLAGS += "--sysroot=${STAGING_DIR_HOST}"
26CXXFLAGS += "--sysroot=${STAGING_DIR_HOST}" 29CXXFLAGS += "--sysroot=${STAGING_DIR_HOST}"
27 30
@@ -32,6 +35,7 @@ EXTRA_OEMAKE = " \
32 CROSS_COMPILE_TA=${HOST_PREFIX} \ 35 CROSS_COMPILE_TA=${HOST_PREFIX} \
33 CROSS_COMPILE=${HOST_PREFIX} \ 36 CROSS_COMPILE=${HOST_PREFIX} \
34 OPENSSL_MODULES=${STAGING_LIBDIR_NATIVE}/ossl-modules \ 37 OPENSSL_MODULES=${STAGING_LIBDIR_NATIVE}/ossl-modules \
38 COMPILER=${COMPILER} \
35 -C ${S} O=${B} \ 39 -C ${S} O=${B} \
36" 40"
37 41