summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc
diff options
context:
space:
mode:
authorNaveen Saini <naveen.kumar.saini@intel.com>2020-04-24 13:38:35 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2020-04-27 16:23:50 +0800
commit517c9b2c509672ef73494feba02af1703432bd8e (patch)
treec031289f3a5e424361dd87440317a149149731b9 /dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc
parentd45a72dc4b912b8f754d3a4e17593b49ac5a2f6b (diff)
downloadmeta-intel-517c9b2c509672ef73494feba02af1703432bd8e.tar.gz
opencl-clang: add recipe for 9.0.0 as well
opencl-clang project release branches links to different LLVM versions. So, in order to use latest igc version with both clang 10.x and 9.x, added seprated recipes. Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc')
-rw-r--r--dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc27
1 files changed, 27 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc
new file mode 100644
index 00000000..c099a509
--- /dev/null
+++ b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc
@@ -0,0 +1,27 @@
1SUMMARY = "Common clang is a thin wrapper library around clang"
2DESCRIPTION = "Common clang has OpenCL-oriented API and is capable \
3 to compile OpenCL C kernels to SPIR-V modules."
4
5LICENSE = "NCSA"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=e8a15bf1416762a09ece07e44c79118c"
7
8S = "${WORKDIR}/git"
9
10inherit cmake
11DEPENDS += "clang"
12DEPENDS_append_class-target = " opencl-clang-native"
13
14COMPATIBLE_HOST = '(x86_64).*-linux'
15COMPATIBLE_HOST_libc-musl = "null"
16
17EXTRA_OECMAKE += "\
18 -DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen \
19 -DCMAKE_SKIP_RPATH=TRUE \
20 "
21
22do_install_append_class-native() {
23 install -d ${D}${bindir}
24 install -m 0755 ${B}/linux_linker/linux_resource_linker ${D}${bindir}/
25}
26
27BBCLASSEXTEND = "native nativesdk"