From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by arago-project.org (Postfix) with ESMTPS id 264C9520E4 for ; Mon, 23 Sep 2019 19:24:18 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8NJN9Mm022538 for ; Mon, 23 Sep 2019 14:23:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569266589; bh=qqeZh9A8JvhF2o3xB1zo4aGgnaP1XECj9flpwPNTFw4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=d5pG5RhR5vuxyIsyAFcnAyYkPw/6Bqge2AFod/3aj5zXJSK/0NvAIxcXYVJMPojNS SP7Pm0ij6eijMlfHJiEdgD/GWXJBfcrxIsC0ZKow7bWyCJgZqO3YMLBQLjuvBG+EOg xFO2R96yWf8TCj3/iCjWPZc8pzOB3lvi4fXcEeR0= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8NJN9IC092097 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 23 Sep 2019 14:23:09 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 23 Sep 2019 14:23:03 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 23 Sep 2019 14:23:02 -0500 Received: from UDA0271529.gt.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8NJMxq9033647; Mon, 23 Sep 2019 14:23:08 -0500 From: Hongmei Gou To: Date: Mon, 23 Sep 2019 15:21:20 -0400 Message-ID: <20190923192121.29814-3-a0271529@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190923192121.29814-1-a0271529@ti.com> References: <20190923192121.29814-1-a0271529@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: Hongmei Gou , d-senicic1@ti.com, Djordje Senicic Subject: [master/thud/ti2019.03 3/4] tiovx-app-host: TI OpenVX IPC HOST implementation and sample applications X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2019 19:24:18 -0000 Content-Type: text/plain * 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 00000000..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 00000000..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