diff options
| author | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2025-05-06 03:03:59 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-08 10:28:18 +0100 |
| commit | 251fd55c27372d34d3d088815297d443856c4080 (patch) | |
| tree | 11c2a97c1e0c30472c7697a3b86296fce12a7b42 /meta/recipes-graphics/spir/spirv-llvm-translator_20.1.2.bb | |
| parent | 3d7381f5b5c3301775dae38f6833dbb5c36b7770 (diff) | |
| download | poky-251fd55c27372d34d3d088815297d443856c4080.tar.gz | |
clang: split SPIRV-LLVM-Translator to its own recipe
The translator is not a part of the same source tree. As such it has
tendency to break on clang upgrades. Split it to its own recipe in order
to ease handling of clang.
This also makes it use SPIR-V headers provided by the spirv-headers
recipe instead of vendoring them in.
(From OE-Core rev: 4178fe97371bce0bd63b19f57b872ccefd1ec45c)
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.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/spirv-llvm-translator_20.1.2.bb')
| -rw-r--r-- | meta/recipes-graphics/spir/spirv-llvm-translator_20.1.2.bb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-graphics/spir/spirv-llvm-translator_20.1.2.bb b/meta/recipes-graphics/spir/spirv-llvm-translator_20.1.2.bb new file mode 100644 index 0000000000..bc2bebcda8 --- /dev/null +++ b/meta/recipes-graphics/spir/spirv-llvm-translator_20.1.2.bb | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | HOMEPAGE = "https://github.com/KhronosGroup/SPIRV-LLVM-Translator" | ||
| 2 | SUMMARY = "LLVM/SPIR-V Bi-Directional Translator, a library and tool for translation between LLVM IR and SPIR-V." | ||
| 3 | |||
| 4 | LICENSE = "NCSA" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=47e311aa9caedd1b3abf098bd7814d1d" | ||
| 6 | |||
| 7 | # pattern: llvm_branch_200, currently there are no minor releases, so, no llvm_branch_201 | ||
| 8 | SPIRV_BRANCH = "llvm_release_${@oe.utils.trim_version('${PV}', 1).replace('.', '')}0" | ||
| 9 | SRC_URI = " \ | ||
| 10 | git://github.com/KhronosGroup/SPIRV-LLVM-Translator;protocol=https;name=spirv;branch=${SPIRV_BRANCH} \ | ||
| 11 | " | ||
| 12 | |||
| 13 | SRCREV_spirv = "6dd8f2a1681a27f16c53d932d2765920f312aeb2" | ||
| 14 | |||
| 15 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/git" | ||
| 18 | |||
| 19 | DEPENDS = "clang spirv-tools spirv-headers" | ||
| 20 | |||
| 21 | inherit cmake pkgconfig python3native | ||
| 22 | |||
| 23 | # Specify any options you want to pass to cmake using EXTRA_OECMAKE: | ||
| 24 | # for CMAKE_SHARED_LIBS=OFF see https://github.com/KhronosGroup/SPIRV-LLVM-Translator/issues/1868 | ||
| 25 | EXTRA_OECMAKE = "\ | ||
| 26 | -DBUILD_SHARED_LIBS=ON \ | ||
| 27 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 28 | -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ | ||
| 29 | -DCMAKE_SKIP_RPATH=ON \ | ||
| 30 | -DLLVM_EXTERNAL_LIT=lit \ | ||
| 31 | -DLLVM_INCLUDE_TESTS=ON \ | ||
| 32 | -Wno-dev \ | ||
| 33 | -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=${STAGING_INCDIR}/.. \ | ||
| 34 | " | ||
| 35 | |||
| 36 | BBCLASSEXTEND = "native nativesdk" | ||
