[meta-arago] [master/thud/ti2019.03 4/4] ti-tisdk-makefile: include source for tiovx-app-host and add it to the top-level makefile

2019-09-23 Thread Hongmei Gou
Signed-off-by: Hongmei Gou 
Signed-off-by: Jacob Stiffler 
---
 .../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

diff --git a/meta-arago-distro/conf/distro/include/arago-source-ipk.inc 
b/meta-arago-distro/conf/distro/include/arago-source-ipk.inc
index 6e56c771..aa9638f8 100644
--- a/meta-arago-distro/conf/distro/include/arago-source-ipk.inc
+++ b/meta-arago-distro/conf/distro/include/arago-source-ipk.inc
@@ -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}"
 
diff --git 
a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_tiovx-app-host
 
b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_tiovx-app-host
new file mode 100644
index ..f25472d3
--- /dev/null
+++ 
b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_tiovx-app-host
@@ -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
+
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 417b28b6..80ec54ea 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
@@ -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 \
-- 
2.17.1

___
meta-arago mailing list
meta-arago@arago-project.org
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


[meta-arago] [master/thud/ti2019.03 1/4] tiovx-sys-iface: add interface header files between TIOVX library and IPC implementation

2019-09-23 Thread Hongmei Gou
* Use update-alternatives for the firmware
* Add reload-dsp-fw.sh to enable run-time firmware switch between opencl and 
tiovx

Signed-off-by: Djordje Senicic 
Signed-off-by: Jacob Stiffler 
Signed-off-by: Hongmei Gou 
---
 .../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

