Skip to contentSkip to conversation

big-data-ipc-demo: Add ipc examples for big data buffer exchange

PATCH In review Sam Nelson 2 participants 7 messages Jun 26, 2017

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH v3 1/2 big-data-ipc-demo: Add ipc examples for big data buffer exchange

Adds example with host running linux
Demonstrates transfer of Big data buffers between A15 host and DSP core

---
Change from previous version of patch
- Expand to am57xx-evm to omap-a15
- Remove ti-staging.inc
---

---
 .../big-data-ipc-demo-linux_git.bb                 | 41 ++++++++++++++++++++++
 .../big-data-ipc-demo/big-data-ipc-demo.inc        | 39 ++++++++++++++++++++
 2 files changed, 80 insertions(+)
 create mode 100644 meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo-linux_git.bb
 create mode 100644 meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo.inc
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo-linux_git.bb new file +41 -0
new file mode 100644
index 0000000..0734177
@@ -0,0 +1,41 @@
+SUMMARY = "TI Big data IPC: Host linux examples"
+
+require recipes-ti/includes/ti-paths.inc
+require big-data-ipc-demo.inc
+
+DEPENDS = "ti-ipc \
+           ti-xdctools \
+           ti-sysbios \
+           ti-ipc-rtos \
+           cmem \
+"
+
+EXTRA_OEMAKE = "\
+    PLATFORM=${PLATFORM} \
+    XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
+    BIOS_INSTALL_DIR="${SYSBIOS_INSTALL_DIR}" \
+    IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
+    LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
+    ${IPC_TARGETS} \
+    JOBS="${PARALLEL_MAKE}" \
+"
+
+do_create_srcipk_prepend() {
+  rm -rf host_bios
+}
+
+do_compile() {
+  if [  "${PLATFORM}" != "UNKNOWN" ]; then
+      oe_runmake host_linux
+  fi
+}
+
+do_install() {
+  if [  "${PLATFORM}" != "UNKNOWN" ]; then
+    oe_runmake EXEC_DIR="${D}${bindir}" install_linux_bin
+  fi
+}
+
+PACKAGES =+ "${PN}-firmware"
+FILES_${PN}-firmware += "${bindir}/simple_buffer_example/release/server_dsp.xe66"
+INSANE_SKIP_${PN}-firmware += "arch"
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo.inc new file +39 -0
new file mode 100644
index 0000000..c3f8f38
@@ -0,0 +1,39 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://makefile;beginline=1;endline=31;md5=2f2ea348b98d5cc7807ece7adcc2c43a"
+
+COMPATIBLE_MACHINE = "omap-a15|keystone"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+BIG_DATA_IPC_GIT_URI = "git://git.ti.com/processor-sdk/big-data-ipc-examples.git"
+BIG_DATA_IPC_GIT_PROTOCOL = "git"
+BIG_DATA_IPC_GIT_BRANCH = "master"
+
+# Below commit ID corresponds to "DEV.BIG_DATA_IPC.01.01.00.00"
+BIG_DATA_IPC_SRCREV = "5907bff5a29fe2ba8719ae8c3c5d62b20b7b6bc9"
+
+BRANCH = "${BIG_DATA_IPC_GIT_BRANCH}"
+SRC_URI = "${BIG_DATA_IPC_GIT_URI};protocol=${BIG_DATA_IPC_GIT_PROTOCOL};branch=${BRANCH}"
+
+SRCREV = "${BIG_DATA_IPC_SRCREV}"
+PV = "01.01.00.00"
+
+S = "${WORKDIR}/git"
+
+PLATFORM = "UNKNOWN"
+PLATFORM_omap-a15 = "DRA7XX"
+PLATFORM_k2hk-evm = "TCI6636"
+PLATFORM_k2l-evm = "TCI6630"
+PLATFORM_k2e = "66AK2E"
+PLATFORM_k2g = "66AK2G"
+
+IPC_TARGETS = ""
+IPC_TARGETS_omap-a15 = "\
+    gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
+    ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
+    ti.targets.arm.elf.M4="${M4_TOOLCHAIN_INSTALL_DIR}" \
+"
+
+IPC_TARGETS_keystone = " \
+    gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
+    ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
+"
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH v3 2/2 arago-tisdk-addons: Add big-data-ipc-demo for host linux

