diff options
Diffstat (limited to 'dynamic-layers/clang-layer')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_23.17.26241.22.bb | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_23.17.26241.22.bb b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_23.17.26241.22.bb index fe5f886c..8aef6e9a 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_23.17.26241.22.bb +++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_23.17.26241.22.bb | |||
@@ -11,22 +11,19 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=eca6ec6997e18db166db7109cdbe611c \ | |||
11 | SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https;branch=releases/23.17 \ | 11 | SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https;branch=releases/23.17 \ |
12 | file://disable-werror.patch \ | 12 | file://disable-werror.patch \ |
13 | file://add-missing-cstdint-header-to-fix-compile-with-gcc13.patch \ | 13 | file://add-missing-cstdint-header-to-fix-compile-with-gcc13.patch \ |
14 | " | 14 | file://allow-to-find-cpp-generation-tool.patch \ |
15 | 15 | file://external-ocloc.patch \ | |
16 | SRC_URI:append:class-target = "file://allow-to-find-cpp-generation-tool.patch \ | 16 | " |
17 | file://external-ocloc.patch \ | ||
18 | " | ||
19 | 17 | ||
20 | SRCREV = "0bb5b3408e6cb61b477e7cad296fd278b11e73be" | 18 | SRCREV = "0bb5b3408e6cb61b477e7cad296fd278b11e73be" |
21 | 19 | ||
22 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
23 | 21 | ||
24 | DEPENDS += " intel-graphics-compiler gmmlib" | 22 | DEPENDS += " intel-graphics-compiler gmmlib libva qemu-native" |
25 | DEPENDS:append:class-target = " intel-compute-runtime-native libva" | ||
26 | 23 | ||
27 | RDEPENDS:${PN} += " intel-graphics-compiler gmmlib" | 24 | RDEPENDS:${PN} += " intel-graphics-compiler gmmlib" |
28 | 25 | ||
29 | inherit cmake pkgconfig | 26 | inherit cmake pkgconfig qemu |
30 | 27 | ||
31 | COMPATIBLE_HOST = '(x86_64).*-linux' | 28 | COMPATIBLE_HOST = '(x86_64).*-linux' |
32 | COMPATIBLE_HOST:libc-musl = "null" | 29 | COMPATIBLE_HOST:libc-musl = "null" |
@@ -42,14 +39,20 @@ EXTRA_OECMAKE = " \ | |||
42 | 39 | ||
43 | EXTRA_OECMAKE:append:class-target = " \ | 40 | EXTRA_OECMAKE:append:class-target = " \ |
44 | -Docloc_cmd_prefix=ocloc \ | 41 | -Docloc_cmd_prefix=ocloc \ |
45 | " | 42 | -DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \ |
43 | " | ||
46 | 44 | ||
47 | PACKAGECONFIG ??= "" | 45 | PACKAGECONFIG ??= "" |
48 | PACKAGECONFIG[levelzero] = "-DBUILD_WITH_L0=ON, -DBUILD_WITH_L0=OFF, level-zero" | 46 | PACKAGECONFIG[levelzero] = "-DBUILD_WITH_L0=ON, -DBUILD_WITH_L0=OFF, level-zero" |
49 | 47 | ||
50 | do_install:append:class-native() { | 48 | do_configure:prepend:class-target () { |
51 | install -d ${D}${bindir} | 49 | # Write out a qemu wrapper that will be used by cmake. |
52 | install ${B}/bin/cpp_generate_tool ${D}${bindir}/ | 50 | qemu_binary="${@qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), [d.expand('${B}/bin'),d.expand('${STAGING_DIR_HOST}${libdir}'),d.expand('${STAGING_DIR_HOST}${base_libdir}')])}" |
51 | cat > ${WORKDIR}/qemuwrapper << EOF | ||
52 | #!/bin/sh | ||
53 | $qemu_binary "\$@" | ||
54 | EOF | ||
55 | chmod +x ${WORKDIR}/qemuwrapper | ||
53 | } | 56 | } |
54 | 57 | ||
55 | FILES:${PN} += " \ | 58 | FILES:${PN} += " \ |
@@ -59,6 +62,4 @@ FILES:${PN} += " \ | |||
59 | 62 | ||
60 | FILES:${PN}-dev = "${includedir}" | 63 | FILES:${PN}-dev = "${includedir}" |
61 | 64 | ||
62 | BBCLASSEXTEND = "native nativesdk" | ||
63 | |||
64 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" | 65 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" |