diff options
author | Naveen Saini <naveen.kumar.saini@intel.com> | 2021-09-03 09:20:02 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-09-03 09:25:01 +0800 |
commit | 7cd64cc018d4eed644826076ec3eae3573f24e8f (patch) | |
tree | 9867170a012e68657c20d095183ef13d46209390 /dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_11.0.0.bb | |
parent | a6dadb2499dcb5127b8a411db10d2f9ae53fb4d1 (diff) | |
download | meta-intel-7cd64cc018d4eed644826076ec3eae3573f24e8f.tar.gz |
opencl-clang: restructure
Restructured recipes, having common code in .inc
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_11.0.0.bb')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_11.0.0.bb | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_11.0.0.bb b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_11.0.0.bb index e0b12d1f..60d5f0cc 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_11.0.0.bb +++ b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_11.0.0.bb | |||
@@ -1,35 +1,15 @@ | |||
1 | SUMMARY = "Common clang is a thin wrapper library around clang" | 1 | require opencl-clang.inc |
2 | DESCRIPTION = "Common clang has OpenCL-oriented API and is capable \ | ||
3 | to compile OpenCL C kernels to SPIR-V modules." | ||
4 | 2 | ||
5 | LICENSE = "NCSA" | 3 | SRC_URI:append = " file://0001-don-t-redefine-LLVM_TABLEGEN_EXE.patch \ |
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e8a15bf1416762a09ece07e44c79118c" | ||
7 | |||
8 | SRC_URI = "git://github.com/intel/opencl-clang.git;branch=ocl-open-110;protocol=https \ | ||
9 | file://0001-don-t-redefine-LLVM_TABLEGEN_EXE.patch \ | ||
10 | " | 4 | " |
11 | SRC_URI:append:class-native = " file://0002-make-sure-only-static-libraries-linked-for-native-bu.patch" | 5 | SRC_URI:append:class-native = " file://0002-make-sure-only-static-libraries-linked-for-native-bu.patch" |
12 | 6 | ||
13 | SRCREV = "c67648d41df00ea8ee9d701d17299b86f86f0321" | 7 | SRCREV = "c67648d41df00ea8ee9d701d17299b86f86f0321" |
14 | 8 | ||
15 | S = "${WORKDIR}/git" | 9 | BRANCH = "ocl-open-110" |
16 | |||
17 | inherit cmake | ||
18 | DEPENDS += "clang" | ||
19 | DEPENDS:append:class-target = " opencl-clang-native" | ||
20 | |||
21 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
22 | COMPATIBLE_HOST:libc-musl = "null" | ||
23 | 10 | ||
24 | EXTRA_OECMAKE += "\ | 11 | EXTRA_OECMAKE += "\ |
25 | -DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ | 12 | -DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ |
26 | -DCMAKE_SKIP_RPATH=TRUE \ | 13 | -DCMAKE_SKIP_RPATH=TRUE \ |
27 | -DPREFERRED_LLVM_VERSION="11.1.0" \ | 14 | -DPREFERRED_LLVM_VERSION="11.1.0" \ |
28 | " | 15 | " |
29 | |||
30 | do_install:append:class-native() { | ||
31 | install -d ${D}${bindir} | ||
32 | install -m 0755 ${B}/linux_linker/linux_resource_linker ${D}${bindir}/ | ||
33 | } | ||
34 | |||
35 | BBCLASSEXTEND = "native nativesdk" | ||