Signed-off-by: Jacob Stiffler <[email protected]>
---
 .../ti-tisdk-makefile/Makefile_linalg-examples     | 39 ++++++++++++++++++++++
 .../ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb     |  4 ++-
 2 files changed, 42 insertions(+), 1 deletion(-)
 create mode 100644 
meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linalg-examples

diff --git 
a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linalg-examples
 
b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linalg-examples
new file mode 100644
index 0000000..19c182f
--- /dev/null
+++ 
b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linalg-examples
@@ -0,0 +1,39 @@
+linalg-examples:
+       @echo =====================================
+       @echo     Building the Linalg Examples
+       @echo =====================================
+       @cd example-applications; \
+       cd `find . -name "*linalg-examples*"`; \
+       . $(ENV_SETUP); \
+       make TARGET_ROOTDIR=$(SDK_PATH_TARGET) \
+               TI_OCL_CGT_INSTALL=$(SDK_PATH_TARGET)/usr/share/ti/cgt-c6x \
+               LINALG_DIR=$(SDK_PATH_TARGET)/usr/share/ti/ti-linalg-tree
+
+linalg-examples_install:
+       @echo =======================================
+       @echo     Installing the Linalg Examples
+       @echo =======================================
+       @if [ ! -d $(DESTDIR) ] ; then \
+               echo "The extracted target filesystem directory doesn't 
exist."; \
+               echo "Please run setup.sh in the SDK's root directory and then 
try again."; \
+               exit 1; \
+       fi
+       @cd example-applications; \
+       cd `find . -name "*linalg-examples*"`; \
+       for example in `find . -executable -not \( -type d -o -iname 'make*' 
\)`; do \
+               install -d $(DESTDIR)/usr/share/ti/examples/linalg/`dirname 
$${example}` ; \
+               install -m 755 $${example} 
$(DESTDIR)/usr/share/ti/examples/linalg/`dirname $${example}` ; \
+               if [ -f `dirname $${example}`/*.out ]; then \
+                       install -m 755 `dirname $${example}`/*.out 
$(DESTDIR)/usr/share/ti/examples/linalg/`dirname $${example}` ; \
+               fi \
+       done
+
+linalg-examples_clean:
+       @echo =======================================
+       @echo     Cleaning the Linalg Examples
+       @echo =======================================
+       @cd example-applications; \
+       cd `find . -name "*linalg-examples*"`; \
+       . $(ENV_SETUP); \
+       make TARGET_ROOTDIR=$(SDK_PATH_TARGET) clean
+
diff --git 
a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb 
b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
index a487fe4..a65918e 100644
--- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
@@ -45,9 +45,10 @@ SRC_URI = "\
     file://Makefile_qt-opencv-opencl-opengl-multithreaded \
     file://Makefile_ipsecmgr-mod \
     file://Makefile_openmpacc-examples \
+    file://Makefile_linalg-examples \
 "
 
-PR = "r69"
+PR = "r70"
 
 MAKEFILES_MATRIX_GUI = "matrix-gui-browser \
                         refresh-screen \
@@ -133,6 +134,7 @@ MAKEFILES_append_k2hk-evm = " opencl-examples \
                               gdbserverproxy-module-drv \
                               debugss-module-drv \
                               openmpacc-examples \
+                              linalg-examples \
 "
 
 MAKEFILES_append_k2l-evm = " opencl-examples \
-- 
1.9.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to