diff options
author | Ross Burton <ross.burton@arm.com> | 2025-09-16 10:37:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-18 11:16:42 +0100 |
commit | 51f06e9fc7e37605c9236b57a12ece755aa23a68 (patch) | |
tree | 20ec838b966ab4f597ad5cf1dcabc94b84d5ea74 | |
parent | c7ca5a20eec6925660982b476fd86074948591c6 (diff) | |
download | poky-51f06e9fc7e37605c9236b57a12ece755aa23a68.tar.gz |
spirv-llvm-translator: small recipe cleanup
- There is no need for python3native, as this recipe doesn't depend on
other python modules.
- Inherit lib_package so the llvm-spirv binary is in a separate package
to the libLLVMSPIRVLib.so library.
- Remove obsolete CMake options that no longer appear to be required.
- Change CMAKE_SKIP_RPATH to CMAKE_SKIP_BUILD_RPATH as this stops the
ELF editing on install without potentially removing any explicit
RPATHs, and aligns with a change I've proposed for cmake.bbclass.
(From OE-Core rev: 0e371176b99c8fe73059d06708141c7b25b7d91c)
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>
-rw-r--r-- | meta/recipes-graphics/spir/spirv-llvm-translator_21.1.0.bb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/meta/recipes-graphics/spir/spirv-llvm-translator_21.1.0.bb b/meta/recipes-graphics/spir/spirv-llvm-translator_21.1.0.bb index 63fae47377..13a93f3c5e 100644 --- a/meta/recipes-graphics/spir/spirv-llvm-translator_21.1.0.bb +++ b/meta/recipes-graphics/spir/spirv-llvm-translator_21.1.0.bb | |||
@@ -15,19 +15,12 @@ UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" | |||
15 | 15 | ||
16 | DEPENDS = "llvm spirv-tools spirv-headers" | 16 | DEPENDS = "llvm spirv-tools spirv-headers" |
17 | 17 | ||
18 | inherit cmake pkgconfig python3native | 18 | inherit cmake pkgconfig lib_package |
19 | 19 | ||
20 | # Specify any options you want to pass to cmake using EXTRA_OECMAKE: | ||
21 | # for CMAKE_SHARED_LIBS=OFF see https://github.com/KhronosGroup/SPIRV-LLVM-Translator/issues/1868 | ||
22 | EXTRA_OECMAKE = "\ | 20 | EXTRA_OECMAKE = "\ |
23 | -DBASE_LLVM_VERSION='${@oe.utils.trim_version('${PV}', 3)}' \ | 21 | -DBASE_LLVM_VERSION='${@oe.utils.trim_version('${PV}', 3)}' \ |
22 | -DCMAKE_SKIP_BUILD_RPATH=ON \ | ||
24 | -DBUILD_SHARED_LIBS=ON \ | 23 | -DBUILD_SHARED_LIBS=ON \ |
25 | -DCMAKE_BUILD_TYPE=Release \ | ||
26 | -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ | ||
27 | -DCMAKE_SKIP_RPATH=ON \ | ||
28 | -DLLVM_EXTERNAL_LIT=lit \ | ||
29 | -DLLVM_INCLUDE_TESTS=ON \ | ||
30 | -Wno-dev \ | ||
31 | -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=${STAGING_INCDIR}/.. \ | 24 | -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=${STAGING_INCDIR}/.. \ |
32 | " | 25 | " |
33 | 26 | ||