diff options
| author | Jose Quaresma <quaresma.jose@gmail.com> | 2021-01-24 18:26:45 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-29 15:59:40 +0000 |
| commit | ba50c395648834707d719f8de10d6ebdd47d32a8 (patch) | |
| tree | 377a0c643ae870535acaefdacbe107fc90e1c4a1 /meta | |
| parent | a2121683bafc23a30e61e81c9eb2eb9894e08394 (diff) | |
| download | poky-ba50c395648834707d719f8de10d6ebdd47d32a8.tar.gz | |
spirv-tools: cleanup
- spirv-headers is provived in a separete receipe, so add it as dependencie
- add a new package spirv-tools-lesspipe that needs bash
- remove unneeded external sources
(From OE-Core rev: 97cab6b9691497841b2ae894e25f83d893c2ee30)
Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-graphics/spir/spirv-tools_2020.6.bb | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/meta/recipes-graphics/spir/spirv-tools_2020.6.bb b/meta/recipes-graphics/spir/spirv-tools_2020.6.bb index eb07833f22..2c855d8d8e 100644 --- a/meta/recipes-graphics/spir/spirv-tools_2020.6.bb +++ b/meta/recipes-graphics/spir/spirv-tools_2020.6.bb | |||
| @@ -2,37 +2,26 @@ SUMMARY = "The SPIR-V Tools project provides an API and commands for \ | |||
| 2 | processing SPIR-V modules" | 2 | processing SPIR-V modules" |
| 3 | DESCRIPTION = "The project includes an assembler, binary module parser, \ | 3 | DESCRIPTION = "The project includes an assembler, binary module parser, \ |
| 4 | disassembler, validator, and optimizer for SPIR-V." | 4 | disassembler, validator, and optimizer for SPIR-V." |
| 5 | SECTION = "graphics" | ||
| 5 | LICENSE = "Apache-2.0" | 6 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 7 | SECTION = "graphics" | ||
| 8 | 8 | ||
| 9 | SRCREV = "b27b1afd12d05bf238ac7368bb49de73cd620a8e" | ||
| 10 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git" | ||
| 11 | UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$" | ||
| 9 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
| 10 | DEST_DIR = "${S}/external" | ||
| 11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;name=spirv-tools \ | ||
| 12 | git://github.com/KhronosGroup/SPIRV-Headers.git;name=spirv-headers;destsuffix=${DEST_DIR}/spirv-headers \ | ||
| 13 | git://github.com/google/effcee.git;name=effcee;destsuffix=${DEST_DIR}/effcee \ | ||
| 14 | git://github.com/google/re2.git;name=re2;destsuffix=${DEST_DIR}/re2 \ | ||
| 15 | git://github.com/google/googletest.git;name=googletest;destsuffix=${DEST_DIR}/googletest \ | ||
| 16 | file://0001-Respect-CMAKE_INSTALL_LIBDIR-in-installed-CMake-file.patch;destsuffix=${DEST_DIR}/effcee \ | ||
| 17 | " | ||
| 18 | SRCREV_spirv-tools = "b27b1afd12d05bf238ac7368bb49de73cd620a8e" | ||
| 19 | SRCREV_spirv-headers = "f027d53ded7e230e008d37c8b47ede7cd308e19d" | ||
| 20 | SRCREV_effcee = "cd25ec17e9382f99a895b9ef53ff3c277464d07d" | ||
| 21 | SRCREV_re2 = "5bd613749fd530b576b890283bfb6bc6ea6246cb" | ||
| 22 | SRCREV_googletest = "f2fb48c3b3d79a75a88a99fba6576b25d42ec528" | ||
| 23 | 13 | ||
| 24 | inherit cmake python3native | 14 | inherit cmake python3native |
| 25 | 15 | ||
| 26 | EXTRA_OECMAKE += "-DSPIRV_WERROR=OFF" | 16 | DEPENDS = "spirv-headers" |
| 27 | 17 | ||
| 28 | do_install_append() { | 18 | EXTRA_OECMAKE += "-DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR}" |
| 29 | install -d ${D}/${includedir}/spirv | ||
| 30 | install -m 0644 ${DEST_DIR}/spirv-headers/include/spirv/1.2/* ${D}${includedir}/spirv | ||
| 31 | install -d ${D}/${includedir}/spirv/unified1 | ||
| 32 | install -m 0644 ${DEST_DIR}/spirv-headers/include/spirv/unified1/* ${D}${includedir}/spirv/unified1 | ||
| 33 | } | ||
| 34 | 19 | ||
| 35 | FILES_SOLIBSDEV = "" | 20 | FILES_SOLIBSDEV = "" |
| 36 | FILES_${PN} += "${libdir}/*.so" | 21 | FILES_${PN} += "${libdir}/*.so" |
| 37 | 22 | ||
| 23 | PACKAGES =+ "${PN}-lesspipe" | ||
| 24 | FILES_${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh" | ||
| 25 | RDEPENDS_${PN}-lesspipe += "${PN} bash" | ||
| 26 | |||
| 38 | BBCLASSEXTEND = "native nativesdk" | 27 | BBCLASSEXTEND = "native nativesdk" |
