From: Zoltán Böszörményi <[email protected]>

Signed-off-by: Zoltán Böszörményi <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
---
 .../opencl-clang/opencl-clang_13.0.0.bb       | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 
dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_13.0.0.bb

diff --git 
a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_13.0.0.bb 
b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_13.0.0.bb
new file mode 100644
index 00000000..88f2275a
--- /dev/null
+++ 
b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang_13.0.0.bb
@@ -0,0 +1,33 @@
+SUMMARY = "Common clang is a thin wrapper library around clang"
+DESCRIPTION = "Common clang has OpenCL-oriented API and is capable \
+ to compile OpenCL C kernels to SPIR-V modules."
+
+LICENSE = "NCSA"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e8a15bf1416762a09ece07e44c79118c"
+
+SRC_URI = 
"git://github.com/intel/opencl-clang.git;branch=ocl-open-130;protocol=https \
+           file://0001-don-t-redefine-LLVM_TABLEGEN_EXE.patch \
+           "
+SRCREV = "0f36f940b25b8e7661cfaf8a7c11fdbb7d853223"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+DEPENDS += " clang spirv-llvm-translator"
+DEPENDS:append:class-target = " clang-native opencl-clang-native"
+
+COMPATIBLE_HOST = '(x86_64).*-linux'
+COMPATIBLE_HOST:libc-musl = "null"
+
+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}/linux_linker/linux_resource_linker ${D}${bindir}/
+}
+
+BBCLASSEXTEND = "native nativesdk"
--
2.33.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7264): 
https://lists.yoctoproject.org/g/meta-intel/message/7264
Mute This Topic: https://lists.yoctoproject.org/mt/85347131/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to