diff options
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc | 24 |
1 files changed, 24 insertions, 0 deletions
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 new file mode 100644 index 00000000..1d9b4d51 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "Common clang is a thin wrapper library around clang" | ||
2 | DESCRIPTION = "Common clang has OpenCL-oriented API and is capable \ | ||
3 | to compile OpenCL C kernels to SPIR-V modules." | ||
4 | |||
5 | LICENSE = "NCSA" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e8a15bf1416762a09ece07e44c79118c" | ||
7 | |||
8 | SRC_URI = "git://github.com/intel/opencl-clang.git;branch=${BRANCH};protocol=https \ | ||
9 | " | ||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | inherit cmake | ||
13 | DEPENDS += "clang" | ||
14 | DEPENDS:append:class-target = " opencl-clang-native" | ||
15 | |||
16 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
17 | COMPATIBLE_HOST:libc-musl = "null" | ||
18 | |||
19 | do_install:append:class-native() { | ||
20 | install -d ${D}${bindir} | ||
21 | install -m 0755 ${B}/linux_linker/linux_resource_linker ${D}${bindir}/ | ||
22 | } | ||
23 | |||
24 | BBCLASSEXTEND = "native nativesdk" | ||