Bring it from meta-clang Signed-off-by: Khem Raj <[email protected]> --- .../spirv-llvm-translator_git.bb | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 meta/recipes-devtools/spirv-llvm-translator/spirv-llvm-translator_git.bb
diff --git a/meta/recipes-devtools/spirv-llvm-translator/spirv-llvm-translator_git.bb b/meta/recipes-devtools/spirv-llvm-translator/spirv-llvm-translator_git.bb new file mode 100644 index 00000000000..204d472dac1 --- /dev/null +++ b/meta/recipes-devtools/spirv-llvm-translator/spirv-llvm-translator_git.bb @@ -0,0 +1,37 @@ +SUMMARY = "A tool and a library for bi-directional translation between SPIR-V and LLVM IR" +HOMEPAGE = "https://github.com/KhronosGroup/SPIRV-LLVM-Translator" +LICENSE = "NCSA" +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=47e311aa9caedd1b3abf098bd7814d1d" + +BRANCH = "llvm_release_190" +SRC_URI = "git://github.com/KhronosGroup/SPIRV-LLVM-Translator;protocol=https;branch=${BRANCH} \ + git://github.com/KhronosGroup/SPIRV-Headers;protocol=https;destsuffix=git/SPIRV-Headers;name=headers;branch=main \ + " + +PV = "19.1.0+git" +SRCREV = "d65c25a166531b2efb744358ad1dc5283e1cc72f" +SRCREV_headers = "efb6b4099ddb8fa60f62956dee592c4b94ec6a49" + +SRCREV_FORMAT = "default_headers" + +S = "${WORKDIR}/git" + +DEPENDS = "spirv-tools clang" + +inherit cmake pkgconfig python3native + +# Specify any options you want to pass to cmake using EXTRA_OECMAKE: +# for CMAKE_SHARED_LIBS=OFF see https://github.com/KhronosGroup/SPIRV-LLVM-Translator/issues/1868 +EXTRA_OECMAKE = "\ + -DBUILD_SHARED_LIBS=OFF \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ + -DCMAKE_SKIP_RPATH=ON \ + -DLLVM_EXTERNAL_LIT=lit \ + -DLLVM_INCLUDE_TESTS=ON \ + -Wno-dev \ + -DCCACHE_ALLOWED=FALSE \ + -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=${S}/SPIRV-Headers \ +" + +BBCLASSEXTEND = "native nativesdk"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#206738): https://lists.openembedded.org/g/openembedded-core/message/206738 Mute This Topic: https://lists.openembedded.org/mt/109411608/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
