[yocto] [PATCH V2 3/3] intel-graphics-compiler: skip it if clang is not ready

Hongxu Jia hongxu.jia at windriver.com
Thu Jul 25 02:04:08 PDT 2019


Since intel-graphics-compiler depends on clang, skip it if clang is not ready

Issue: LIN1019-1846
(LOCAL REV: NOT UPSTREAM) -- Sent to Yocto on 20190724

Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
 recipes-opencl/igc/intel-graphics-compiler_1.0.6.bb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/recipes-opencl/igc/intel-graphics-compiler_1.0.6.bb b/recipes-opencl/igc/intel-graphics-compiler_1.0.6.bb
index f64b97f..2c33b12 100644
--- a/recipes-opencl/igc/intel-graphics-compiler_1.0.6.bb
+++ b/recipes-opencl/igc/intel-graphics-compiler_1.0.6.bb
@@ -25,3 +25,11 @@ DEPENDS_class-target = " flex-native bison-native clang clang-cross-x86_64"
 
 EXTRA_OECMAKE = "-DIGC_PREFERRED_LLVM_VERSION=8.0.0 -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python2"
 EXTRA_OECMAKE += "-DCOMMON_CLANG_LIBRARY_NAME=common_clang"
+
+python __anonymous() {
+    toolchain = d.getVar('TOOLCHAIN')
+    if toolchain != "clang" or 'clang-layer' not in d.getVar('BBFILE_COLLECTIONS').split():
+        msg = "Add 'TOOLCHAIN = \"clang\"' in local.conf\n"
+        msg += "And meta-clang should be present"
+        raise bb.parse.SkipRecipe(msg)
+}
-- 
2.7.4



More information about the yocto mailing list