Signed-off-by: Jacob Stiffler <[email protected]>
---
.../recipes-ti/libarch/libarch-examples_git.bb | 36 ++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 meta-arago-extras/recipes-ti/libarch/libarch-examples_git.bb
diff --git a/meta-arago-extras/recipes-ti/libarch/libarch-examples_git.bb
b/meta-arago-extras/recipes-ti/libarch/libarch-examples_git.bb
new file mode 100644
index 0000000..62a09af
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/libarch/libarch-examples_git.bb
@@ -0,0 +1,36 @@
+DESCRIPTION = "TI Library Architecture Examples"
+
+include libarch.inc
+
+PR = "${INC_PR}.0"
+
+DEPENDS += "libarch clocl-native"
+RDEPENDS_${PN} += "opencl-runtime"
+
+export LIBARCH_DIR = "${LIBARCH_INSTALL_DIR}"
+export TARGET_ROOTDIR = "${STAGING_DIR_TARGET}"
+
+do_compile() {
+ make examples TARGET=${TARGET} LIBOS=LIB_OPENCL
+
+ # Remove object files before installing so that the binaries are not
present
+ find . -name "*.obj" -type f -delete
+ find . -name "*.o" -type f -delete
+ find . -name "*.out" -type f -delete
+ find . -name "*.dsp_h" -type f -delete
+}
+
+do_install() {
+ install -d ${D}${datadir}/ti/examples/libarch
+ cp -r examples/arm+dsp ${D}${datadir}/ti/examples/libarch
+ cp -r examples/common ${D}${datadir}/ti/examples/libarch
+ cp examples/Makefile ${D}${datadir}/ti/examples/libarch
+}
+
+FILES_${PN} += "\
+ ${datadir}/ti/examples/libarch/* \ "
+
+FILES_${PN}-dbg += "\
+ ${datadir}/ti/examples/libarch/*/.debug \ "
+
+INSANE_SKIP_${PN} = "arch ldflags textrel"
--
1.9.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago