ti-ipc-examples: Update with change of directory structure
PATCH 1/1 ti-ipc-examples: Update with change of directory structure
Separated Linux host examples into separate package ti-ipc-examples- linux and installed into /usr/bin directory.
Signed-off-by Sam Nelson <[email protected]>
--- recipes-ti/ipc/ti-ipc-common.inc | 2 +- recipes-ti/ipc/ti-ipc-examples_git.bb | 25 +++++++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-)
recipes-ti/ipc/ti-ipc-common.inc +1 -1
@@ -1,5 +1,5 @@ PV = "3.45.00.00" -INC_PR = "r0" +INC_PR = "r1" PACKAGE_ARCH = "${MACHINE_ARCH}"
recipes-ti/ipc/ti-ipc-examples_git.bb +17 -8
@@ -12,6 +12,11 @@ INSANE_SKIP_${PN} += "arch" ALLOW_EMPTY_${PN} = "1" +PACKAGES =+ "${PN}-linux" + +INSANE_SKIP_${PN}-linux += "arch" +ALLOW_EMPTY_${PN}-linux = "1" + IPC_INSTALL_DIR="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" do_compile() {
@@ -56,31 +61,35 @@ do_install() { cd ${S_ipc-examples}/src IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'` - install -d ${D}/ipc_${IPC_VERSION}/examples if [ "${PLATFORM}" != "UNKNOWN" ]; then + # Install directory for bios examples + install -d ${D}/ipc_${IPC_VERSION}/examples/bios + # Install directory for linux examples + install -d ${D}${bindir}/ipc/examples oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ - HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" + 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" + HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios" oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ - HOSTOS="linux" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" + HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" if [ ! -z ${ALT_PLATFORM} ]; then - oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ - HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" \ + oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ + HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/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" \ + HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios" \ PLATFORM="${ALT_PLATFORM}" oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ - HOSTOS="linux" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" \ + HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" \ PLATFORM="${ALT_PLATFORM}" fi fi } FILES_${PN} += "ipc_*" +FILES_${PN}-linux += "${bindir}/*"
Signature · 1 line
1.9.1
Quoted 2 lines · Sam Nelson
Separated Linux host examples into separate package ti-ipc-examples- linux and installed into
/usr/bindirectory.
Thanks. Do you need to pull this new package into the FS separately?
Quoted 85 lines
Signed-off-by Sam Nelson <[email protected]>--- recipes-ti/ipc/ti-ipc-common.inc | 2 +- recipes-ti/ipc/ti-ipc-examples_git.bb | 25 +++++++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-)recipes-ti/ipc/ti-ipc-common.inc +1
-1@@ -1,5 +1,5 @@ PV = "3.45.00.00" -INC_PR = "r0" +INC_PR = "r1" PACKAGE_ARCH = "${MACHINE_ARCH}"recipes-ti/ipc/ti-ipc-examples_git.bb +17
-8@@ -12,6 +12,11 @@ INSANE_SKIP_${PN} += "arch" ALLOW_EMPTY_${PN} = "1" +PACKAGES =+ "${PN}-linux" + +INSANE_SKIP_${PN}-linux += "arch" +ALLOW_EMPTY_${PN}-linux = "1" + IPC_INSTALL_DIR="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" do_compile() {@@ -56,31 +61,35 @@ do_install() { cd ${S_ipc-examples}/src IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'` - install -d ${D}/ipc_${IPC_VERSION}/examples if [ "${PLATFORM}" != "UNKNOWN" ]; then + # Install directory for bios examples + install -d ${D}/ipc_${IPC_VERSION}/examples/bios + # Install directory for linux examples + install -d ${D}${bindir}/ipc/examples oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ - HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" + 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" + HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios" oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ - HOSTOS="linux" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" + HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" if [ ! -z ${ALT_PLATFORM} ]; then - oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ - HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" \ + oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ + HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/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" \ + HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios" \ PLATFORM="${ALT_PLATFORM}" oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ - HOSTOS="linux" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" \ + HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" \ PLATFORM="${ALT_PLATFORM}" fi fi } FILES_${PN} += "ipc_*" +FILES_${PN}-linux += "${bindir}/*"Signature · 7 lines
1.9.1 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti