mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 00:32:12 +02:00
This reproducibility problem comes down to git-describe output. Fixes
this by using an environment variable to force the description and use
it to set this description to ${PV}
Fixes [YOCTO #15567].
(From OE-Core rev: fa7ab8f9afaeeba9e2b2806f28e7e9cbd2595353)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
55 lines
2.0 KiB
BlitzBasic
55 lines
2.0 KiB
BlitzBasic
SUMMARY = "The SPIR-V Tools project provides an API and commands for \
|
|
processing SPIR-V modules"
|
|
DESCRIPTION = "The project includes an assembler, binary module parser, \
|
|
disassembler, validator, and optimizer for SPIR-V."
|
|
HOMEPAGE = "https://github.com/KhronosGroup/SPIRV-Tools"
|
|
SECTION = "graphics"
|
|
LICENSE = "Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
|
|
|
SRCREV = "0cfe9e7219148716dfd30b37f4d21753f098707a"
|
|
SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=main;protocol=https \
|
|
file://0001-update_build_version.py-support-an-envvar-to-force-t.patch \
|
|
"
|
|
PE = "1"
|
|
# These recipes need to be updated in lockstep with each other:
|
|
# glslang, vulkan-headers, vulkan-loader, vulkan-tools, spirv-headers, spirv-tools
|
|
# vulkan-validation-layers, vulkan-utility-libraries, vulkan-volk.
|
|
# The tags versions should always be sdk-x.y.z, as this is what
|
|
# upstream considers a release.
|
|
UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)"
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit cmake
|
|
|
|
DEPENDS = "spirv-headers"
|
|
|
|
EXTRA_OECMAKE += "\
|
|
-DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \
|
|
-DSPIRV_TOOLS_BUILD_STATIC=OFF \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DSPIRV_SKIP_TESTS=ON \
|
|
"
|
|
|
|
# Force the version description "git describe" related non-reproducibility
|
|
do_compile:prepend() {
|
|
export FORCED_BUILD_VERSION_DESCRIPTION="${PV}"
|
|
}
|
|
|
|
do_install:append:class-target() {
|
|
# Properly set _IMPORT_PREFIX in INTERFACE_LINK_LIBRARIES so that dependent
|
|
# tools can find the right library
|
|
sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \
|
|
-e 's:INTERFACE_LINK_LIBRARIES.*$:INTERFACE_LINK_LIBRARIES "\$\{_IMPORT_PREFIX\}/${baselib}":'
|
|
}
|
|
|
|
# all the libraries are unversioned, so don't pack it on PN-dev
|
|
SOLIBS = ".so"
|
|
FILES_SOLIBSDEV = ""
|
|
|
|
PACKAGES =+ "${PN}-lesspipe"
|
|
FILES:${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh"
|
|
RDEPENDS:${PN}-lesspipe += "${PN} bash"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|