summaryrefslogtreecommitdiffstats
path: root/recipes-ti/ipc/ti-ipc.inc
diff options
context:
space:
mode:
authorMaupin, Chase <chase.maupin@ti.com>2014-05-20 01:19:42 +0000
committerDenys Dmytriyenko <denys@ti.com>2014-05-21 15:37:35 -0400
commite36f2c3b78b5abffb36f1e82cf3dfe3953b0abba (patch)
treeedea756f08cfa89f26fc48cef70ed22eff59e6ff /recipes-ti/ipc/ti-ipc.inc
parentd0b2529bb53ed19059c17969a26f281c1f69958f (diff)
downloadmeta-ti-e36f2c3b78b5abffb36f1e82cf3dfe3953b0abba.tar.gz
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 <Chase.Maupin@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-ti/ipc/ti-ipc.inc')
-rw-r--r--recipes-ti/ipc/ti-ipc.inc58
1 files changed, 58 insertions, 0 deletions
diff --git a/recipes-ti/ipc/ti-ipc.inc b/recipes-ti/ipc/ti-ipc.inc
new file mode 100644
index 00000000..ee9fefff
--- /dev/null
+++ b/recipes-ti/ipc/ti-ipc.inc
@@ -0,0 +1,58 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)"
2HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC"
3
4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=f2518e421e230f06fe6d449718d02edc"
6
7DEPENDS += "virtual/kernel"
8
9PR = "r1"
10
11PACKAGE_ARCH = "${MACHINE_ARCH}"
12
13PLATFORM = "UNKNOWN"
14PLATFORM_omap5-evm = "OMAP54XX"
15PLATFORM_dra7xx-evm = "DRA7XX"
16PLATFORM_keystone = "TCI6638"
17
18DAEMON = "UNKNOWN"
19DAEMON_omap5-evm = "lad_omap54xx_smp"
20DAEMON_dra7xx-evm = "lad_dra7xx"
21DAEMON_keystone = "lad_tci6638"
22
23inherit autotools pkgconfig update-rc.d
24
25SRC_URI = "git://git.ti.com/ipc/ipcdev.git;protocol=git \
26 file://0002-ipc-Added-installation-prefix-feature-to-products.ma.patch \
27 file://tiipclad-daemon.sh \
28 "
29
30S = "${WORKDIR}/git"
31
32INITSCRIPT_NAME = "tiipclad-daemon.sh"
33INITSCRIPT_PARAMS = "defaults 10"
34
35EXTRA_OEMAKE += "KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_INSTALL_DIR=${TOOLCHAIN_PATH} TOOLCHAIN_LONGNAME=${TOOLCHAIN_SYS} PLATFORM=${PLATFORM} PREFIX=${prefix}"
36
37do_configure() {
38 oe_runmake -f ${S}/ipc-linux.mak config
39}
40
41do_install_append() {
42 install -d ${D}${sysconfdir}/init.d/
43
44 # Modify the tiipclad-daemon.sh script to point to the right
45 # lad daemon executable.
46 sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.sh
47 install -c -m 755 ${WORKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
48}
49
50PACKAGES =+ "${PN}-test"
51RDEPENDS_${PN}-test += "${PN}"
52
53FILES_${PN}-test = " \
54 ${bindir}/NameServerApp \
55 ${bindir}/MessageQApp \
56 ${bindir}/MessageQMulti \
57 ${bindir}/ping_rpmsg"
58