* The major addition of tiopencv is dispatching OpenCV kernels to DSP via OpenCL

Signed-off-by: Hongmei Gou <[email protected]>
---
 .../opencv/opencv/am57xx-evm/setupEnv.sh           |  3 ++
 .../opencv/opencv/dra7xx-evm/setupEnv.sh           |  3 ++
 .../opencv/opencv/keystone/setupEnv.sh             |  3 ++
 .../recipes-support/opencv/opencv/setupEnv.sh      |  2 ++
 .../recipes-support/opencv/opencv_3.1.bbappend     | 32 ++++++++++++++++++++++
 5 files changed, 43 insertions(+)
 create mode 100644 
meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh
 create mode 100644 
meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh
 create mode 100644 
meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh
 create mode 100644 meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh
 create mode 100644 meta-arago-distro/recipes-support/opencv/opencv_3.1.bbappend

diff --git 
a/meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh 
b/meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh
new file mode 100644
index 0000000..3ad2560
--- /dev/null
+++ b/meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh
@@ -0,0 +1,3 @@
+export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
+export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
+export OPENCV_OPENCL_DEVICE='TI AM57:ACCELERATOR:TI Multicore C66 DSP'
diff --git 
a/meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh 
b/meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh
new file mode 100644
index 0000000..3ad2560
--- /dev/null
+++ b/meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh
@@ -0,0 +1,3 @@
+export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
+export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
+export OPENCV_OPENCL_DEVICE='TI AM57:ACCELERATOR:TI Multicore C66 DSP'
diff --git 
a/meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh 
b/meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh
new file mode 100644
index 0000000..5b6bdb7
--- /dev/null
+++ b/meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh
@@ -0,0 +1,3 @@
+export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
+export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
+export OPENCV_OPENCL_DEVICE='TI KeyStone II:ACCELERATOR:TI Multicore C66 DSP'
diff --git a/meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh 
b/meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh
new file mode 100644
index 0000000..5bf7afd
--- /dev/null
+++ b/meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh
@@ -0,0 +1,2 @@
+export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
+export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
diff --git a/meta-arago-distro/recipes-support/opencv/opencv_3.1.bbappend 
b/meta-arago-distro/recipes-support/opencv/opencv_3.1.bbappend
new file mode 100644
index 0000000..aef44bc
--- /dev/null
+++ b/meta-arago-distro/recipes-support/opencv/opencv_3.1.bbappend
@@ -0,0 +1,32 @@
+PR = "r0"
+
+BRANCH = "tiopencvrelease_3.1"
+
+SRC_URI_remove = "git://github.com/Itseez/opencv.git;name=opencv"
+SRC_URI_prepend = 
"git://git.ti.com/opencv/tiopencv.git;protocol=git;branch=${BRANCH};name=opencv"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI_append += "\
+     file://setupEnv.sh \
+"
+
+SRCREV_opencv = "b4f54ac48ced0ade8223eafab9cd3ad6dbb1b515"
+
+DEPENDS_remove_keystone = "qtbase"
+
+PACKAGECONFIG_append_am57xx-evm= " opencl"
+PACKAGECONFIG_append_dra7xx-evm= " opencl"
+PACKAGECONFIG_append_keystone = " opencl"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON 
-DCMAKE_CXX_FLAGS_RELEASE="${CMAKE_CXX_FLAGS_RELEASE} -DCV_TIOPENCL 
-DCV_TIOPENCL_ENABLE_PROGRAM_COUNT -DMAX_PROGRAM_HASH_SIZE=50" 
-DCMAKE_C_FLAGS_RELEASE="${CMAKE_C_FLAGS_RELEASE} -DCV_TIOPENCL 
-DCV_TIOPENCL_ENABLE_PROGRAM_COUNT -DMAX_PROGRAM_HASH_SIZE=50" 
-DWITH_OPENCLAMDFFT=OFF -DWITH_OPENCLAMDBLAS=OFF,-DWITH_OPENCL=OFF,cmem opencl,"
+
+do_install_append() {
+    install -d ${D}${datadir}/OpenCV/samples/bin/
+    install -d ${D}${datadir}/OpenCV/titestsuite/
+    cp -f bin/*_test_* ${D}${datadir}/OpenCV/samples/bin/
+    cp -f ${S}/titestsuite/* ${D}${datadir}/OpenCV/titestsuite/
+    cp -f ${WORKDIR}/setupEnv.sh ${D}${datadir}/OpenCV/titestsuite/
+}
-- 
1.9.1

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

Reply via email to