opencl-clang/15.0.0: add recipe

Build opencl-clang with llvm-15 and point to latest from ocl-open-150
branch.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
This commit is contained in:
Naveen Saini 2022-10-21 17:02:39 +08:00 committed by Anuj Mittal
parent 7023a6d7cf
commit 7dffd82399
4 changed files with 27 additions and 5 deletions

View File

@ -21,6 +21,10 @@ PREFERRED_PROVIDER_libva-utils = "libva-intel-utils"
PREFERRED_PROVIDER_libva-utils-native = "libva-intel-utils-native"
PREFERRED_PROVIDER_nativesdk-libva-utils = "nativesdk-libva-intel-utils"
PREFERRED_VERSION_opencl-clang ?= "${@bb.utils.contains('LLVMVERSION', '14.0.3', '14.0.0', '15.0.0', d)}"
PREFERRED_VERSION_opencl-clang-native ?= "${@bb.utils.contains('LLVMVERSION', '14.0.3', '14.0.0', '15.0.0', d)}"
XSERVER_X86_ASPEED_AST = "xf86-video-ast \
"

View File

@ -16,9 +16,4 @@ DEPENDS:append:class-target = " opencl-clang-native"
COMPATIBLE_HOST = '(x86_64).*-linux'
COMPATIBLE_HOST:libc-musl = "null"
do_install:append:class-native() {
install -d ${D}${bindir}
install -m 0755 ${B}/linux_linker/linux_resource_linker ${D}${bindir}/
}
BBCLASSEXTEND = "native nativesdk"

View File

@ -13,3 +13,8 @@ EXTRA_OECMAKE += "\
-DCMAKE_SKIP_RPATH=TRUE \
-DPREFERRED_LLVM_VERSION=${LLVMVERSION} \
"
do_install:append:class-native() {
install -d ${D}${bindir}
install -m 0755 ${B}/linux_linker/linux_resource_linker ${D}${bindir}/
}

View File

@ -0,0 +1,18 @@
require opencl-clang.inc
SRCREV = "c78c1f884ffe8b40e1681a90ebde1a919c08ddb1"
BRANCH = "ocl-open-150"
DEPENDS += " spirv-llvm-translator"
EXTRA_OECMAKE += "\
-DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen \
-DCMAKE_SKIP_RPATH=TRUE \
-DPREFERRED_LLVM_VERSION=${LLVMVERSION} \
"
do_install:append:class-native() {
install -d ${D}${bindir}
install -m 0755 ${B}/bin/linux_resource_linker ${D}${bindir}/
}