Added new examples for AM571X

Signed-off-by: Sam Nelson <sam.nel...@ti.com>

---
Change from previous version
Update alt platform for am57xx-evm instead of dra7xx
---
---
 recipes-ti/ipc/ti-ipc-3.47.01.00.inc              |  4 --
 recipes-ti/ipc/ti-ipc-3.47.02.00.inc              |  4 ++
 recipes-ti/ipc/ti-ipc-examples-linux_git.bbappend |  4 +-
 recipes-ti/ipc/ti-ipc-examples_git.bbappend       | 57 ++++++++++++++++++-
 recipes-ti/ipc/ti-ipc-rtos-3.47.01.00.inc         |  7 ---
 recipes-ti/ipc/ti-ipc-rtos-3.47.02.00.inc         |  5 ++
 recipes-ti/ipc/ti-ipc-rtos_git.bbappend           | 67 ++++++++++++++++++++++-
 recipes-ti/ipc/ti-ipc_git.bbappend                |  2 +-
 8 files changed, 132 insertions(+), 18 deletions(-)
 delete mode 100644 recipes-ti/ipc/ti-ipc-3.47.01.00.inc
 create mode 100644 recipes-ti/ipc/ti-ipc-3.47.02.00.inc
 delete mode 100644 recipes-ti/ipc/ti-ipc-rtos-3.47.01.00.inc
 create mode 100644 recipes-ti/ipc/ti-ipc-rtos-3.47.02.00.inc

diff --git a/recipes-ti/ipc/ti-ipc-3.47.01.00.inc 
b/recipes-ti/ipc/ti-ipc-3.47.01.00.inc
deleted file mode 100644
index 02abfa6..0000000
--- a/recipes-ti/ipc/ti-ipc-3.47.01.00.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-PV = "3.47.01.00"
-
-#Corresponds to 3.47.01.00A
-TI_IPC_SRCREV = "6a2595a4148fb12f259efc19164a9d33ad2ed294"
diff --git a/recipes-ti/ipc/ti-ipc-3.47.02.00.inc 
b/recipes-ti/ipc/ti-ipc-3.47.02.00.inc
new file mode 100644
index 0000000..970f04b
--- /dev/null
+++ b/recipes-ti/ipc/ti-ipc-3.47.02.00.inc
@@ -0,0 +1,4 @@
+PV = "3.47.02.00"
+
+#Corresponds to 3.47.02.00
+TI_IPC_SRCREV = "24c36385d096613af123d1e1696fb2fee652ef36"
diff --git a/recipes-ti/ipc/ti-ipc-examples-linux_git.bbappend 
b/recipes-ti/ipc/ti-ipc-examples-linux_git.bbappend
index c0eac74..6d6a771 100644
--- a/recipes-ti/ipc/ti-ipc-examples-linux_git.bbappend
+++ b/recipes-ti/ipc/ti-ipc-examples-linux_git.bbappend
@@ -1,5 +1,5 @@
 PR_append = ".tisdk1"
 
-require ti-ipc-3.47.01.00.inc
+require ti-ipc-3.47.02.00.inc
 
-require ti-ipc-rtos-3.47.01.00.inc
+require ti-ipc-rtos-3.47.02.00.inc
diff --git a/recipes-ti/ipc/ti-ipc-examples_git.bbappend 
b/recipes-ti/ipc/ti-ipc-examples_git.bbappend
index c0eac74..4491a25 100644
--- a/recipes-ti/ipc/ti-ipc-examples_git.bbappend
+++ b/recipes-ti/ipc/ti-ipc-examples_git.bbappend
@@ -1,5 +1,58 @@
 PR_append = ".tisdk1"
 
