optee: Check for meta-clang for TOOLCHAIN variable
PATCH 1/1 optee: Check for meta-clang for TOOLCHAIN variable
This covers the case when meta-clang is not in layers but TOOLCHAIN variable is defined ( via config metadata e.g. local.conf ), the value for TOOLCHAIN should be discarded in this case.
Signed-off-by Khem Raj <[email protected]>
Cc Jon Mason <[email protected]>
Cc Ross Burton <[email protected]>
--- meta-arm/recipes-security/optee/optee.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-arm/recipes-security/optee/optee.inc +2 -1
@@ -12,7 +12,8 @@ OPTEE_ARCH_armv7a = "arm32" OPTEE_ARCH_aarch64 = "arm64" OPTEE_CORE = "${@d.getVar('OPTEE_ARCH').upper()}" -OPTEE_COMPILER = "${@d.getVar('TOOLCHAIN') or 'gcc'}" +OPTEE_TOOLCHAIN = "${@d.getVar('TOOLCHAIN') or 'gcc'}" +OPTEE_COMPILER = "${@bb.utils.contains("BBFILE_COLLECTIONS", "clang-layer", "${OPTEE_TOOLCHAIN}", "gcc", d)}" # Set here but not passed to EXTRA_OEMAKE by default as that breaks # the optee-os build
Signature · 1 line
2.30.1
Jon Mason
AppliedQuoted 8 lines · Khem Raj
This covers the case when meta-clang is not in layers but TOOLCHAIN variable is defined ( via config metadata e.g. local.conf ), the value for TOOLCHAIN should be discarded in this case.
Signed-off-by Khem Raj <[email protected]>Cc Jon Mason <[email protected]>Cc Ross Burton <[email protected]>---
Applied to the master branch.
Thanks,
Jon
Quoted 24 lines
meta-arm/recipes-security/optee/optee.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta-arm/recipes-security/optee/optee.inc +2
-1@@ -12,7 +12,8 @@ OPTEE_ARCH_armv7a = "arm32" OPTEE_ARCH_aarch64 = "arm64" OPTEE_CORE = "${@d.getVar('OPTEE_ARCH').upper()}" -OPTEE_COMPILER = "${@d.getVar('TOOLCHAIN') or 'gcc'}" +OPTEE_TOOLCHAIN = "${@d.getVar('TOOLCHAIN') or 'gcc'}" +OPTEE_COMPILER = "${@bb.utils.contains("BBFILE_COLLECTIONS", "clang-layer", "${OPTEE_TOOLCHAIN}", "gcc", d)}" # Set here but not passed to EXTRA_OEMAKE by default as that breaks # the optee-os buildSignature · 1 line
2.30.1