---
 .../recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb  | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +5 -2
index c623b37..360890b 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to install additional utilities/demos for SDKs"
 LICENSE = "MIT"
-PR = "r60"
+PR = "r61"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -119,7 +119,10 @@ EXTRA_PACKAGES_omapl138 = " \
 
 EXTRA_PACKAGES_append_ti33x = " voxelsdk"
 EXTRA_PACKAGES_append_ti43x = " voxelsdk"
-EXTRA_PACKAGES_append_omap-a15 = " voxelsdk"
+EXTRA_PACKAGES_append_omap-a15 = " voxelsdk \
+                                   big-data-ipc-demo-linux \
+                                   big-data-ipc-demo-linux-firmware \
+"
 
 EXTRA_PACKAGES_append_omap-a15 = " ti-ipc-examples-linux"
 EXTRA_PACKAGES_append_keystone = " ti-ipc-examples-linux"
Signature · 1 line
1.9.1
#2 lore raw

Re: [morty/master][PATCH v3 2/2] arago-tisdk-addons: Add big-data-ipc-demo for host linux

Quoted 18 lines · Sam Nelson
---
 .../recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb  | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +1 -1
index c623b37..360890b 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to install additional utilities/demos for SDKs"
 LICENSE = "MIT"
-PR = "r60"
+PR = "r61"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 

meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb EXTRA_PACKAGES_omapl138 = " \ · line 125

Quoted 8 lines
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +4 -1
@@ -119,7 +119,10 @@ EXTRA_PACKAGES_omapl138 = " \
 
 EXTRA_PACKAGES_append_ti33x = " voxelsdk"
 EXTRA_PACKAGES_append_ti43x = " voxelsdk"
-EXTRA_PACKAGES_append_omap-a15 = " voxelsdk"
+EXTRA_PACKAGES_append_omap-a15 = " voxelsdk \
+                                   big-data-ipc-demo-linux \
+                                   big-data-ipc-demo-linux-firmware \
+"

I only see you are adding it for omap-a15, but not keystone - on purpose?

Quoted 9 lines
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +0 -0
 EXTRA_PACKAGES_append_omap-a15 = " ti-ipc-examples-linux"
 EXTRA_PACKAGES_append_keystone = " ti-ipc-examples-linux"
Signature · 6 lines
1.9.1

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

Re: [morty/master][PATCH v3 2/2] arago-tisdk-addons: Add big-data-ipc-demo for host linux

Quoted 38 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, June 26, 2017 2:47 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [morty/master][PATCH v3 2/2] arago-tisdk-addons:
Add big-data-ipc-demo for host linux

Quoted 27 lines · Sam Nelson

---
.../recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb |
7 +++++--

 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisd k-addons.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisd k-addons.bb
index c623b37..360890b 100644
---
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisd k-addons.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago- +++ tisdk-addons.bb

meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +1 -1
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to install additional utilities/demos for SDKs"
 LICENSE = "MIT"
-PR = "r60"
+PR = "r61"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -119,7 +119,10 @@ EXTRA_PACKAGES_omapl138 = " \
 
Quoted 9 lines

meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb EXTRA_PACKAGES_omapl138 = " \ · line 125

Quoted 7 lines
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +4 -1
 EXTRA_PACKAGES_append_ti33x = " voxelsdk"
 EXTRA_PACKAGES_append_ti43x = " voxelsdk"
-EXTRA_PACKAGES_append_omap-a15 = " voxelsdk"
+EXTRA_PACKAGES_append_omap-a15 = " voxelsdk \
+                                   big-data-ipc-demo-linux \
+                                   big-data-ipc-demo-linux-firmware \
+"

I only see you are adding it for omap-a15, but not keystone - on purpose?

Yes. Currently the support is only for omap-a15. Keystone will be added soon.

Quoted 11 lines
Quoted 11 lines
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +0 -1
 EXTRA_PACKAGES_append_omap-a15 = " ti-ipc-examples-linux"
 EXTRA_PACKAGES_append_keystone = " ti-ipc-examples-linux"
--

1.9.1

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

#4 lore raw
In reply to Sam Nelson

Thanks, Sam, looks reasonable.

Few non-critical comments - let me know if you want to fix them and re-submit, or I can merge as is and if needed, address them later as a follow up.

