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 | |
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')
4 files changed, 34 insertions, 69 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..1d9b4d51 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc | |||
@@ -0,0 +1,24 @@ | |||
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 | SRC_URI = "git://github.com/intel/opencl-clang.git;branch=${BRANCH};protocol=https \ | ||
9 | " | ||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | inherit cmake | ||
13 | DEPENDS += "clang" | ||
14 | DEPENDS:append:class-target = " opencl-clang-native" | ||
15 | |||
16 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
17 | COMPATIBLE_HOST:libc-musl = "null" | ||
18 | |||
19 | do_install:append:class-native() { | ||
20 | install -d ${D}${bindir} | ||
21 | install -m 0755 ${B}/linux_linker/linux_resource_linker ${D}${bindir}/ | ||
22 | } | ||
23 | |||
24 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_10.0.0.bb b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_10.0.0.bb index c870b90b..e08f2278 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_10.0.0.bb +++ b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_10.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-100;protocol=https \ | ||
9 | file://0001-don-t-redefine-LLVM_TABLEGEN_EXE.patch \ | ||
10 | file://0001-Building-in-tree-with-LLVM-10.0-with-the-LLVM_LINK_L.patch \ | 4 | file://0001-Building-in-tree-with-LLVM-10.0-with-the-LLVM_LINK_L.patch \ |
11 | " | 5 | " |
12 | SRC_URI:append:class-native = " file://0002-make-sure-only-static-libraries-linked-for-native-bu.patch" | 6 | SRC_URI:append:class-native = " file://0002-make-sure-only-static-libraries-linked-for-native-bu.patch" |
13 | 7 | ||
14 | SRCREV = "c8cd72e32b6abc18ce6da71c357ea45ba78b52f0" | 8 | BRANCH = "ocl-open-100" |
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | inherit cmake | ||
19 | DEPENDS += "clang" | ||
20 | DEPENDS:append:class-target = " opencl-clang-native" | ||
21 | 9 | ||
22 | COMPATIBLE_HOST = '(x86_64).*-linux' | 10 | SRCREV = "c8cd72e32b6abc18ce6da71c357ea45ba78b52f0" |
23 | COMPATIBLE_HOST:libc-musl = "null" | ||
24 | 11 | ||
25 | EXTRA_OECMAKE += "\ | 12 | EXTRA_OECMAKE += "\ |
26 | -DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ | 13 | -DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ |
27 | -DCMAKE_SKIP_RPATH=TRUE \ | 14 | -DCMAKE_SKIP_RPATH=TRUE \ |
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" | ||
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" | ||
diff --git a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_12.0.0.bb b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_12.0.0.bb index 92befaf0..d0b2acfb 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_12.0.0.bb +++ b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_12.0.0.bb | |||
@@ -1,31 +1,12 @@ | |||
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" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e8a15bf1416762a09ece07e44c79118c" | ||
7 | |||
8 | SRC_URI = "git://github.com/intel/opencl-clang.git;branch=ocl-open-120;protocol=https \ | ||
9 | " | ||
10 | SRCREV = "8fc6b059248dc6c9c40c7cbe5fedcc6ebb951983" | 3 | SRCREV = "8fc6b059248dc6c9c40c7cbe5fedcc6ebb951983" |
11 | 4 | ||
12 | S = "${WORKDIR}/git" | 5 | DEPENDS += " spirv-llvm-translator" |
13 | |||
14 | inherit cmake | ||
15 | DEPENDS += " clang spirv-llvm-translator" | ||
16 | DEPENDS:append:class-target = " opencl-clang-native" | ||
17 | 6 | ||
18 | COMPATIBLE_HOST = '(x86_64).*-linux' | 7 | BRANCH = "ocl-open-120" |
19 | COMPATIBLE_HOST:libc-musl = "null" | ||
20 | 8 | ||
21 | EXTRA_OECMAKE += "\ | 9 | EXTRA_OECMAKE += "\ |
22 | -DCMAKE_SKIP_RPATH=TRUE \ | 10 | -DCMAKE_SKIP_RPATH=TRUE \ |
23 | -DPREFERRED_LLVM_VERSION="12.0.0" \ | 11 | -DPREFERRED_LLVM_VERSION="12.0.0" \ |
24 | " | 12 | " |
25 | |||
26 | do_install:append:class-native() { | ||
27 | install -d ${D}${bindir} | ||
28 | install -m 0755 ${B}/linux_linker/linux_resource_linker ${D}${bindir}/ | ||
29 | } | ||
30 | |||
31 | BBCLASSEXTEND = "native nativesdk" | ||