diff options
author | Naveen Saini <naveen.kumar.saini@intel.com> | 2020-04-24 13:38:35 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2020-04-27 16:23:50 +0800 |
commit | 517c9b2c509672ef73494feba02af1703432bd8e (patch) | |
tree | c031289f3a5e424361dd87440317a149149731b9 /dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc | |
parent | d45a72dc4b912b8f754d3a4e17593b49ac5a2f6b (diff) | |
download | meta-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.inc | 27 |
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 @@ | |||
1 | SUMMARY = "Common clang is a thin wrapper library around clang" | ||
2 | DESCRIPTION = "Common clang has OpenCL-oriented API and is capable \ | ||
3 | to compile OpenCL C kernels to SPIR-V modules." | ||
4 | |||
5 | LICENSE = "NCSA" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e8a15bf1416762a09ece07e44c79118c" | ||
7 | |||
8 | S = "${WORKDIR}/git" | ||
9 | |||
10 | inherit cmake | ||
11 | DEPENDS += "clang" | ||
12 | DEPENDS_append_class-target = " opencl-clang-native" | ||
13 | |||
14 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
15 | COMPATIBLE_HOST_libc-musl = "null" | ||
16 | |||
17 | EXTRA_OECMAKE += "\ | ||
18 | -DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ | ||
19 | -DCMAKE_SKIP_RPATH=TRUE \ | ||
20 | " | ||
21 | |||
22 | do_install_append_class-native() { | ||
23 | install -d ${D}${bindir} | ||
24 | install -m 0755 ${B}/linux_linker/linux_resource_linker ${D}${bindir}/ | ||
25 | } | ||
26 | |||
27 | BBCLASSEXTEND = "native nativesdk" | ||