Quoted 44 lines · Sam Nelson

Adds example with host running linux
Demonstrates transfer of Big data buffers between A15 host and DSP core

---
Change from previous version of patch
- Expand to am57xx-evm to omap-a15
- Remove ti-staging.inc
---

---
 .../big-data-ipc-demo-linux_git.bb                 | 41 ++++++++++++++++++++++
 .../big-data-ipc-demo/big-data-ipc-demo.inc        | 39 ++++++++++++++++++++
 2 files changed, 80 insertions(+)
 create mode 100644 meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo-linux_git.bb
 create mode 100644 meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo.inc
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo-linux_git.bb new file +21 -0
new file mode 100644
index 0000000..0734177
@@ -0,0 +1,41 @@
+SUMMARY = "TI Big data IPC: Host linux examples"
+
+require recipes-ti/includes/ti-paths.inc
+require big-data-ipc-demo.inc
+
+DEPENDS = "ti-ipc \
+           ti-xdctools \
+           ti-sysbios \
+           ti-ipc-rtos \
+           cmem \
+"
+
+EXTRA_OEMAKE = "\
+    PLATFORM=${PLATFORM} \
+    XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
+    BIOS_INSTALL_DIR="${SYSBIOS_INSTALL_DIR}" \
+    IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
+    LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
+    ${IPC_TARGETS} \
+    JOBS="${PARALLEL_MAKE}" \
+"

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo-linux_git.bb line 31

Quoted 10 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo-linux_git.bb new file +10 -0
+
+do_create_srcipk_prepend() {
+  rm -rf host_bios
+}
+
+do_compile() {
+  if [  "${PLATFORM}" != "UNKNOWN" ]; then
+      oe_runmake host_linux
+  fi
+}

I don't think checking PLATFORM above and below is necessary - you set strict COMPATIBLE_MACHINE filter and set all possible variants of PLATFORM var below. Even if something is not defined, let if fail with UNKNOWN setting, instead of succeeding and not building anything...

Quoted 23 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo-linux_git.bb new file +9 -0
+do_install() {
+  if [  "${PLATFORM}" != "UNKNOWN" ]; then
+    oe_runmake EXEC_DIR="${D}${bindir}" install_linux_bin
+  fi
+}
+
+PACKAGES =+ "${PN}-firmware"
+FILES_${PN}-firmware += "${bindir}/simple_buffer_example/release/server_dsp.xe66"
+INSANE_SKIP_${PN}-firmware += "arch"
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo.inc new file +8 -0
new file mode 100644
index 0000000..c3f8f38
@@ -0,0 +1,39 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://makefile;beginline=1;endline=31;md5=2f2ea348b98d5cc7807ece7adcc2c43a"
+
+COMPATIBLE_MACHINE = "omap-a15|keystone"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+BIG_DATA_IPC_GIT_URI = "git://git.ti.com/processor-sdk/big-data-ipc-examples.git"
+BIG_DATA_IPC_GIT_PROTOCOL = "git"

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo.inc line 18

Quoted 10 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo.inc new file +10 -0
+BIG_DATA_IPC_GIT_BRANCH = "master"
+
+# Below commit ID corresponds to "DEV.BIG_DATA_IPC.01.01.00.00"
+BIG_DATA_IPC_SRCREV = "5907bff5a29fe2ba8719ae8c3c5d62b20b7b6bc9"
+
+BRANCH = "${BIG_DATA_IPC_GIT_BRANCH}"
+SRC_URI = "${BIG_DATA_IPC_GIT_URI};protocol=${BIG_DATA_IPC_GIT_PROTOCOL};branch=${BRANCH}"
+
+SRCREV = "${BIG_DATA_IPC_SRCREV}"
+PV = "01.01.00.00"

Kind of strange split - usually common pieces are in .inc and version-specific are in .bb file. Here you set SRCREV and PV in .inc file... Any reason?

