diff options
| author | Beleswar Padhi <b-padhi@ti.com> | 2025-08-19 15:53:48 +0530 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2025-08-21 09:21:06 -0500 |
| commit | 667145ff7ec641a06130729bb8ca1a0b8011ad96 (patch) | |
| tree | 98f9e2ef5e35ac183209c9ea0968bbe757e5ab7c /meta-ti-extras | |
| parent | cd2a61edf64076dd8f2e6887e3dd4f6ad66f9fa9 (diff) | |
| download | meta-ti-667145ff7ec641a06130729bb8ca1a0b8011ad96.tar.gz | |
ti-ipc-examples-linux: Add a recipe to build messageq app_host
Add a recipe to build the Application Host (for A15 core) to demonstrate
IPC with remote processors through messageq firmware. Also package this
in the /usr/bin directory for testing IPC. This recipe only builds the
app_host, and the firmwares are available in ti-linux-firmware
repository.
Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-extras')
| -rw-r--r-- | meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux_git.bb | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux_git.bb b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux_git.bb new file mode 100644 index 00000000..0b6c01fe --- /dev/null +++ b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux_git.bb | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | DESCRIPTION = "TI Inter Processor Communication (IPC) MessageQ Application for Linux Host" | ||
| 2 | |||
| 3 | require recipes-ti/ipc/ti-ipc-common.inc | ||
| 4 | require ti-ipc-rtos.inc | ||
| 5 | |||
| 6 | LICENSE = "BSD-3-Clause" | ||
| 7 | LIC_FILES_CHKSUM = "file://${S_ipc-examples}/src/makefile;beginline=1;endline=30;md5=a52324bd5033bb49ea07bade1244ac9a" | ||
| 8 | |||
| 9 | IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" | ||
| 10 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 11 | |||
| 12 | DEPENDS = "ti-ipc ti-ipc-rtos ti-xdctools-native zip-native" | ||
| 13 | |||
| 14 | EX02_PATH = "examples/DRA7XX_linux_elf/ex02_messageq/host" | ||
| 15 | |||
| 16 | do_compile() { | ||
| 17 | cd ${S_ipc-examples}/src | ||
| 18 | oe_runmake .examples \ | ||
| 19 | IPCTOOLS="${S_ipc-metadata}/src/etc" | ||
| 20 | |||
| 21 | for alt_platform in ${ALT_PLATFORM}; do | ||
| 22 | oe_runmake .examples "PLATFORM=${alt_platform}" \ | ||
| 23 | IPCTOOLS="${S_ipc-metadata}/src/etc" | ||
| 24 | done | ||
| 25 | |||
| 26 | if [ "${PLATFORM}" != "UNKNOWN" ]; then | ||
| 27 | oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" | ||
| 28 | |||
| 29 | if [ ! -z ${ALT_PLATFORM} ]; then | ||
| 30 | oe_runmake extract PLATFORM="${ALT_PLATFORM}" HOSTOS="linux" \ | ||
| 31 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" | ||
| 32 | fi | ||
| 33 | oe_runmake -C ${EX02_PATH} all HOSTOS="linux" \ | ||
| 34 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ | ||
| 35 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" | ||
| 36 | |||
| 37 | if [ ! -z ${ALT_PLATFORM} ]; then | ||
| 38 | oe_runmake -C ${EX02_PATH} all HOSTOS="linux" \ | ||
| 39 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ | ||
| 40 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | ||
| 41 | PLATFORM="${ALT_PLATFORM}" | ||
| 42 | fi | ||
| 43 | fi | ||
| 44 | } | ||
| 45 | |||
| 46 | do_install() { | ||
| 47 | cd ${S_ipc-examples}/src | ||
| 48 | |||
| 49 | if [ "${PLATFORM}" != "UNKNOWN" ]; then | ||
| 50 | # Install directory for linux examples | ||
| 51 | install -d ${D}${bindir}/ipc/examples/ex02_messageq | ||
| 52 | oe_runmake -C ${EX02_PATH} install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | ||
| 53 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ | ||
| 54 | HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples/ex02_messageq" | ||
| 55 | |||
| 56 | if [ ! -z ${ALT_PLATFORM} ]; then | ||
| 57 | oe_runmake -C ${EX02_PATH} install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | ||
| 58 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ | ||
| 59 | HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples/ex02_messageq" \ | ||
| 60 | PLATFORM="${ALT_PLATFORM}" | ||
| 61 | fi | ||
| 62 | fi | ||
| 63 | } | ||
| 64 | |||
| 65 | FILES:${PN} += "${bindir}/*" | ||
