summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/spir
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-09-16 10:37:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-09-18 11:16:42 +0100
commit54a898e32baf19a4e4355103758b1f33156bbbd7 (patch)
treeb86947a03b81bc1c67b13a63ac1e6cf635940c1a /meta/recipes-graphics/spir
parent51f06e9fc7e37605c9236b57a12ece755aa23a68 (diff)
downloadpoky-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.bb7
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.
20UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" 20UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)"
21 21
22inherit cmake 22inherit cmake lib_package
23 23
24DEPENDS = "spirv-headers" 24DEPENDS = "spirv-headers"
25 25
26EXTRA_OECMAKE += "\ 26EXTRA_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() {
46SOLIBS = ".so" 47SOLIBS = ".so"
47FILES_SOLIBSDEV = "" 48FILES_SOLIBSDEV = ""
48 49
49PACKAGES =+ "${PN}-lesspipe"
50FILES:${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh"
51RDEPENDS:${PN}-lesspipe += "${PN} bash"
52
53BBCLASSEXTEND = "native nativesdk" 50BBCLASSEXTEND = "native nativesdk"