Quoted 27 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-demo.inc new file +20 -0
+S = "${WORKDIR}/git"
+
+PLATFORM = "UNKNOWN"
+PLATFORM_omap-a15 = "DRA7XX"
+PLATFORM_k2hk-evm = "TCI6636"
+PLATFORM_k2l-evm = "TCI6630"
+PLATFORM_k2e = "66AK2E"
+PLATFORM_k2g = "66AK2G"
+
+IPC_TARGETS = ""
+IPC_TARGETS_omap-a15 = "\
+    gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
+    ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
+    ti.targets.arm.elf.M4="${M4_TOOLCHAIN_INSTALL_DIR}" \
+"
+
+IPC_TARGETS_keystone = " \
+    gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
+    ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
+"
Signature · 6 lines
1.9.1

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

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, June 26, 2017 2:47 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [morty/master][PATCH v3 1/2] big-data-ipc-demo:
Add ipc examples for big data buffer exchange

Thanks, Sam, looks reasonable.

Few non-critical comments - let me know if you want to fix them and re- submit, or I can merge as is and if needed, address them later as a follow up.

Quoted 5 lines · Sam Nelson

Adds example with host running linux
Demonstrates transfer of Big data buffers between A15 host and DSP core

Quoted 7 lines

---
Change from previous version of patch
- Expand to am57xx-evm to omap-a15
- Remove ti-staging.inc
---

---
 .../big-data-ipc-demo-linux_git.bb                 | 41

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

Quoted 1 line
 .../big-data-ipc-demo/big-data-ipc-demo.inc        | 39

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

Quoted 2 lines
 2 files changed, 80 insertions(+)
 create mode 100644 meta-arago-extras/recipes-apps/big-data-ipc-

demo/big-data-ipc-demo-linux_git.bb

Quoted 1 line
 create mode 100644 meta-arago-extras/recipes-apps/big-data-ipc-

demo/big-data-ipc-demo.inc

Review

Quoted 2 lines
(quoted diff) +0 -0

demo-linux_git.bb b/meta-arago-extras/recipes-apps/big-data-ipc-demo/big- data-ipc-demo-linux_git.bb

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-

Quoted 4 lines

new file mode 100644
index 0000000..0734177

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +0 -0

demo-linux_git.bb

Quoted 30 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +29 -0
@@ -0,0 +1,41 @@
+SUMMARY = "TI Big data IPC: Host linux examples"
+
+require recipes-ti/includes/ti-paths.inc
+require big-data-ipc-demo.inc
+
+DEPENDS = "ti-ipc \
+           ti-xdctools \
+           ti-sysbios \
+           ti-ipc-rtos \
+           cmem \
+"
+
+EXTRA_OEMAKE = "\
+    PLATFORM=${PLATFORM} \
+    XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
+    BIOS_INSTALL_DIR="${SYSBIOS_INSTALL_DIR}" \
+    IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
+    LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
+    ${IPC_TARGETS} \
+    JOBS="${PARALLEL_MAKE}" \
+"
+
+do_create_srcipk_prepend() {
+  rm -rf host_bios
+}
+
+do_compile() {
+  if [  "${PLATFORM}" != "UNKNOWN" ]; then
+      oe_runmake host_linux
Quoted 9 lines

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 31

Quoted 2 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +2 -0
+  fi
+}

I don't think checking PLATFORM above and below is necessary - you set strict COMPATIBLE_MACHINE filter and set all possible variants of PLATFORM var below.
Even if something is not defined, let if fail with UNKNOWN setting, instead of succeeding and not building anything...

Ok. I can remote PLATFORM check and handle using COMPATIBLE MACHINE. I will send updated patch.

Quoted 41 lines

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 39

Quoted 9 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +8 -0
+do_install() {
+  if [  "${PLATFORM}" != "UNKNOWN" ]; then
+    oe_runmake EXEC_DIR="${D}${bindir}" install_linux_bin
+  fi
+}
+
+PACKAGES =+ "${PN}-firmware"
+FILES_${PN}-firmware +=

"${bindir}/simple_buffer_example/release/server_dsp.xe66"

Review

Quoted 2 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +1 -0
+INSANE_SKIP_${PN}-firmware += "arch"
(quoted diff) +0 -0

demo.inc b/meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- demo.inc

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-

Quoted 4 lines

new file mode 100644
index 0000000..c3f8f38

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +0 -0

demo.inc

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 2

Quoted 3 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +2 -0
@@ -0,0 +1,39 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://makefile;beginline=1;endline=31;md5=2f2ea348b98d5cc7807ece7ad cc2c43a"

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 7

Quoted 5 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +5 -0
+
+COMPATIBLE_MACHINE = "omap-a15|keystone"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+BIG_DATA_IPC_GIT_URI = "git://git.ti.com/processor-sdk/big-data-ipc-

