[oe-commits] Melissa Watkins : ti-pru-sw-example: first addition of PRU sw examples recipe

git version control git at git.openembedded.org
Sat Dec 4 11:55:02 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 672f472b0842b3607835b3e9f7dbf0e3195dae57
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=672f472b0842b3607835b3e9f7dbf0e3195dae57

Author: Melissa Watkins <m-watkins at ti.com>
Date:   Thu Dec  2 05:11:36 2010 -0600

ti-pru-sw-example: first addition of PRU sw examples recipe

* Add PRU sw examples recipe for the omapl138 machines

The ti-pru-sw-example recipe builds example codes that demonstrate use
of the AM180x-evm PRU, compiles the PRU binaries, and saves example
executables and binaries to the filesystem.  The examples included and
manual building instructions are outlined at:
http://processors.wiki.ti.com/index.php/PRU_Linux-based_Example_Code

Signed-off-by: Melissa Watkins <m-watkins at ti.com>
Signed-off-by: Chase Maupin <chase.maupin at ti.com>
Signed-off-by: Koen Kooi <k-kooi at ti.com>

---

 recipes/ti/ti-pru-sw-examples_1.00.00.bb |   31 ++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/recipes/ti/ti-pru-sw-examples_1.00.00.bb b/recipes/ti/ti-pru-sw-examples_1.00.00.bb
new file mode 100755
index 0000000..a9239f8
--- /dev/null
+++ b/recipes/ti/ti-pru-sw-examples_1.00.00.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "PRU sw example applications"
+HOMEPAGE = "https://gforge.ti.com/gf/project/pru_sw/"
+LICENSE = "BSD"
+DEPENDS = "ti-pru-sw-app-loader ti-pru-sw-edma-library"
+PR = "r0+svnr${SRCPV}"
+
+COMPATIBLE_MACHINE = "omapl138|am180x-evm"
+
+SRC_URI = "svn://gforge.ti.com/svn/pru_sw/;module=trunk;proto=https;user=anonymous;pswd=''"
+
+SRCREV = "18"
+S = "${WORKDIR}/trunk"
+
+do_compile () {
+        make -C ${S}/example_apps LIBDIR_APP_LOADER="${D}${libdir}" \
+          CC=${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}gcc \
+          LIBDIR_EDMA_LOADER="${D}${libdir}}" \
+          INCDIR_APP_LOADER="${D}${includedir}" \
+          INCDIR_EDMA_DRIVER="${D}${includedir}" \
+          BINDIR_APPLICATIONS="${S}/example_apps/bin" \
+          BINDIR_FW="${S}/example_apps/bin" \
+          UTILS_DIR="${S}/utils"
+}
+
+do_install () {
+        install -d ${D}/usr/share/ti/ti-pru-eg/
+        install -m 0755 ${S}/example_apps/bin/* ${D}/usr/share/ti/ti-pru-eg/
+}
+
+FILES_${PN} += "${datadir}/ti/ti-pru-eg/*"
+FILES_${PN}-dbg += "${datadir}/ti/ti-pru-eg/.debug/*"





More information about the Openembedded-commits mailing list