diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-09-16 10:37:37 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-18 11:16:42 +0100 |
| commit | 54a898e32baf19a4e4355103758b1f33156bbbd7 (patch) | |
| tree | b86947a03b81bc1c67b13a63ac1e6cf635940c1a /meta/recipes-graphics/spir | |
| parent | 51f06e9fc7e37605c9236b57a12ece755aa23a68 (diff) | |
| download | poky-54a898e32baf19a4e4355103758b1f33156bbbd7.tar.gz | |
spirv-tools: improve packaging
spirv-tools is a set of libraries and some binaries that link to those
libraries, so inherit lib_package so that the binaries and the libraries
are packaged separately.
The lesspipe script hasn't needed bash since 2018[1], so remove the bash
dependency and package the script with the other binaries.
The build type unless specified is Debug, explicitly set RelWithDebInfo.
[1] spirv-tools f70e9e "tools/lesspipe: Allow generic shell (#2255)"
(From OE-Core rev: 720dd065a4626af7d7a18e941aa090a923e060cd)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/spir')
| -rw-r--r-- | meta/recipes-graphics/spir/spirv-tools_1.4.321.0.bb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/recipes-graphics/spir/spirv-tools_1.4.321.0.bb b/meta/recipes-graphics/spir/spirv-tools_1.4.321.0.bb index 30c42e915f..c3e0d17d87 100644 --- a/meta/recipes-graphics/spir/spirv-tools_1.4.321.0.bb +++ b/meta/recipes-graphics/spir/spirv-tools_1.4.321.0.bb | |||
| @@ -19,11 +19,12 @@ PE = "1" | |||
| 19 | # upstream considers a release. | 19 | # upstream considers a release. |
| 20 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" | 20 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" |
| 21 | 21 | ||
| 22 | inherit cmake | 22 | inherit cmake lib_package |
| 23 | 23 | ||
| 24 | DEPENDS = "spirv-headers" | 24 | DEPENDS = "spirv-headers" |
| 25 | 25 | ||
| 26 | EXTRA_OECMAKE += "\ | 26 | EXTRA_OECMAKE += "\ |
| 27 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
| 27 | -DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \ | 28 | -DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \ |
| 28 | -DSPIRV_TOOLS_BUILD_STATIC=OFF \ | 29 | -DSPIRV_TOOLS_BUILD_STATIC=OFF \ |
| 29 | -DBUILD_SHARED_LIBS=ON \ | 30 | -DBUILD_SHARED_LIBS=ON \ |
| @@ -46,8 +47,4 @@ do_install:append:class-target() { | |||
| 46 | SOLIBS = ".so" | 47 | SOLIBS = ".so" |
| 47 | FILES_SOLIBSDEV = "" | 48 | FILES_SOLIBSDEV = "" |
| 48 | 49 | ||
| 49 | PACKAGES =+ "${PN}-lesspipe" | ||
| 50 | FILES:${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh" | ||
| 51 | RDEPENDS:${PN}-lesspipe += "${PN} bash" | ||
| 52 | |||
| 53 | BBCLASSEXTEND = "native nativesdk" | 50 | BBCLASSEXTEND = "native nativesdk" |
