From 711eee2b8e9a9bed92eaf95398076e35310a5d76 Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Thu, 3 Aug 2023 09:44:39 +0800 Subject: opencl-clang: move common code to inc Signed-off-by: Anuj Mittal --- .../recipes-opencl/opencl-clang/opencl-clang.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc') diff --git a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc index 061ecbba..7c8c2513 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc +++ b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc @@ -19,4 +19,17 @@ DEPENDS:append:class-target = " opencl-clang-native" COMPATIBLE_HOST = '(x86_64).*-linux' COMPATIBLE_HOST:libc-musl = "null" +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}/ +} + BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf