Skip to contentSkip to conversation

tiovx-sys-iface: add interface header files between TIOVX library and IPC implementation

PATCH Superseded Hongmei Gou 3 participants 7 messages Sep 23, 2019 – Oct 7, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 tiovx-sys-iface: add interface header files between TIOVX library and IPC implementation

* Use update-alternatives for the firmware
* Add reload-dsp-fw.sh to enable run-time firmware switch between opencl and tiovx

---
 .../recipes-ti/tiovx/files/reload-dsp-fw.sh   | 66 +++++++++++++++++++
 .../recipes-ti/tiovx/tiovx-sys-iface.bb       | 49 ++++++++++++++
 .../recipes-ti/tiovx/tiovx-sys.inc            |  5 ++
 3 files changed, 120 insertions(+)
 create mode 100755 meta-arago-extras/recipes-ti/tiovx/files/reload-dsp-fw.sh
 create mode 100644 meta-arago-extras/recipes-ti/tiovx/tiovx-sys-iface.bb
 create mode 100644 meta-arago-extras/recipes-ti/tiovx/tiovx-sys.inc
meta-arago-extras/recipes-ti/tiovx/files/reload-dsp-fw.sh new file +66 -0
new file mode 100755
index 00000000..198fd60f
@@ -0,0 +1,66 @@
+#!/bin/sh
+usage() {
+    cat << EOF
+
+  Usage:
+         $0 <fw-type: opencl, tiovx>
+
+EOF
+}
+
+if [ "$1" ]; then
+case "$1" in
+    opencl) echo "Reload opencl firmware to DSP"
+        ;;
+    tiovx) echo "Reload tiovx firmware to DSP"
+        ;;
+    *) echo "Wrong argument $1"
+       usage
+       exit
+        ;;
+esac
+else
+       usage
+       exit
+fi
+
+fw="${1}"
+
+if [[ ${fw} == opencl ]]; then
+    #Start OpenCL CMEM memory allocation daemon
+    if pgrep -x "ti-mctd" > /dev/null
+    then
+        echo "ti-mctd is running"
+    else
+        echo "Starting ti-mctd..."
+        ti-mctd
+    fi
+    # Link opencl monitor firmware for DSPs
+    ln -s -f /lib/firmware/dra7-dsp1-fw.xe66.opencl-monitor /lib/firmware/dra7-dsp1-fw.xe66
+    ln -s -f /lib/firmware/dra7-dsp2-fw.xe66.opencl-monitor /lib/firmware/dra7-dsp2-fw.xe66
+fi
+
+if [[ ${fw} == tiovx ]]; then
+    # Kill CMEM multi-process daemon. This releases all CMEM memory used by OpenCL memory allocation
+    pkill ti-mctd
+
+    # Link tiovx firmware for DSPs
+    ln -s -f /lib/firmware/dra7-dsp1-fw.xe66.openvx /lib/firmware/dra7-dsp1-fw.xe66
+    ln -s -f /lib/firmware/dra7-dsp2-fw.xe66.openvx /lib/firmware/dra7-dsp2-fw.xe66
+fi
+
+cd /sys/bus/platform/drivers/omap-rproc/
+
+# release DSPs
+echo "Releasing DSPs..."
+echo 40800000.dsp > unbind
+
+echo 41000000.dsp > unbind
+
+# reload firmware for DSPs
+echo "Reloading firmware for DSPs..."
+echo 40800000.dsp > bind
+
+echo 41000000.dsp > bind
+
+cd ~-
meta-arago-extras/recipes-ti/tiovx/tiovx-sys-iface.bb new file +49 -0

49 lines not on this page · raw message

meta-arago-extras/recipes-ti/tiovx/tiovx-sys.inc new file +5 -0
new file mode 100644
index 00000000..becf0cc1
@@ -0,0 +1,5 @@
+PV = "01.00.01.00"
+
+BRANCH="master"
+SRCREV = "5be60aee8d013907a4d8a6cc8af35a517a33b49e"
+SRC_URI = "git://git.ti.com/processor-sdk/tiovx-app.git;protocol=git;branch=${BRANCH}"
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/4 tiovx-lib-host: add recipe for TI OpenVX library, host side

---
 ...r-Yocto-build-and-add-RTOS-build-var.patch | 133 ++++++++++++++++++
 .../recipes-ti/tiovx/tiovx-lib-host.bb        |  41 ++++++
 2 files changed, 174 insertions(+)
 create mode 100644 meta-arago-extras/recipes-ti/tiovx/files/0001-Fix-paths-for-Yocto-build-and-add-RTOS-build-var.patch
 create mode 100644 meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb
meta-arago-extras/recipes-ti/tiovx/files/0001-Fix-paths-for-Yocto-build-and-add-RTOS-build-var.patch new file +133 -0
new file mode 100644
index 00000000..1e667b87
@@ -0,0 +1,133 @@
+From 32bd788608034f5a49d9cd4a0163190ef666d9a2 Mon Sep 17 00:00:00 2001
+From: Djordje Senicic <[email protected]>
+Date: Mon, 14 Aug 2017 10:26:39 -0400
+Subject: [PATCH] Fix paths for Yocto build and add RTOS build var
+
+Signed-off-by: Djordje Senicic <[email protected]>
+---
+ Makefile            | 27 +++++++++++++++++++--------
+ psdk_tools_path.mak | 32 ++++++++++++++------------------
+ 2 files changed, 33 insertions(+), 26 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 0832e07..1be5b0d 100755
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,6 @@
+ 
+ # Valid values are: vsdk psdk
+-BUILD_SDK=vsdk
++BUILD_SDK=psdk
+ 
+ include $(BUILD_SDK)_tools_path.mak
+ 
+@@ -8,11 +8,12 @@ BUILD_EMULATION_MODE?=no
+ BUILD_TARGET_MODE?=yes
+ 
+ BUILD_CONFORMANCE_TEST?=yes
+-BUILD_IVISION_KERNELS?=yes
++BUILD_IVISION_KERNELS?=no
+ BUILD_BAM?=yes
+ BUILD_TUTORIAL?=yes
+ BUILD_LINUX_A15?=yes
+-BUILD_EVE?=yes
++BUILD_RTOS?=no
++BUILD_EVE?=no
+ 
+ PROFILE?=all
+ 
+@@ -43,12 +44,17 @@ TARGET_COMBOS :=
+ 
+ ifeq ($(BUILD_TARGET_MODE),yes)
+   ifeq ($(PROFILE), $(filter $(PROFILE), debug all))
+-	TARGET_COMBOS += TDAX:SYSBIOS:M4:1:debug:TIARMCGT
+-	TARGET_COMBOS += TDAX:SYSBIOS:C66:1:debug:CGT6X
++	ifeq ($(BUILD_RTOS),yes)
++	  TARGET_COMBOS += TDAX:SYSBIOS:M4:1:debug:TIARMCGT
++	  TARGET_COMBOS += TDAX:SYSBIOS:C66:1:debug:CGT6X
++	endif
++
+ 	ifeq ($(BUILD_EVE),yes)
+ 	TARGET_COMBOS += TDAX:SYSBIOS:EVE:1:debug:ARP32CGT
+ 	endif
++	ifeq ($(BUILD_RTOS),yes)
+ 	TARGET_COMBOS += TDAX:SYSBIOS:A15:1:debug:GCC
++	endif
+ 	ifneq ($(OS),Windows_NT)
+ 		ifeq ($(BUILD_LINUX_A15),yes)
+ 		TARGET_COMBOS += TDAX:LINUX:A15:1:debug:GCC_LINARO
+@@ -57,12 +63,17 @@ ifeq ($(BUILD_TARGET_MODE),yes)
+   endif
+ 
+   ifeq ($(PROFILE), $(filter $(PROFILE), release all))
+-	TARGET_COMBOS += TDAX:SYSBIOS:M4:1:release:TIARMCGT
+-	TARGET_COMBOS += TDAX:SYSBIOS:C66:1:release:CGT6X
++	ifeq ($(BUILD_RTOS),yes)
++	  TARGET_COMBOS += TDAX:SYSBIOS:M4:1:release:TIARMCGT
++	  TARGET_COMBOS += TDAX:SYSBIOS:C66:1:release:CGT6X
++	endif
++
+ 	ifeq ($(BUILD_EVE),yes)
+ 	TARGET_COMBOS += TDAX:SYSBIOS:EVE:1:release:ARP32CGT
+ 	endif
+-	TARGET_COMBOS += TDAX:SYSBIOS:A15:1:release:GCC
++	ifeq ($(BUILD_RTOS),yes)
++	  TARGET_COMBOS += TDAX:SYSBIOS:A15:1:release:GCC
++	endif
+ 	ifneq ($(OS),Windows_NT)
+ 		ifeq ($(BUILD_LINUX_A15),yes)
+ 		TARGET_COMBOS += TDAX:LINUX:A15:1:release:GCC_LINARO
+diff --git a/psdk_tools_path.mak b/psdk_tools_path.mak
+index 36394f8..8fd468d 100755
+--- a/psdk_tools_path.mak
++++ b/psdk_tools_path.mak
+@@ -2,7 +2,6 @@
+ TIOVX_PATH = $(abspath .)
+ 
+ PLSDK_PATH := /home/x0157990/ti-processor-sdk-linux-am57xx-evm-04.00.00.04
+-PRSDK_PATH := /home/x0157990/ti-processor-sdk-rtos-am57xx-evm-04-00-00-04
+ 
+ CROSS_COMPILE_LINARO := arm-linux-gnueabihf-
+ CROSS_COMPILE := arm-none-eabi-
+@@ -16,23 +15,20 @@ ifeq ($(BUILD_OS),Windows_NT)
+ GCC_WINDOWS_ROOT ?= C:/CodeBlocks/MinGW
+ endif
+ 
+-XDC_PATH := $(PRSDK_PATH)/xdctools_3_32_01_22_core/
+-TIARMCGT_ROOT := $(PRSDK_PATH)/ti-cgt-arm_16.9.2.LTS
++XDC_PATH := $(XDC_INSTALL_DIR)
++TIARMCGT_ROOT :=  $(TIARMCGTPATH)
++GCC_ROOT_LINARO := $(GCCLINARO)
++XDIAS_PATH := $(XDAISPATH)
++BIOS_PATH := $(SYSBIOSPATH)
++PDK_PATH := $(PDKPATH)
++SDK_PLATFORM_IF_PATH := $(SDKPLATFORMIFPATH)
+ 
+-GCC_ROOT := $(PRSDK_PATH)/gcc-arm-none-eabi-4_9-2015q3
+-GCC_ROOT_LINARO := /home/x0157990/linaro/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf
+-CGT6X_ROOT := $(PRSDK_PATH)/ti-cgt-c6000_8.1.3/
++GCC_ROOT ?= $(GCCARMNONEPATH)
++CGT6X_ROOT := $(TI_CGT_INSTALL)
+ GCC_LINUX_ROOT ?= /usr/
++VXLIB_PATH ?= $(VXLIBPATH)
++ARP32CGT_ROOT ?= $(EVETOOLSPATH}
++DMAUTILS_PATH ?= $(DSPAPPS_PATH)/dmautils
++ALGFRAMEWORK_PATH ?= $(DSPAPPS_PATH)/algframework
++EDMA3_LLD_PATH := $(EDMA3LLDPATH)
+ 
+-
+-VXLIB_PATH ?= $(PRSDK_PATH)/vxlib_c66x_1_1_0_0
+-XDIAS_PATH := $(PRSDK_PATH)/xdais_7_24_00_04
+-EDMA3_LLD_PATH := $(PRSDK_PATH)/edma3_lld_2_12_04_28/
+-BIOS_PATH := $(PRSDK_PATH)/bios_6_46_05_55/
+-
+-DMAUTILS_PATH ?= $(PRSDK_PATH)/REL.DMAUTILS.00.08.00.02/dmautils
+-ALGFRAMEWORK_PATH ?= $(PRSDK_PATH)/REL.ALGFRAMEWORK.02.07.00.00/algframework
+-PDK_PATH := $(PRSDK_PATH)/pdk_am57xx_1_0_7
+-CMEM_PATH ?= $(PLSDK_INSTALL_PATH)/board-support/extra-drivers/cmem-mod-4.14.00.00+gitAUTOINC+b514a99ac4/
+-TARGETFS := $(PLSDK_PATH)/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/
+-SDK_PLATFORM_IF_PATH ?= /home/x0157990/am57/openvx/ex41_forwardmsg/vx
+\ No newline at end of file
+-- 
+1.9.1
+
meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
2.17.1
#2 lore raw

Re: [master/thud/ti2019.03 2/4] tiovx-lib-host: add recipe for TI OpenVX library, host side

Quoted 9 lines · Hongmei Gou
---
 ...r-Yocto-build-and-add-RTOS-build-var.patch | 133 ++++++++++++++++++
 .../recipes-ti/tiovx/tiovx-lib-host.bb        |  41 ++++++
 2 files changed, 174 insertions(+)
 create mode 100644 meta-arago-extras/recipes-ti/tiovx/files/0001-Fix-paths-for-Yocto-build-and-add-RTOS-build-var.patch
 create mode 100644 meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb

[...]

meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb line 7

Quoted 13 lines
meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +7 -0
new file mode 100644
index 00000000..6115b195
@@ -0,0 +1,41 @@
+SUMMARY = "TI OpenVX HOST (Linux A15) side library"
+DESCRIPTION = "TI OpenVX implementation, TIOVX, based on Khronos OpenVX framework implementation including multiple C66 optimized kernels. Khronos defined conformance test is part of this package as well as additional TI specific tests. Few tutorial examples are also included. This package creates necessary libraries and header files for Linux Host side only. "
+
+LICENSE = "TI-TSPA"
+LIC_FILES_CHKSUM = "file://docs/manifest/TIOVX_manifest.html;md5=edd4fbfc6c1f01c20d49def4670efac0"
+
+require recipes-ti/includes/tisdk-paths.inc

