Maupin, Chase : ti-ipc: Consolidate IPC recipes with include file
Module: meta-ti Branch: master Commit: e36f2c3b78b5abffb36f1e82cf3dfe3953b0abba URL: http://arago-project.org/git/meta-ti.git?a=commit;h=e36f2c3b78b5abffb36f1e82cf3dfe3953b0abba
Author: Maupin, Chase <[email protected]> Date: Tue May 20 01:19:42 2014 +0000
ti-ipc: Consolidate IPC recipes with include file
* Update the 3.00.00 and 3.21.00.07 versions of ti-ipc to use a common ti-ipc.inc file which combines the configuration and installation steps for both to be common.
* Modify the tiiipclad-daemon.sh script to have a replacement variable so that it can be used for more than a single device.
* Move the tiipclad-daemon script to the ti-ipc directory with the rest of the files used by this recipe.
* Fix the permissions for the tiipclad-daemon script
Signed-off-by Chase Maupin <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
---
recipes-ti/ipc/ti-ipc.inc | 58 ++++++++++++++++++++
.../ipc/{files => ti-ipc}/tiipclad-daemon.sh | 2 +-
recipes-ti/ipc/ti-ipc_3.00.00.bb | 51 +----------------
recipes-ti/ipc/ti-ipc_3.21.00.07.bb | 31 +----------
4 files changed, 64 insertions(+), 78 deletions(-)recipes-ti/ipc/ti-ipc.inc new file +58 -0
@@ -0,0 +1,58 @@ +DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)" +HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC" + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=f2518e421e230f06fe6d449718d02edc" + +DEPENDS += "virtual/kernel" + +PR = "r1" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +PLATFORM = "UNKNOWN" +PLATFORM_omap5-evm = "OMAP54XX" +PLATFORM_dra7xx-evm = "DRA7XX" +PLATFORM_keystone = "TCI6638" + +DAEMON = "UNKNOWN" +DAEMON_omap5-evm = "lad_omap54xx_smp" +DAEMON_dra7xx-evm = "lad_dra7xx" +DAEMON_keystone = "lad_tci6638" + +inherit autotools pkgconfig update-rc.d + +SRC_URI = "git://git.ti.com/ipc/ipcdev.git;protocol=git \ + file://0002-ipc-Added-installation-prefix-feature-to-products.ma.patch \ + file://tiipclad-daemon.sh \ + " + +S = "${WORKDIR}/git" + +INITSCRIPT_NAME = "tiipclad-daemon.sh" +INITSCRIPT_PARAMS = "defaults 10" + +EXTRA_OEMAKE += "KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_INSTALL_DIR=${TOOLCHAIN_PATH} TOOLCHAIN_LONGNAME=${TOOLCHAIN_SYS} PLATFORM=${PLATFORM} PREFIX=${prefix}" + +do_configure() { + oe_runmake -f ${S}/ipc-linux.mak config +} + +do_install_append() { + install -d ${D}${sysconfdir}/init.d/ + + # Modify the tiipclad-daemon.sh script to point to the right + # lad daemon executable. + sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.sh + install -c -m 755 ${WORKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} +} + +PACKAGES =+ "${PN}-test" +RDEPENDS_${PN}-test += "${PN}" + +FILES_${PN}-test = " \ + ${bindir}/NameServerApp \ + ${bindir}/MessageQApp \ + ${bindir}/MessageQMulti \ + ${bindir}/ping_rpmsg" +
recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh renamed from recipes-ti/ipc/files/tiipclad-daemon.sh +1 -1
@@ -1,6 +1,6 @@ #! /bin/sh -tiipclad_daemon=/usr/bin/lad_tci6638 +tiipclad_daemon=/usr/bin/__LAD_DAEMON__ tiipclad_params=lad.txt test -x "$tiipclad_daemon" || exit 0
recipes-ti/ipc/ti-ipc_3.00.00.bb +3 -48
55 lines not on this page · raw message
recipes-ti/ipc/ti-ipc_3.21.00.07.bb +2 -29
@@ -1,31 +1,4 @@ -DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)" -HOMEPAGE = "https://git.ti.com/ipc/pages/Home" -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=f2518e421e230f06fe6d449718d02edc" - -DEPENDS += "virtual/kernel" - -PR = "r1" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -PLATFORM_omap5-evm = "OMAP54XX" -PLATFORM_dra7xx-evm = "DRA7XX" - -inherit autotools pkgconfig - -SRC_URI = "git://git.ti.com/ipc/ipcdev.git;protocol=git \ - file://0002-ipc-Added-installation-prefix-feature-to-products.ma.patch \ - " +require ti-ipc.inc +# This commit corresponds to 3.21.00.07 SRCREV = "c18fece0c9f0dc76361dc1ee11b7ee2417479847" - -S = "${WORKDIR}/git" - -FILESEXTRAPATHS_prepend := "${THISDIR}:" - -EXTRA_OEMAKE += "KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_INSTALL_DIR=${TOOLCHAIN_PATH} TOOLCHAIN_LONGNAME=${TOOLCHAIN_SYS} PLATFORM=${PLATFORM} PREFIX=${prefix}" - -do_configure() { - oe_runmake -f ${S}/ipc-linux.mak config -}