From 5b80bfd7bffd4c20d80b7c70a7130529e9a755dd Mon Sep 17 00:00:00 2001 From: ToshikazuOhiwa Date: Mon, 30 Mar 2020 09:24:26 +0900 Subject: agl-basesystem --- .../recipes-ti/ipc/ti-ipc-examples-linux_git.bb | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 bsp/meta-ti/recipes-ti/ipc/ti-ipc-examples-linux_git.bb (limited to 'bsp/meta-ti/recipes-ti/ipc/ti-ipc-examples-linux_git.bb') diff --git a/bsp/meta-ti/recipes-ti/ipc/ti-ipc-examples-linux_git.bb b/bsp/meta-ti/recipes-ti/ipc/ti-ipc-examples-linux_git.bb new file mode 100644 index 00000000..471d7ff2 --- /dev/null +++ b/bsp/meta-ti/recipes-ti/ipc/ti-ipc-examples-linux_git.bb @@ -0,0 +1,47 @@ +DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running bios" +require ti-ipc-examples.inc + +DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native" + +do_compile_append() { + + if [ "${PLATFORM}" != "UNKNOWN" ]; then + oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" + + if [ ! -z ${ALT_PLATFORM} ]; then + oe_runmake extract PLATFORM="${ALT_PLATFORM}" HOSTOS="linux" \ + IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" + fi + oe_runmake -C examples all HOSTOS="linux" \ + LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ + IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" + + if [ ! -z ${ALT_PLATFORM} ]; then + oe_runmake -C examples all HOSTOS="linux" \ + LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ + IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ + PLATFORM="${ALT_PLATFORM}" + fi + fi +} + +do_install_append() { + cd ${S_ipc-examples}/src + + if [ "${PLATFORM}" != "UNKNOWN" ]; then + # Install directory for linux examples + install -d ${D}${bindir}/ipc/examples + oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ + LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ + HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" + + if [ ! -z ${ALT_PLATFORM} ]; then + oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ + LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ + HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" \ + PLATFORM="${ALT_PLATFORM}" + fi + fi +} + +FILES_${PN} += "${bindir}/*" -- cgit 1.2.3-korg