diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-03-19 09:43:51 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-20 18:54:56 +0000 |
commit | 12aae17e43db8daf6125efbbd5f245a4e248cfaf (patch) | |
tree | 8398145ec828f05dadac7883aa0a2859c3c6c61b /meta/recipes-graphics/spir/spirv-tools_2020.7.bb | |
parent | ea08b83d949ff32f50e498e972da4496ab1bbbe8 (diff) | |
download | poky-12aae17e43db8daf6125efbbd5f245a4e248cfaf.tar.gz |
spirv-tools: upgrade 2020.6 -> 2020.7
(From OE-Core rev: 6a9c8ec527b9a0d0e8d4cc071603a5748ffd7db4)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/spir/spirv-tools_2020.7.bb')
-rw-r--r-- | meta/recipes-graphics/spir/spirv-tools_2020.7.bb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-graphics/spir/spirv-tools_2020.7.bb b/meta/recipes-graphics/spir/spirv-tools_2020.7.bb new file mode 100644 index 0000000000..8be698533a --- /dev/null +++ b/meta/recipes-graphics/spir/spirv-tools_2020.7.bb | |||
@@ -0,0 +1,42 @@ | |||
1 | SUMMARY = "The SPIR-V Tools project provides an API and commands for \ | ||
2 | processing SPIR-V modules" | ||
3 | DESCRIPTION = "The project includes an assembler, binary module parser, \ | ||
4 | disassembler, validator, and optimizer for SPIR-V." | ||
5 | HOMEPAGE = "https://github.com/KhronosGroup/SPIRV-Tools" | ||
6 | SECTION = "graphics" | ||
7 | LICENSE = "Apache-2.0" | ||
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
9 | |||
10 | SRCREV = "2573fd781b5408cd7fe5755a78b60d767a748ff9" | ||
11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git \ | ||
12 | file://0001-fix-strncpy-bound-error.patch \ | ||
13 | " | ||
14 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$" | ||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | inherit cmake python3native | ||
18 | |||
19 | DEPENDS = "spirv-headers" | ||
20 | |||
21 | EXTRA_OECMAKE += "\ | ||
22 | -DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \ | ||
23 | -DSPIRV_TOOLS_BUILD_STATIC=OFF \ | ||
24 | -DBUILD_SHARED_LIBS=ON \ | ||
25 | -DSPIRV_SKIP_TESTS=ON \ | ||
26 | " | ||
27 | |||
28 | do_install_append_class-target() { | ||
29 | # reproducibility: remove build host path | ||
30 | sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \ | ||
31 | -e 's:${STAGING_DIR_HOST}::g' | ||
32 | } | ||
33 | |||
34 | # all the libraries are unversioned, so don't pack it on PN-dev | ||
35 | SOLIBS = ".so" | ||
36 | FILES_SOLIBSDEV = "" | ||
37 | |||
38 | PACKAGES =+ "${PN}-lesspipe" | ||
39 | FILES_${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh" | ||
40 | RDEPENDS_${PN}-lesspipe += "${PN} bash" | ||
41 | |||
42 | BBCLASSEXTEND = "native nativesdk" | ||