examples.git"

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 12

Quoted 5 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +5 -0
+BIG_DATA_IPC_GIT_PROTOCOL = "git"
+BIG_DATA_IPC_GIT_BRANCH = "master"
+
+# Below commit ID corresponds to "DEV.BIG_DATA_IPC.01.01.00.00"
+BIG_DATA_IPC_SRCREV =

"5907bff5a29fe2ba8719ae8c3c5d62b20b7b6bc9"

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 15

Quoted 3 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +3 -0
+
+BRANCH = "${BIG_DATA_IPC_GIT_BRANCH}"
+SRC_URI =

"${BIG_DATA_IPC_GIT_URI};protocol=${BIG_DATA_IPC_GIT_PROTOCOL};bran ch=${BRANCH}"

Quoted 6 lines

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 18

Quoted 3 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +3 -0
+
+SRCREV = "${BIG_DATA_IPC_SRCREV}"
+PV = "01.01.00.00"

Kind of strange split - usually common pieces are in .inc and version-specific are in .bb file. Here you set SRCREV and PV in .inc file... Any reason?

This is in anticipation of a big-data-ipc-demo-bios package from same git repo coming up soon. (Waiting for some dependencies to be upstream first)

Quoted 29 lines
Quoted 29 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +20 -1
+S = "${WORKDIR}/git"
+
+PLATFORM = "UNKNOWN"
+PLATFORM_omap-a15 = "DRA7XX"
+PLATFORM_k2hk-evm = "TCI6636"
+PLATFORM_k2l-evm = "TCI6630"
+PLATFORM_k2e = "66AK2E"
+PLATFORM_k2g = "66AK2G"
+
+IPC_TARGETS = ""
+IPC_TARGETS_omap-a15 = "\
+    gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
+    ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
+    ti.targets.arm.elf.M4="${M4_TOOLCHAIN_INSTALL_DIR}" \
+"
+
+IPC_TARGETS_keystone = " \
+    gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
+    ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
+"
--

1.9.1

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

#6 lore raw
Quoted 86 lines · Sam
Quoted 76 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, June 26, 2017 2:47 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [morty/master][PATCH v3 1/2] big-data-ipc-demo:
Add ipc examples for big data buffer exchange

Thanks, Sam, looks reasonable.

Few non-critical comments - let me know if you want to fix them and re- submit, or I can merge as is and if needed, address them later as a follow up.

Quoted 5 lines · Sam Nelson

Adds example with host running linux
Demonstrates transfer of Big data buffers between A15 host and DSP core

Quoted 7 lines

---
Change from previous version of patch
- Expand to am57xx-evm to omap-a15
- Remove ti-staging.inc
---

---
 .../big-data-ipc-demo-linux_git.bb                 | 41

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

Quoted 1 line
 .../big-data-ipc-demo/big-data-ipc-demo.inc        | 39

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

Quoted 2 lines
 2 files changed, 80 insertions(+)
 create mode 100644 meta-arago-extras/recipes-apps/big-data-ipc-

demo/big-data-ipc-demo-linux_git.bb

Quoted 1 line
 create mode 100644 meta-arago-extras/recipes-apps/big-data-ipc-

demo/big-data-ipc-demo.inc

Review

Quoted 2 lines
(quoted diff) +0 -0

demo-linux_git.bb b/meta-arago-extras/recipes-apps/big-data-ipc-demo/big- data-ipc-demo-linux_git.bb

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-

Quoted 4 lines

new file mode 100644
index 0000000..0734177

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +0 -0

demo-linux_git.bb

Quoted 30 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +29 -0
@@ -0,0 +1,41 @@
+SUMMARY = "TI Big data IPC: Host linux examples"
+
+require recipes-ti/includes/ti-paths.inc
+require big-data-ipc-demo.inc
+
+DEPENDS = "ti-ipc \
+           ti-xdctools \
+           ti-sysbios \
+           ti-ipc-rtos \
+           cmem \
+"
+
+EXTRA_OEMAKE = "\
+    PLATFORM=${PLATFORM} \
+    XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
+    BIOS_INSTALL_DIR="${SYSBIOS_INSTALL_DIR}" \
+    IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
+    LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
+    ${IPC_TARGETS} \
+    JOBS="${PARALLEL_MAKE}" \
+"
+
+do_create_srcipk_prepend() {
+  rm -rf host_bios
+}
+
+do_compile() {
+  if [  "${PLATFORM}" != "UNKNOWN" ]; then
+      oe_runmake host_linux
Quoted 9 lines

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 31

Quoted 2 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +2 -0
+  fi
+}