-require ti-ipc-3.47.01.00.inc
+require ti-ipc-3.47.02.00.inc
+
+require ti-ipc-rtos-3.47.02.00.inc
+
+ALT_PLATFORM_am57xx-evm = "AM572X AM571X"
+
+do_compile() {
+
+  cd ${S_ipc-examples}/src
+  oe_runmake .examples \
+    IPCTOOLS="${S_ipc-metadata}/src/etc"
+
+  for alt_platform in ${ALT_PLATFORM}; do
+    oe_runmake .examples "PLATFORM=${alt_platform}" \
+      IPCTOOLS="${S_ipc-metadata}/src/etc"
+  done
+}
+
+do_compile_append() {
+
+  if [  "${PLATFORM}" != "UNKNOWN" ]; then
+    oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
+
+    for alt_platform in ${ALT_PLATFORM}; do
+      oe_runmake extract PLATFORM="${alt_platform}" HOSTOS="bios" \
+         IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
+    done
+    oe_runmake -C examples all HOSTOS="bios" \
+      IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
+    for alt_platform in ${ALT_PLATFORM}; do
+      oe_runmake -C examples all HOSTOS="bios" \
+        IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" PLATFORM="${alt_platform}"
+    done
+  fi
+}
+
+do_install_append() {
+  if [  "${PLATFORM}" != "UNKNOWN" ]; then
+    # Install directory for bios examples
+    install -d ${D}/ipc_${IPC_VERSION}/examples/bios
+    oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
+      HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios"
+    oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
+      HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios"
+
+    for alt_platform in ${ALT_PLATFORM}; do
+      oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
+        HOSTOS="bios" 
EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/${alt_platform}/bios" \
+        PLATFORM="${alt_platform}"
+      oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
+        HOSTOS="bios" 
EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/${alt_platform}/bios" \
+        PLATFORM="${alt_platform}"
+    done
+  fi
+}
 
-require ti-ipc-rtos-3.47.01.00.inc
diff --git a/recipes-ti/ipc/ti-ipc-rtos-3.47.01.00.inc 
b/recipes-ti/ipc/ti-ipc-rtos-3.47.01.00.inc
deleted file mode 100644
index d31773d..0000000
--- a/recipes-ti/ipc/ti-ipc-rtos-3.47.01.00.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-# Corresponds to tag: 3.47.01.00B
-SRCREV_ipc-examples = "03ff856444b5bb9e60a907125a1f042b29b25d7b"
-
-# Corresponds to tag: 3.47.01.00A
-SRCREV_ipc-metadata = "72578cce9c9f9a932eb22b3397b46131efb12d69"
-
-PR = "${INC_PR}.r5"
diff --git a/recipes-ti/ipc/ti-ipc-rtos-3.47.02.00.inc 
b/recipes-ti/ipc/ti-ipc-rtos-3.47.02.00.inc
new file mode 100644
index 0000000..84178e7
--- /dev/null
+++ b/recipes-ti/ipc/ti-ipc-rtos-3.47.02.00.inc
@@ -0,0 +1,5 @@
+# Corresponds to tag: 3.47.02.00
+SRCREV_ipc-metadata = "e8aff83111b8a0d64d7a77413b6f66d3106084d8"
+
+# Corresponds to tag: 3.47.02.00
+SRCREV_ipc-examples = "351e9a6d94c68f7ff64b2c002ee6750242ece6d9"
diff --git a/recipes-ti/ipc/ti-ipc-rtos_git.bbappend 
b/recipes-ti/ipc/ti-ipc-rtos_git.bbappend
index c0eac74..6290dcb 100644
--- a/recipes-ti/ipc/ti-ipc-rtos_git.bbappend
+++ b/recipes-ti/ipc/ti-ipc-rtos_git.bbappend
@@ -1,5 +1,68 @@
 PR_append = ".tisdk1"
 
-require ti-ipc-3.47.01.00.inc
+require ti-ipc-3.47.02.00.inc
 
