[meta-ti] [RFC PATCH 3/6] clocl: Add the opencl kernel compiler.

Jacob Stiffler j-stiffler at ti.com
Thu Feb 26 05:34:08 PST 2015


Signed-off-by: Jacob Stiffler <j-stiffler at ti.com>
---
 recipes-ti/ocl/clocl_git.bb |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 recipes-ti/ocl/clocl_git.bb

diff --git a/recipes-ti/ocl/clocl_git.bb b/recipes-ti/ocl/clocl_git.bb
new file mode 100644
index 0000000..2dd28a1
--- /dev/null
+++ b/recipes-ti/ocl/clocl_git.bb
@@ -0,0 +1,35 @@
+DESCRIPTION = "TI OpenCL"
+HOMEPAGE = "https://gitorious.design.ti.com/ocl"
+LICENSE = "BSD"
+
+include ocl.inc
+
+DEPENDS = "ti-llvm3.3 ti-llvm3.3-native boost"
+
+
+SRC_URI_append = " \
+    ${SRC_URI_OPENCL} \
+    ${OPENCL_PATCHES} \
+"
+
+S = "${WORKDIR}/git/opencl"
+
+export WANT_LLVM_RELEASE = "3.3-ti"
+
+TARGET_class-target = "arm"
+TARGET_class-native = "x86"
+TARGET_class-nativesdk = "x86"
+
+EXTRA_OEMAKE = "-C ${S}/clocl _PRODUCT_VERSION=${PV} TARGET=${TARGET} LLVM_CONFIG_EXE=llvm-config"
+
+do_compile() {
+  oe_runmake
+}
+
+do_install() {
+  install -d ${D}${bindir}
+  install -m 755 ${S}/clocl/${TARGET}/clocl ${D}${bindir}
+}
+
+BBCLASSEXTEND = "native nativesdk"
+
-- 
1.7.9.5



More information about the meta-ti mailing list