diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2023-10-31 11:40:22 -0700 |
---|---|---|
committer | Tom Hochstein <tom.hochstein@nxp.com> | 2023-10-31 12:00:08 -0700 |
commit | 7c949461b577bc141bc157c216a66a5b568e279b (patch) | |
tree | 12baebadeeac9b4e17b936aa80dfe981a4c39268 /recipes-downgrade | |
parent | a7627341696d2c629066ce3221c9035c945a22a1 (diff) | |
download | meta-freescale-7c949461b577bc141bc157c216a66a5b568e279b.tar.gz |
spir: Downgrade to 1.3.239.0.imx
Latest spir is not compatible with downgraded vulkan, so downgrade
spir to match.
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Diffstat (limited to 'recipes-downgrade')
-rw-r--r-- | recipes-downgrade/spir/spirv-headers_1.3.239.0.imx.bb | 18 | ||||
-rw-r--r-- | recipes-downgrade/spir/spirv-tools_1.3.239.0.imx.bb | 42 |
2 files changed, 60 insertions, 0 deletions
diff --git a/recipes-downgrade/spir/spirv-headers_1.3.239.0.imx.bb b/recipes-downgrade/spir/spirv-headers_1.3.239.0.imx.bb new file mode 100644 index 00000000..afd59cbc --- /dev/null +++ b/recipes-downgrade/spir/spirv-headers_1.3.239.0.imx.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | SUMMARY = "Machine-readable files for the SPIR-V Registry" | ||
2 | DESCRIPTION = "Headers are provided in the include directory, with up-to-date \ | ||
3 | headers in the unified1 subdirectory. Older headers are provided according to \ | ||
4 | their version." | ||
5 | SECTION = "graphics" | ||
6 | HOMEPAGE = "https://www.khronos.org/registry/spir-v" | ||
7 | LICENSE = "MIT" | ||
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c938b85bceb8fb26c1a807f28a52ae2d" | ||
9 | |||
10 | SRCREV = "d13b52222c39a7e9a401b44646f0ca3a640fbd47" | ||
11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Headers;protocol=https;branch=main" | ||
12 | PE = "1" | ||
13 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" | ||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | inherit cmake | ||
17 | |||
18 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/recipes-downgrade/spir/spirv-tools_1.3.239.0.imx.bb b/recipes-downgrade/spir/spirv-tools_1.3.239.0.imx.bb new file mode 100644 index 00000000..5109bb53 --- /dev/null +++ b/recipes-downgrade/spir/spirv-tools_1.3.239.0.imx.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 = "63de608daeb7e91fbea6d7477a50debe7cac57ce" | ||
11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=main;protocol=https" | ||
12 | PE = "1" | ||
13 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" | ||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | inherit cmake python3native | ||
17 | |||
18 | DEPENDS = "spirv-headers" | ||
19 | |||
20 | EXTRA_OECMAKE += "\ | ||
21 | -DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \ | ||
22 | -DSPIRV_TOOLS_BUILD_STATIC=OFF \ | ||
23 | -DBUILD_SHARED_LIBS=ON \ | ||
24 | -DSPIRV_SKIP_TESTS=ON \ | ||
25 | " | ||
26 | |||
27 | do_install:append:class-target() { | ||
28 | # Properly set _IMPORT_PREFIX in INTERFACE_LINK_LIBRARIES so that dependent | ||
29 | # tools can find the right library | ||
30 | sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \ | ||
31 | -e 's:INTERFACE_LINK_LIBRARIES.*$:INTERFACE_LINK_LIBRARIES "\$\{_IMPORT_PREFIX\}/lib":' | ||
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" | ||