mirror of
https://git.yoctoproject.org/poky
synced 2026-05-29 15:52:40 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
51f06e9fc7
commit
54a898e32b
@@ -19,11 +19,12 @@ PE = "1"
|
||||
# upstream considers a release.
|
||||
UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)"
|
||||
|
||||
inherit cmake
|
||||
inherit cmake lib_package
|
||||
|
||||
DEPENDS = "spirv-headers"
|
||||
|
||||
EXTRA_OECMAKE += "\
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \
|
||||
-DSPIRV_TOOLS_BUILD_STATIC=OFF \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
@@ -46,8 +47,4 @@ do_install:append:class-target() {
|
||||
SOLIBS = ".so"
|
||||
FILES_SOLIBSDEV = ""
|
||||
|
||||
PACKAGES =+ "${PN}-lesspipe"
|
||||
FILES:${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh"
|
||||
RDEPENDS:${PN}-lesspipe += "${PN} bash"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
Reference in New Issue
Block a user