summaryrefslogtreecommitdiffstats
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:40:42 -0400
commitd91f59771ef936436cf1c8d3cb9e6f66189126b9 (patch)
treeedea756f08cfa89f26fc48cef70ed22eff59e6ff
parent2a86668af1443b56ba9b62c6be2d9f95c6b3ca70 (diff)
downloadmeta-ti-d91f59771ef936436cf1c8d3cb9e6f66189126b9.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>
-rw-r--r--recipes-ti/ipc/ti-ipc.inc58
-rw-r--r--[-rwxr-xr-x]recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh (renamed from recipes-ti/ipc/files/tiipclad-daemon.sh)2
-rw-r--r--recipes-ti/ipc/ti-ipc_3.00.00.bb51
-rw-r--r--recipes-ti/ipc/ti-ipc_3.21.00.07.bb31
4 files changed, 64 insertions, 78 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
diff --git a/recipes-ti/ipc/files/tiipclad-daemon.sh b/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh
index 54b38882..97f870e8 100755..100644
--- a/recipes-ti/ipc/files/tiipclad-daemon.sh
+++ b/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh
@@ -1,6 +1,6 @@
1#! /bin/sh 1#! /bin/sh
2 2
3tiipclad_daemon=/usr/bin/lad_tci6638 3tiipclad_daemon=/usr/bin/__LAD_DAEMON__
4tiipclad_params=lad.txt 4tiipclad_params=lad.txt
5 5
6test -x "$tiipclad_daemon" || exit 0 6test -x "$tiipclad_daemon" || exit 0
diff --git a/recipes-ti/ipc/ti-ipc_3.00.00.bb b/recipes-ti/ipc/ti-ipc_3.00.00.bb
index c07b7f9b..a6922c03 100644
--- a/recipes-ti/ipc/ti-ipc_3.00.00.bb
+++ b/recipes-ti/ipc/ti-ipc_3.00.00.bb
@@ -1,52 +1,7 @@
1DESCRIPTION="This support the communication between processors \ 1require ti-ipc.inc
2in a multi-processor environment and communication to peripherals. \
3This communication includes message passing, streams, and linked lists. \
4These modules work transparently in both uni-processor and multi-processor \
5configurations."
6 2
7HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC" 3# For this version of IPC the PLATFORM value is lowercase
4PLATFORM_keystone = "tci6638"
8 5
9LICENSE = "BSD"
10LIC_FILES_CHKSUM = "file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165bcb1a23ffd50dbb"
11SECTION = "console"
12COMPATIBLE_MACHINE = "keystone"
13TARGET_PLATFORM = "tci6638"
14
15PR = "r0"
16
17BRANCH ?= "master"
18# The following commit corresponds to 3.00.04.29 6# The following commit corresponds to 3.00.04.29
19SRCREV = "12794ea33870b782bffe1fe4398e86e93fb64396" 7SRCREV = "12794ea33870b782bffe1fe4398e86e93fb64396"
20
21SRC_URI = " \
22 git://git.ti.com/ipc/ipcdev.git;protocol=git;branch=${BRANCH} \
23 file://tiipclad-daemon.sh"
24
25S = "${WORKDIR}/git"
26
27export PLATFORM = "${TARGET_PLATFORM}"
28
29export PARALLEL_MAKE = ""
30
31PACKAGES =+ "${PN}-test"
32
33FILES_${PN}-test = " \
34 ${bindir}/NameServerApp \
35 ${bindir}/MessageQApp \
36 ${bindir}/MessageQMulti \
37 ${bindir}/ping_rpmsg"
38
39DEPENDS += "virtual/kernel"
40
41EXTRA_OECONF += "KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR}"
42inherit autotools
43
44INITSCRIPT_NAME = "tiipclad-daemon.sh"
45INITSCRIPT_PARAMS = "defaults 10"
46
47inherit update-rc.d
48
49do_install_append() {
50 install -d ${D}${sysconfdir}/init.d/
51 install -c -m 755 ${WORKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
52}
diff --git a/recipes-ti/ipc/ti-ipc_3.21.00.07.bb b/recipes-ti/ipc/ti-ipc_3.21.00.07.bb
index 8131754d..17cdab0e 100644
--- a/recipes-ti/ipc/ti-ipc_3.21.00.07.bb
+++ b/recipes-ti/ipc/ti-ipc_3.21.00.07.bb
@@ -1,31 +1,4 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)" 1require ti-ipc.inc
2HOMEPAGE = "https://git.ti.com/ipc/pages/Home"
3LICENSE = "BSD"
4LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=f2518e421e230f06fe6d449718d02edc"
5
6DEPENDS += "virtual/kernel"
7
8PR = "r1"
9
10PACKAGE_ARCH = "${MACHINE_ARCH}"
11
12PLATFORM_omap5-evm = "OMAP54XX"
13PLATFORM_dra7xx-evm = "DRA7XX"
14
15inherit autotools pkgconfig
16
17SRC_URI = "git://git.ti.com/ipc/ipcdev.git;protocol=git \
18 file://0002-ipc-Added-installation-prefix-feature-to-products.ma.patch \
19 "
20 2
3# This commit corresponds to 3.21.00.07
21SRCREV = "c18fece0c9f0dc76361dc1ee11b7ee2417479847" 4SRCREV = "c18fece0c9f0dc76361dc1ee11b7ee2417479847"
22
23S = "${WORKDIR}/git"
24
25FILESEXTRAPATHS_prepend := "${THISDIR}:"
26
27EXTRA_OEMAKE += "KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_INSTALL_DIR=${TOOLCHAIN_PATH} TOOLCHAIN_LONGNAME=${TOOLCHAIN_SYS} PLATFORM=${PLATFORM} PREFIX=${prefix}"
28
29do_configure() {
30 oe_runmake -f ${S}/ipc-linux.mak config
31}