diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2023-08-03 09:44:39 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2023-08-28 14:04:51 +0800 |
commit | b572565b942197ef017b9f2182ddeb318c6d4a77 (patch) | |
tree | 342d2e4c6a8d9718e6b9621a1afc62efd9603ff6 | |
parent | d4f25f4c83ea9d7212576e762295f53c00f8c6fc (diff) | |
download | meta-intel-b572565b942197ef017b9f2182ddeb318c6d4a77.tar.gz |
opencl-clang: move common code to inc
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
(cherry picked from commit 711eee2b8e9a9bed92eaf95398076e35310a5d76)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 files changed, 13 insertions, 26 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 index 061ecbba..7c8c2513 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc +++ b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc | |||
@@ -19,4 +19,17 @@ DEPENDS:append:class-target = " opencl-clang-native" | |||
19 | COMPATIBLE_HOST = '(x86_64).*-linux' | 19 | COMPATIBLE_HOST = '(x86_64).*-linux' |
20 | COMPATIBLE_HOST:libc-musl = "null" | 20 | COMPATIBLE_HOST:libc-musl = "null" |
21 | 21 | ||
22 | DEPENDS += " spirv-llvm-translator" | ||
23 | |||
24 | EXTRA_OECMAKE += "\ | ||
25 | -DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ | ||
26 | -DCMAKE_SKIP_RPATH=TRUE \ | ||
27 | -DPREFERRED_LLVM_VERSION=${LLVMVERSION} \ | ||
28 | " | ||
29 | |||
30 | do_install:append:class-native() { | ||
31 | install -d ${D}${bindir} | ||
32 | install -m 0755 ${B}/bin/linux_resource_linker ${D}${bindir}/ | ||
33 | } | ||
34 | |||
22 | BBCLASSEXTEND = "native nativesdk" | 35 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_14.0.0.bb b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_14.0.0.bb index a36bd53b..2a7af0c9 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_14.0.0.bb +++ b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_14.0.0.bb | |||
@@ -3,16 +3,3 @@ require opencl-clang.inc | |||
3 | SRCREV = "cf95b338d14685e4f3402ab1828bef31d48f1fd6" | 3 | SRCREV = "cf95b338d14685e4f3402ab1828bef31d48f1fd6" |
4 | 4 | ||
5 | BRANCH = "ocl-open-140" | 5 | BRANCH = "ocl-open-140" |
6 | |||
7 | DEPENDS += " spirv-llvm-translator" | ||
8 | |||
9 | EXTRA_OECMAKE += "\ | ||
10 | -DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ | ||
11 | -DCMAKE_SKIP_RPATH=TRUE \ | ||
12 | -DPREFERRED_LLVM_VERSION=${LLVMVERSION} \ | ||
13 | " | ||
14 | |||
15 | do_install:append:class-native() { | ||
16 | install -d ${D}${bindir} | ||
17 | install -m 0755 ${B}/bin/linux_resource_linker ${D}${bindir}/ | ||
18 | } | ||
diff --git a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_15.0.0.bb b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_15.0.0.bb index 84629cff..0865a2af 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_15.0.0.bb +++ b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_15.0.0.bb | |||
@@ -3,16 +3,3 @@ require opencl-clang.inc | |||
3 | SRCREV = "bc1d13ecc1c6f7aa5da3acf33165037d3fc5ed06" | 3 | SRCREV = "bc1d13ecc1c6f7aa5da3acf33165037d3fc5ed06" |
4 | 4 | ||
5 | BRANCH = "ocl-open-150" | 5 | BRANCH = "ocl-open-150" |
6 | |||
7 | DEPENDS += " spirv-llvm-translator" | ||
8 | |||
9 | EXTRA_OECMAKE += "\ | ||
10 | -DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ | ||
11 | -DCMAKE_SKIP_RPATH=TRUE \ | ||
12 | -DPREFERRED_LLVM_VERSION=${LLVMVERSION} \ | ||
13 | " | ||
14 | |||
15 | do_install:append:class-native() { | ||
16 | install -d ${D}${bindir} | ||
17 | install -m 0755 ${B}/bin/linux_resource_linker ${D}${bindir}/ | ||
18 | } | ||