ERROR: ParseError at .../meta-arago/meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb:7: Could not include required file recipes-ti/includes/tisdk-paths.inc

Quoted 41 lines
meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +34 -0
+
+COMPATIBLE_MACHINE = "dra7xx"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+PV = "01.00.00.00"
+PR = "r1"
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/processor-sdk/tiovx.git;protocol=git;branch=${BRANCH}"
+SRC_URI += "file://0001-Fix-paths-for-Yocto-build-and-add-RTOS-build-var.patch "
+SRCREV = "2bfa01201804eaf2e675c743e708e88ab612049e"
+
+
+S = "${WORKDIR}/git"
+
+DEPENDS = " tiovx-sys-iface "
+
+EXTRA_OEMAKE += " GCCLINARO=${TOOLCHAIN_PATH} "
+EXTRA_OEMAKE += " SDKPLATFORMIFPATH=${TIOVX_INSTALL_DIR}/sys-iface BUILD_RTOS=no "
+
+do_install () {
+    CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
+    install -d ${D}${includedir}/VX
+    install -d ${D}${includedir}/VX/TI
+    install -d ${D}${libdir}
+    cp ${CP_ARGS} ${S}/lib/TDAX/A15/LINUX/release/*.a ${D}${libdir}
+    cp ${CP_ARGS} ${S}/include/VX/* ${D}${includedir}/VX
+    cp ${CP_ARGS} ${S}/include/TI/* ${D}${includedir}/VX/TI
+}
+
+FILES_${PN}-staticdev = "${libdir}"
+FILES_${PN}-dev = "${includedir}"
+
+ALLOW_EMPTY_${PN} = "1"
Signature · 6 lines
2.17.1

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

Re: [master/thud/ti2019.03 2/4] tiovx-lib-host: add recipe for TI OpenVX library, host side

Ping?

Quoted 76 lines · Denys Dmytriyenko
Quoted 9 lines · Hongmei Gou
---
 ...r-Yocto-build-and-add-RTOS-build-var.patch | 133 ++++++++++++++++++
 .../recipes-ti/tiovx/tiovx-lib-host.bb        |  41 ++++++
 2 files changed, 174 insertions(+)
 create mode 100644 meta-arago-extras/recipes-ti/tiovx/files/0001-Fix-paths-for-Yocto-build-and-add-RTOS-build-var.patch
 create mode 100644 meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb

[...]

meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb line 7

Quoted 13 lines
meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +7 -0
new file mode 100644
index 00000000..6115b195
@@ -0,0 +1,41 @@
+SUMMARY = "TI OpenVX HOST (Linux A15) side library"
+DESCRIPTION = "TI OpenVX implementation, TIOVX, based on Khronos OpenVX framework implementation including multiple C66 optimized kernels. Khronos defined conformance test is part of this package as well as additional TI specific tests. Few tutorial examples are also included. This package creates necessary libraries and header files for Linux Host side only. "
+
+LICENSE = "TI-TSPA"
+LIC_FILES_CHKSUM = "file://docs/manifest/TIOVX_manifest.html;md5=edd4fbfc6c1f01c20d49def4670efac0"
+
+require recipes-ti/includes/tisdk-paths.inc

ERROR: ParseError at .../meta-arago/meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb:7: Could not include required file recipes-ti/includes/tisdk-paths.inc

Quoted 41 lines
meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +34 -0
+
+COMPATIBLE_MACHINE = "dra7xx"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+PV = "01.00.00.00"
+PR = "r1"
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/processor-sdk/tiovx.git;protocol=git;branch=${BRANCH}"
+SRC_URI += "file://0001-Fix-paths-for-Yocto-build-and-add-RTOS-build-var.patch "
+SRCREV = "2bfa01201804eaf2e675c743e708e88ab612049e"
+
+
+S = "${WORKDIR}/git"
+
+DEPENDS = " tiovx-sys-iface "
+
+EXTRA_OEMAKE += " GCCLINARO=${TOOLCHAIN_PATH} "
+EXTRA_OEMAKE += " SDKPLATFORMIFPATH=${TIOVX_INSTALL_DIR}/sys-iface BUILD_RTOS=no "
+
+do_install () {
+    CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
+    install -d ${D}${includedir}/VX
+    install -d ${D}${includedir}/VX/TI
+    install -d ${D}${libdir}
+    cp ${CP_ARGS} ${S}/lib/TDAX/A15/LINUX/release/*.a ${D}${libdir}
+    cp ${CP_ARGS} ${S}/include/VX/* ${D}${includedir}/VX
+    cp ${CP_ARGS} ${S}/include/TI/* ${D}${includedir}/VX/TI
+}
+
+FILES_${PN}-staticdev = "${libdir}"
+FILES_${PN}-dev = "${includedir}"
+
+ALLOW_EMPTY_${PN} = "1"
Signature · 6 lines
2.17.1

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

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

#4 lore raw

Re: [master/thud/ti2019.03 2/4] tiovx-lib-host: add recipe for TI OpenVX library, host side

v2 is now submitted for the first 3 patches of the patch set.

Quoted 104 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, October 07, 2019 4:20 PM
To: Gou, Hongmei
Cc: [email protected]; Senicic, Djordje; Senicic, Djordje
Subject: Re: [meta-arago] [master/thud/ti2019.03 2/4] tiovx-lib-host: add recipe for TI OpenVX library, host side

Ping?

Quoted 6 lines · Denys Dmytriyenko
Quoted 5 lines · Hongmei Gou
---
 ...r-Yocto-build-and-add-RTOS-build-var.patch | 133

++++++++++++++++++

Quoted 3 lines
Quoted 3 lines
 .../recipes-ti/tiovx/tiovx-lib-host.bb        |  41 ++++++
 2 files changed, 174 insertions(+)
 create mode 100644 meta-arago-extras/recipes-ti/tiovx/files/0001-Fix-

paths-for-Yocto-build-and-add-RTOS-build-var.patch

Quoted 1 line
Quoted 1 line
 create mode 100644 meta-arago-extras/recipes-ti/tiovx/tiovx-lib-

host.bb

Quoted 5 lines

[...]

meta-

Quoted 1 line
meta- renamed from meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb +0 -0

arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb

Quoted 7 lines

meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb line 2

Quoted 7 lines

new file mode 100644
index 00000000..6115b195

meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +2 -0
@@ -0,0 +1,41 @@
+SUMMARY = "TI OpenVX HOST (Linux A15) side library"
+DESCRIPTION = "TI OpenVX implementation, TIOVX, based on Khronos

OpenVX framework implementation including multiple C66 optimized kernels. Khronos defined conformance test is part of this package as well as additional TI specific tests. Few tutorial examples are also included. This package creates necessary libraries and header files for Linux Host side only. "

Quoted 3 lines

meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb

Quoted 3 lines
meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +3 -0
+
+LICENSE = "TI-TSPA"
+LIC_FILES_CHKSUM =

"file://docs/manifest/TIOVX_manifest.html;md5=edd4fbfc6c1f01c20d49def4 670efac0"

Quoted 4 lines

meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb line 7

Quoted 2 lines
meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +2 -0
+
+require recipes-ti/includes/tisdk-paths.inc

ERROR: ParseError at .../meta-arago/meta-arago-extras/recipes-

ti/tiovx/tiovx-lib-host.bb:7: Could not include required file recipes- ti/includes/tisdk-paths.inc

Quoted 11 lines

meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb

Quoted 11 lines
meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +9 -0
+
+COMPATIBLE_MACHINE = "dra7xx"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+PV = "01.00.00.00"
+PR = "r1"
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/processor-

sdk/tiovx.git;protocol=git;branch=${BRANCH}"

Quoted 1 line

meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb line 17

Quoted 1 line
meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +1 -0
+SRC_URI += "file://0001-Fix-paths-for-Yocto-build-and-add-RTOS-build-

var.patch "

Quoted 9 lines

meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb

Quoted 9 lines
meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +9 -0
+SRCREV = "2bfa01201804eaf2e675c743e708e88ab612049e"
+
+
+S = "${WORKDIR}/git"
+
+DEPENDS = " tiovx-sys-iface "
+
+EXTRA_OEMAKE += " GCCLINARO=${TOOLCHAIN_PATH} "
+EXTRA_OEMAKE += "

SDKPLATFORMIFPATH=${TIOVX_INSTALL_DIR}/sys-iface BUILD_RTOS=no "

Quoted 3 lines

meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb

Quoted 3 lines
meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +3 -0
+
+do_install () {
+    CP_ARGS="-Prf --preserve=mode,timestamps --no-

preserve=ownership"

Quoted 23 lines
Quoted 15 lines
meta-arago-extras/recipes-ti/tiovx/tiovx-lib-host.bb new file +12 -1
+    install -d ${D}${includedir}/VX
+    install -d ${D}${includedir}/VX/TI
+    install -d ${D}${libdir}
+    cp ${CP_ARGS} ${S}/lib/TDAX/A15/LINUX/release/*.a ${D}${libdir}
+    cp ${CP_ARGS} ${S}/include/VX/* ${D}${includedir}/VX
+    cp ${CP_ARGS} ${S}/include/TI/* ${D}${includedir}/VX/TI
+}
+
+FILES_${PN}-staticdev = "${libdir}"
+FILES_${PN}-dev = "${includedir}"
+
+ALLOW_EMPTY_${PN} = "1"
--

2.17.1

Quoted 4 lines

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

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

#5 lore raw

PATCH 3/4 tiovx-app-host: TI OpenVX IPC HOST implementation and sample applications

In reply to Hongmei Gou

* The sample applications include running OpenVX conformance tests as well as a Khronos tutorial example

---
 .../recipes-ti/tiovx/files/setenv.sh          |  8 +++
 .../recipes-ti/tiovx/tiovx-app-host.bb        | 56 +++++++++++++++++++
 2 files changed, 64 insertions(+)
 create mode 100644 meta-arago-extras/recipes-ti/tiovx/files/setenv.sh
 create mode 100644 meta-arago-extras/recipes-ti/tiovx/tiovx-app-host.bb
meta-arago-extras/recipes-ti/tiovx/files/setenv.sh new file +8 -0
new file mode 100644
index 00000000..dc7bcea3
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+export PROC_LIST='host khronos_example'
+
+export LINUX_SYSROOT_DIR=/
+export TIOVXPATH=/usr/include/VX
+export IPCPATH=/usr/share/ti/ti-ipc-tree
+export SDKPLATFORMIFPATH=/usr/share/ti/ti-tiovx-lib-tree/sys-iface
meta-arago-extras/recipes-ti/tiovx/tiovx-app-host.bb new file +56 -0

56 lines not on this page · raw message

Signature · 1 line
2.17.1
#6 lore raw

PATCH 4/4 ti-tisdk-makefile: include source for tiovx-app-host and add it to the top-level makefile

In reply to Hongmei Gou
---
 .../conf/distro/include/arago-source-ipk.inc  |  3 ++
 .../ti-tisdk-makefile/Makefile_tiovx-app-host | 34 +++++++++++++++++++
 .../ti-tisdk-makefile_1.0.bb                  |  4 ++-
 3 files changed, 40 insertions(+), 1 deletion(-)
 create mode 100644 meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_tiovx-app-host
meta-arago-distro/conf/distro/include/arago-source-ipk.inc +3 -0
index 6e56c771..aa9638f8 100644
@@ -79,6 +79,9 @@ SRCIPK_INSTALL_DIR_pn-mmwavegesture-hmi = "example-applications/${PN}-${PV}"
 CREATE_SRCIPK_pn-pdm-anomaly-detection = "1"
 SRCIPK_INSTALL_DIR_pn-pdm-anomaly-detection = "example-applications/${PN}-${PV}"
 
+CREATE_SRCIPK_pn-tiovx-app-host = "1"
+SRCIPK_INSTALL_DIR_pn-tiovx-app-host = "example-applications/${PN}-${PV}"
+
 CREATE_SRCIPK_pn-image-gallery = "1"
 SRCIPK_INSTALL_DIR_pn-image-gallery = "example-applications/${PN}"
 
meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_tiovx-app-host new file +34 -0
new file mode 100644
index 00000000..f25472d3
@@ -0,0 +1,34 @@
+# tiovx-app-host build targets
+tiovx-app-host:
+	@echo =====================================
+	@echo     Building TIOVX Host Application
+	@echo =====================================
+	@cd example-applications; cd `find . -name "*tiovx-app-host*"`; . $(ENV_SETUP); make \
+		TARGET_ROOTDIR=$(SDK_PATH_TARGET) \
+		GCCLINARO=$(LINUX_DEVKIT_PATH)/sysroots/x86_64-arago-linux/usr \
+		TIOVXPATH=$(SDK_PATH_TARGET)/usr/include/VX \
+		IPCPATH=$(SDK_PATH_TARGET)/usr/share/ti/ti-ipc-tree \
+		SDKPLATFORMIFPATH=$(SDK_PATH_TARGET)/usr/share/ti/ti-tiovx-lib-tree/sys-iface \
+		PROC_LIST='host khronos_example'
+
+tiovx-app-host_install:
+	@echo =======================================
+	@echo     Installing TIOVX Host Application
+	@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 "*tiovx-app-host*"`; \
+	install -m 0755 host/bin/debug/app_host $(DESTDIR)/usr/bin/tiovx-app_host; \
+	install -m 0755 khronos_example/bin/debug/opticalflow $(DESTDIR)/usr/bin/tiovx-opticalflow
+
+tiovx-app-host_clean:
+	@echo =======================================
+	@echo     Cleaning TIOVX Host Application
+	@echo =======================================
+	@cd example-applications; cd `find . -name "*tiovx-app-host*"`; . $(ENV_SETUP); \
+	make PROC_LIST='host khronos_example' clean
+
meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb +3 -1
index 417b28b6..80ec54ea 100644
@@ -51,11 +51,12 @@ SRC_URI = "\
     file://Makefile_sysfw-image \
     file://Makefile_mmwavegesture-hmi \
     file://Makefile_pdm-anomaly-detection \
+    file://Makefile_tiovx-app-host \
     file://Makefile_ti-ipc \
     file://Makefile_jailhouse \
 "
 
-PR = "r101"
+PR = "r102"
 
 MAKEFILES_MATRIX_GUI = "matrix-gui-browser \
                         refresh-screen \
@@ -124,6 +125,7 @@ MAKEFILES_append_dra7xx = " cryptodev \
                             openmpacc-examples \
                             qt-opencv-opencl-opengl-multithreaded \
                             linalg-examples \
+                            tiovx-app-host \
 "
 
 MAKEFILES_append_omap-a15 = " u-boot-spl \
Signature · 1 line
2.17.1