-require ti-ipc-rtos-3.47.01.00.inc
+require ti-ipc-rtos-3.47.02.00.inc
+
+ALT_PLATFORM_am57xx-evm = "AM572X AM571X"
+
+require recipes-ti/includes/ti-paths-append.inc
+
+DEPENDS_append = " ti-eclipse-signit-native "
+
+do_compile() {
+  oe_runmake -f ipc-bios.mak clean
+  oe_runmake -f ipc-bios.mak release
+
+  cd ${S_ipc-metadata}
+  oe_runmake .all-files IPC_INSTALL_DIR="${S}" \
+    BUILD_HOST_OS="linux" \
+    RELEASE_TYPE="${RELEASE_TYPE}"
+
+  cd ${S_ipc-examples}/src
+  oe_runmake .examples \
+    IPCTOOLS="${S_ipc-metadata}/src/etc"
+  for alt_platform in ${ALT_PLATFORM}; do
+    oe_runmake .examples \
+      IPCTOOLS="${S_ipc-metadata}/src/etc" \
+      PLATFORM=${alt_platform}
+  done
+
+  if [  "${PLATFORM}" != "UNKNOWN" ]; then
+    oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${S}"
+    oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${S}"
+
+    for alt_platform in ${ALT_PLATFORM}; do
+      oe_runmake extract PLATFORM=${alt_platform} HOSTOS="bios" 
IPC_INSTALL_DIR="${S}"
+      oe_runmake extract PLATFORM=${alt_platform} HOSTOS="linux" 
IPC_INSTALL_DIR="${S}"
+    done
+  fi
+
+  IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
+  install -d ${IPC_PACKAGE_DIR}
+  # Copy docs and other meta files
+  cp -pPrf  ${S_ipc-metadata}/exports/ipc_${IPC_VERSION}/* -d 
${IPC_PACKAGE_DIR}
+
+  # Copy example folders corresponding to the platforms
+  if [  "${PLATFORM}" != "UNKNOWN" ]; then
+    install -d ${IPC_PACKAGE_DIR}/examples
+    cp -pPf ${S_ipc-examples}/src/examples/*.* ${IPC_PACKAGE_DIR}/examples/
+    cp -pPf ${S_ipc-examples}/src/examples/makefile 
${IPC_PACKAGE_DIR}/examples/
+    cp -pPrf ${S_ipc-examples}/src/examples/${PLATFORM}* 
${IPC_PACKAGE_DIR}/examples/
+    for alt_platform in ${ALT_PLATFORM}; do
+      cp -pPrf ${S_ipc-examples}/src/examples/${alt_platform}* 
${IPC_PACKAGE_DIR}/examples/
+    done
+    find ${IPC_PACKAGE_DIR}/examples/ -name "*zip" -type f | xargs -I {} rm {}
+  fi
+}
+
+do_install_append() {
+    # Sign the eclipse plugins
+    cd ${TI_ECLIPSE_SIGNIT_INSTALL_DIR}
+    for dir_name in ${D}${IPC_INSTALL_DIR_RECIPE}/eclipse/features/*; do
+        PATH=${JDK_INSTALL_DIR}/bin:$PATH bash -e ./signit "${dir_name}"
+    done
+    for dir_name in ${D}${IPC_INSTALL_DIR_RECIPE}/eclipse/plugins/*; do
+        PATH=${JDK_INSTALL_DIR}/bin:$PATH bash -e ./signit "${dir_name}"
+    done
+}
diff --git a/recipes-ti/ipc/ti-ipc_git.bbappend 
b/recipes-ti/ipc/ti-ipc_git.bbappend
index 96b3c2d..3451b19 100644
--- a/recipes-ti/ipc/ti-ipc_git.bbappend
+++ b/recipes-ti/ipc/ti-ipc_git.bbappend
@@ -1,3 +1,3 @@
 PR_append = ".tisdk0"
 
-require ti-ipc-3.47.01.00.inc
+require ti-ipc-3.47.02.00.inc
-- 
1.9.1

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

Reply via email to