diff options
author | Maupin, Chase <chase.maupin@ti.com> | 2014-05-20 01:19:42 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2014-05-21 15:37:35 -0400 |
commit | e36f2c3b78b5abffb36f1e82cf3dfe3953b0abba (patch) | |
tree | edea756f08cfa89f26fc48cef70ed22eff59e6ff /recipes-ti/ipc/ti-ipc.inc | |
parent | d0b2529bb53ed19059c17969a26f281c1f69958f (diff) | |
download | meta-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.inc | 58 |
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 @@ | |||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)" | ||
2 | HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC" | ||
3 | |||
4 | LICENSE = "BSD" | ||
5 | LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=f2518e421e230f06fe6d449718d02edc" | ||
6 | |||
7 | DEPENDS += "virtual/kernel" | ||
8 | |||
9 | PR = "r1" | ||
10 | |||
11 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
12 | |||
13 | PLATFORM = "UNKNOWN" | ||
14 | PLATFORM_omap5-evm = "OMAP54XX" | ||
15 | PLATFORM_dra7xx-evm = "DRA7XX" | ||
16 | PLATFORM_keystone = "TCI6638" | ||
17 | |||
18 | DAEMON = "UNKNOWN" | ||
19 | DAEMON_omap5-evm = "lad_omap54xx_smp" | ||
20 | DAEMON_dra7xx-evm = "lad_dra7xx" | ||
21 | DAEMON_keystone = "lad_tci6638" | ||
22 | |||
23 | inherit autotools pkgconfig update-rc.d | ||
24 | |||
25 | SRC_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 | |||
30 | S = "${WORKDIR}/git" | ||
31 | |||
32 | INITSCRIPT_NAME = "tiipclad-daemon.sh" | ||
33 | INITSCRIPT_PARAMS = "defaults 10" | ||
34 | |||
35 | EXTRA_OEMAKE += "KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_INSTALL_DIR=${TOOLCHAIN_PATH} TOOLCHAIN_LONGNAME=${TOOLCHAIN_SYS} PLATFORM=${PLATFORM} PREFIX=${prefix}" | ||
36 | |||
37 | do_configure() { | ||
38 | oe_runmake -f ${S}/ipc-linux.mak config | ||
39 | } | ||
40 | |||
41 | do_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 | |||
50 | PACKAGES =+ "${PN}-test" | ||
51 | RDEPENDS_${PN}-test += "${PN}" | ||
52 | |||
53 | FILES_${PN}-test = " \ | ||
54 | ${bindir}/NameServerApp \ | ||
55 | ${bindir}/MessageQApp \ | ||
56 | ${bindir}/MessageQMulti \ | ||
57 | ${bindir}/ping_rpmsg" | ||
58 | |||