I don't think checking PLATFORM above and below is necessary - you set strict COMPATIBLE_MACHINE filter and set all possible variants of PLATFORM var below.
Even if something is not defined, let if fail with UNKNOWN setting, instead of succeeding and not building anything...

Quoted 2 lines

Ok. I can remote PLATFORM check and handle using COMPATIBLE MACHINE. I will send updated patch.

Thanks, Sam. I'm currently queueing up patches for morty-next I'm about to start, so since this is the only minor thing needing change, I'll merge it as is and you can update do_compile() and do_install() here later, when you follow up with bios/keystone updates.

Quoted 79 lines
Quoted 40 lines

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 39

Quoted 8 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +8 -0
+do_install() {
+  if [  "${PLATFORM}" != "UNKNOWN" ]; then
+    oe_runmake EXEC_DIR="${D}${bindir}" install_linux_bin
+  fi
+}
+
+PACKAGES =+ "${PN}-firmware"
+FILES_${PN}-firmware +=

"${bindir}/simple_buffer_example/release/server_dsp.xe66"

Review

Quoted 2 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +1 -0
+INSANE_SKIP_${PN}-firmware += "arch"
(quoted diff) +0 -0

demo.inc b/meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- demo.inc

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc-

Quoted 4 lines

new file mode 100644
index 0000000..c3f8f38

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +0 -0

demo.inc

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 2

Quoted 3 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +2 -0
@@ -0,0 +1,39 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://makefile;beginline=1;endline=31;md5=2f2ea348b98d5cc7807ece7ad cc2c43a"

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 7

Quoted 5 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +5 -0
+
+COMPATIBLE_MACHINE = "omap-a15|keystone"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+BIG_DATA_IPC_GIT_URI = "git://git.ti.com/processor-sdk/big-data-ipc-

examples.git"

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 12

Quoted 5 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +5 -0
+BIG_DATA_IPC_GIT_PROTOCOL = "git"
+BIG_DATA_IPC_GIT_BRANCH = "master"
+
+# Below commit ID corresponds to "DEV.BIG_DATA_IPC.01.01.00.00"
+BIG_DATA_IPC_SRCREV =

"5907bff5a29fe2ba8719ae8c3c5d62b20b7b6bc9"

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 15

Quoted 3 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +3 -0
+
+BRANCH = "${BIG_DATA_IPC_GIT_BRANCH}"
+SRC_URI =

"${BIG_DATA_IPC_GIT_URI};protocol=${BIG_DATA_IPC_GIT_PROTOCOL};bran ch=${BRANCH}"

Quoted 6 lines

meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- line 18

Quoted 3 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +3 -0
+
+SRCREV = "${BIG_DATA_IPC_SRCREV}"
+PV = "01.01.00.00"

Kind of strange split - usually common pieces are in .inc and version-specific are in .bb file. Here you set SRCREV and PV in .inc file... Any reason?

This is in anticipation of a big-data-ipc-demo-bios package from same git repo coming up soon. (Waiting for some dependencies to be upstream first)

Quoted 29 lines
Quoted 29 lines
meta-arago-extras/recipes-apps/big-data-ipc-demo/big-data-ipc- new file +20 -1
+S = "${WORKDIR}/git"
+
+PLATFORM = "UNKNOWN"
+PLATFORM_omap-a15 = "DRA7XX"
+PLATFORM_k2hk-evm = "TCI6636"
+PLATFORM_k2l-evm = "TCI6630"
+PLATFORM_k2e = "66AK2E"
+PLATFORM_k2g = "66AK2G"
+
+IPC_TARGETS = ""
+IPC_TARGETS_omap-a15 = "\
+    gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
+    ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
+    ti.targets.arm.elf.M4="${M4_TOOLCHAIN_INSTALL_DIR}" \
+"
+
+IPC_TARGETS_keystone = " \
+    gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
+    ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
+"
--

1.9.1

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