diff --git a/meta-arago-extras/recipes-ti/tiovx/files/reload-dsp-fw.sh 
b/meta-arago-extras/recipes-ti/tiovx/files/reload-dsp-fw.sh
new file mode 100755
index ..198fd60f
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/tiovx/files/reload-dsp-fw.sh
@@ -0,0 +1,66 @@
+#!/bin/sh
+usage() {
+cat << EOF
+
+  Usage:
+ $0 
+
+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 4080.dsp > unbind
+
+echo 4100.dsp > unbind
+
+# reload firmware for DSPs
+echo "Reloading firmware for DSPs..."
+echo 4080.dsp > bind
+
+echo 4100.dsp > bind
+
+cd ~-
diff --git a/meta-arago-extras/recipes-ti/tiovx/tiovx-sys-iface.bb 
b/meta-arago-extras/recipes-ti/tiovx/tiovx-sys-iface.bb
new file mode 100644
index ..84d2934b
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/tiovx/tiovx-sys-iface.bb
@@ -0,0 +1,49 @@
+SUMMARY = "TI OpenVX interface header files between TIOVX library and HOST, 
DSP IPC side implementation "
+DESCRIPTION = "Collection of header files needed to defined interface between 
TIOVX library and HOST and DSP IPC side implementation. In order to maintain 
source compatibility, directory structure follows VSDK source tree layout."
+
+LICENSE = "TI-TSPA"
+LIC_FILES_CHKSUM = 
"file://iface/VSDK/docs/TIOVX-SYS-IFACE_1.0.0.0_manifest.html;md5=10904cbdb4f065c025a63ca71ae7de2d"
+
+require recipes-ti/includes/tisdk-paths.inc
+require tiovx-sys.inc
+
+PR = "r1"
+
+COMPATIBLE_MACHINE = "dra7xx"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit update-alternatives
+
+SRC_URI_append += "\
+ file://reload-dsp-fw.sh \
+"
+
+S = "${WORKDIR}/git"
+
+do_install () {
+#   Install the header files
+CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
+install -d ${D}${TIOVX_INSTALL_DIR_RECIPE}/sys-iface
+cp ${CP_ARGS} ${S}/iface/VSDK/* ${D}${TIOVX_INSTALL_DIR_RECIPE}/sys-iface
+#   Install the firmware
+install -d ${D}/${base_libdir}/firmware
+install -m 0644 ${S}/firmware/tiovx_dsp1.xe66 
${D}/${base_libdir}/firmware/dra7-dsp1-fw.xe66.openvx
+install -m 0644 ${S}/firmware/tiovx_dsp2.xe66 
${D}/${base_libdir}/firmware/dra7-dsp2-fw.xe66.openvx
+#   Install the scripts for loading dsp firmware
+install -d ${D}${bindir}/
+install -m 0755 ${WORKDIR}/reload-dsp-fw.sh ${D}${bindir}
+}
+
+ALTERNATIVE_${PN} = "dra7-dsp1-fw.xe66 dra7-dsp2-fw.xe66"
+ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = 
"${base_libdir}/firmware/dra7-dsp1-fw.xe66"
+ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = 
"${base_libdir}/firmware/dra7-dsp1-fw.xe66.openvx"
+ALTERNATIVE_LINK_NAME[dra7-dsp2-fw.xe66] = 
"${base_libdir}/firmware/dra7-dsp2-fw.xe66"
+ALTERNATIVE_TARGET[dra7-dsp2-fw.xe66] = 
"${base_libdir}/firmware/dra7-dsp2-fw.xe66.openvx"
+ALTERNATIVE_PRIORITY = "20"
+
+FILES_${PN} += "${TIOVX_INSTALL_DIR_RECIPE}/sys-iface/* "
+PACKAGES =+ "${PN}-firmware"
+FILES_${PN}-firmware = "${base_libdir}/firmware/*"
+
+INSANE_SKIP_${PN}-firmware = "arch"
+
diff --git a/meta-arago-extras/recipes-ti/tiovx/tiovx-sys.inc 
b/meta-arago-extras/recipes-ti/tiovx/tiovx-sys.inc
new file mode 100644
index ..becf0cc1
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/tiovx/tiovx-sys.inc
@@ 

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

2019-09-23 Thread Hongmei Gou
Signed-off-by: Djordje Senicic 
Signed-off-by: Jacob Stiffler 
Signed-off-by: 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

diff --git 
a/meta-arago-extras/recipes-ti/tiovx/files/0001-Fix-paths-for-Yocto-build-and-add-RTOS-build-var.patch
 
b/meta-arago-extras/recipes-ti/tiovx/files/0001-Fix-paths-for-Yocto-build-and-add-RTOS-build-var.patch
new file mode 100644
index ..1e667b87
--- /dev/null
+++ 
b/meta-arago-extras/recipes-ti/tiovx/files/0001-Fix-paths-for-Yocto-build-and-add-RTOS-build-var.patch
@@ -0,0 +1,133 @@
+From 32bd788608034f5a49d9cd4a0163190ef666d9a2 Mon Sep 17 00:00:00 2001
+From: Djordje Senicic 
+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 
+---
+ 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 ?= 

[meta-arago] [master/thud/ti2019.03 3/4] tiovx-app-host: TI OpenVX IPC HOST implementation and sample applications

2019-09-23 Thread Hongmei Gou
* The sample applications include running OpenVX conformance tests
  as well as a Khronos tutorial example

Signed-off-by: Djordje Senicic 
Signed-off-by: Jacob Stiffler 
Signed-off-by: Hongmei Gou 
---
 .../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

diff --git a/meta-arago-extras/recipes-ti/tiovx/files/setenv.sh 
b/meta-arago-extras/recipes-ti/tiovx/files/setenv.sh
new file mode 100644
index ..dc7bcea3
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/tiovx/files/setenv.sh
@@ -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
diff --git a/meta-arago-extras/recipes-ti/tiovx/tiovx-app-host.bb 
b/meta-arago-extras/recipes-ti/tiovx/tiovx-app-host.bb
new file mode 100644
index ..91286dc7
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/tiovx/tiovx-app-host.bb
@@ -0,0 +1,56 @@
+SUMMARY = "TI OpenVX HOST (Linux A15) conformance verification application, 
Khronos tutorial example, and Host side IPC implementation "
+DESCRIPTION = "TI OpenVX implementation, TIOVX, includes Khronos defined 
conformance test and tutorial example, as well as additional TI specific tests. 
This package creates application which runs all the conformance tests (7K-8K) 
and Khronos tutorial exercise1. Same package includes IPC implementation 
(MessageQ based) needed for communication with DSP firmware (loaded at boot 
time) "
+
+LICENSE = "BSD-3-Clause & MIT"
+LIC_FILES_CHKSUM = 
"file://docs/manifest/TIOVX-APP-HOST_01.00.01.00_manifest.html;md5=247d7c56d783f583bf802490d5c93db3"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI_append += "\
+ file://setenv.sh \
+"
+
+inherit pkgconfig
+
+require recipes-ti/includes/tisdk-paths.inc
+require tiovx-sys.inc
+
+DEPENDS = " tiovx-sys-iface tiovx-lib-host ti-ipc cmem opencv udev"
+RDEPENDS_${PN} = " tiovx-sys-iface tiovx-sys-iface-firmware tiovx-lib-host 
ti-ipc cmem"
+
+PR = "r3"
+
+COMPATIBLE_MACHINE = "dra7xx"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+PROCLIST = "host khronos_example"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE += " TARGET_ROOTDIR=${STAGING_DIR_HOST} "
+EXTRA_OEMAKE += " GCCLINARO=${TOOLCHAIN_PATH} TIOVXPATH=${TIOVX_INSTALL_DIR} 
IPCPATH=${IPC_INSTALL_DIR} "
+EXTRA_OEMAKE += " SDKPLATFORMIFPATH=${TIOVX_INSTALL_DIR}/sys-iface "
+EXTRA_OEMAKE += " PROC_LIST='${PROCLIST}' "
+
+do_install () {
+install -d ${D}${bindir}/
+install -m 0755 ${S}/host/bin/debug/app_host ${D}${bindir}/tiovx-app_host
+install -m 0755 ${S}/khronos_example/bin/debug/opticalflow 
${D}${bindir}/tiovx-opticalflow
+
+oe_runmake clean
+install -d ${D}${datadir}/ti/examples/openvx
+install -m 644 ${S}/products.mak ${D}${datadir}/ti/examples/openvx
+install -m 644 ${S}/makefile ${D}${datadir}/ti/examples/openvx
+install -m 644 ${WORKDIR}/setenv.sh ${D}${datadir}/ti/examples/openvx
+cp -r ${S}/host ${D}${datadir}/ti/examples/openvx
+cp -r ${S}/khronos_example  ${D}${datadir}/ti/examples/openvx
+cp -r ${S}/shared ${D}${datadir}/ti/examples/openvx
+}
+
+PACKAGES += "${PN}-examples"
+FILES_${PN}-examples = "${datadir}/ti/examples/openvx"
+RDEPENDS_${PN}-examples = "tiovx-lib-host-staticdev tiovx-lib-host-dev"
+
+FILES_${PN} += "${bindir}/*"
+INSANE_SKIP_${PN} = "ldflags"
+INSANE_SKIP_${PN}-examples = "dev-deps"
-- 
2.17.1

___
meta-arago mailing list
meta-arago@arago-project.org
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


[meta-arago] [thud/master][PATCH] packagegroup-arago-tisdk-addons: replacing ipc-lld-fw

2019-09-23 Thread Santosh Jha
Replacing ipc-lld-fw with ipc-lld-examples-rtos to
build from source.

Signed-off-by: Santosh Jha 
---
 .../packagegroups/packagegroup-arago-tisdk-addons.bb  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
 
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
index 21aa7244..ef617793 100644
--- 
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
+++ 
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
@@ -75,8 +75,8 @@ UTILS_append_k3 = " mmc-utils \
 irqbalance \
 "
 
-UTILS_append_am65xx = " ti-ipc-rtos-fw pru-icss"
-UTILS_append_j7-evm = " ipc-lld-fw ti-display-sharing-fw jailhouse"
+UTILS_append_am65xx = " ti-ipc-rtos-fw pru-icss ipc-lld-examples-rtos"
+UTILS_append_j7-evm = " ipc-lld-examples-rtos ti-display-sharing-fw jailhouse"
 
 UTILS_append_omapl138 = " ti-ipc-rtos-fw"
 
-- 
2.17.1

___
meta-arago mailing list
meta-arago@arago-project.org
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


Re: [meta-arago] [EXTERNAL] [thud/master][PATCH] ti-sci-fw: update to 2019.08

2019-09-23 Thread Jacob Stiffler

Ping.

On 9/18/2019 8:32 AM, Jacob Stiffler wrote:
Did the checksums for the hs-enc and hs-cert images change in this 
version?



- Jake

On 9/17/2019 7:57 PM, Denys Dmytriyenko wrote:

Signed-off-by: Denys Dmytriyenko 
---
  .../ti-sci-fw/{ti-sci-fw_2019.07.bb => 
ti-sci-fw_2019.08.bb}  | 4 ++--

  1 file changed, 2 insertions(+), 2 deletions(-)
  rename 
meta-arago-distro/recipes-bsp/ti-sci-fw/{ti-sci-fw_2019.07.bb => 
ti-sci-fw_2019.08.bb} (96%)


diff --git 
a/meta-arago-distro/recipes-bsp/ti-sci-fw/ti-sci-fw_2019.07.bb 
b/meta-arago-distro/recipes-bsp/ti-sci-fw/ti-sci-fw_2019.08.bb

similarity index 96%
rename from meta-arago-distro/recipes-bsp/ti-sci-fw/ti-sci-fw_2019.07.bb
rename to meta-arago-distro/recipes-bsp/ti-sci-fw/ti-sci-fw_2019.08.bb
index d53e926..fab4de4 100644
--- a/meta-arago-distro/recipes-bsp/ti-sci-fw/ti-sci-fw_2019.07.bb
+++ b/meta-arago-distro/recipes-bsp/ti-sci-fw/ti-sci-fw_2019.08.bb
@@ -14,9 +14,9 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
  TI_SECURE_DEV_PKG ?= ""
  export TI_SECURE_DEV_PKG
  -SRCREV = "3f7c97c9f923f6fbf1b96dcae1da8620a3bab0b3"
+SRCREV = "c75bca342d5a8579c3a459515adb6b77d640a245"
  BRANCH ?= "ti-linux-firmware"
-SRCREV_imggen = "38a82e00f84efdf381dba001fff75e8411898e99"
+SRCREV_imggen = "92623d82dc683e74225ceaac239b29deac437adf"
  SRCREV_FORMAT = "imggen"
    SRC_URI = " \

___
meta-arago mailing list
meta-arago@arago-project.org
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

___
meta-arago mailing list
meta-arago@arago-project.org
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago