diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-03-12 21:38:47 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-03-12 21:38:47 -0700 |
commit | 0a89440a9b74010e12c9882233fce9cf1f635cea (patch) | |
tree | 3758f59f5a8b26878edb56417f63b3080539187a /recipes-security/optee-imx | |
parent | e7b24f8aefda47f95863154aa75cae2c81bd9dbe (diff) | |
download | meta-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.bb | 4 |
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" | |||
22 | OPTEE_ARCH:arm = "arm32" | 22 | OPTEE_ARCH:arm = "arm32" |
23 | OPTEE_ARCH:aarch64 = "arm64" | 23 | OPTEE_ARCH:aarch64 = "arm64" |
24 | 24 | ||
25 | COMPILER ?= "gcc" | ||
26 | COMPILER:toolchain-clang = "clang" | ||
27 | |||
25 | CFLAGS += "--sysroot=${STAGING_DIR_HOST}" | 28 | CFLAGS += "--sysroot=${STAGING_DIR_HOST}" |
26 | CXXFLAGS += "--sysroot=${STAGING_DIR_HOST}" | 29 | CXXFLAGS += "--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 | ||