From a1f9ebf7cf508ac11d2e5bd2b001fb3ffb6f156b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 3 Sep 2022 15:54:10 -0700 Subject: imx-atf: Use clang when using toolchain-clang defaults When clang is default compiler, we need to ensure that its added as dependency as well. Reported-by: Cliff Brake Signed-off-by: Khem Raj (cherry picked from commit d942acf911f2577e081e74cf0f7578ca5221d579) --- recipes-bsp/imx-atf/imx-atf_2.6.bb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'recipes-bsp/imx-atf') diff --git a/recipes-bsp/imx-atf/imx-atf_2.6.bb b/recipes-bsp/imx-atf/imx-atf_2.6.bb index b0426f0b..ec943fa5 100644 --- a/recipes-bsp/imx-atf/imx-atf_2.6.bb +++ b/recipes-bsp/imx-atf/imx-atf_2.6.bb @@ -37,6 +37,9 @@ LD[unexport] = "1" INHIBIT_DEFAULT_DEPS = "1" DEPENDS = "virtual/${HOST_PREFIX}gcc" +# Bring in clang compiler if using clang as default +DEPENDS:append:toolchain-clang = " clang-cross-${TARGET_ARCH}" + BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}" # CC and LD introduce arguments which conflict with those otherwise provided by -- cgit v1.2.3-54-g00ecf