summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/gsm/gsmd.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-01 19:09:11 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-01 19:09:57 +0100
commitd62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch)
treef36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-connectivity/gsm/gsmd.inc
parentcaab7fc509bf27706ff3248689f6afd04225cfda (diff)
downloadpoky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-connectivity/gsm/gsmd.inc')
-rw-r--r--meta/recipes-connectivity/gsm/gsmd.inc93
1 files changed, 93 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/gsm/gsmd.inc b/meta/recipes-connectivity/gsm/gsmd.inc
new file mode 100644
index 0000000000..a69fdd90f1
--- /dev/null
+++ b/meta/recipes-connectivity/gsm/gsmd.inc
@@ -0,0 +1,93 @@
1DESCRIPTION = "GSM libraries and daemons implementing the 07.10 specification"
2HOMEPAGE = "http://www.openmoko.org"
3LICENSE = "GPL LGPL"
4SECTION = "libs/gsm"
5PROVIDES += "gsmd"
6RPROVIDES_${PN} = "libgsmd0 libgsmd gsmd gsmd-devel"
7PV = "0.1+svnr${SRCREV}"
8PR = "r47"
9
10SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \
11 file://fix_machine_init.patch;patch=1 \
12 file://gsmd \
13 file://default"
14S = "${WORKDIR}/gsm"
15
16inherit autotools pkgconfig update-rc.d
17# handle update-rc.d RDEPENDS manually, we don't need it on
18# anything but gsmd
19RDEPENDS_append = ""
20
21INITSCRIPT_NAME = "gsmd"
22INITSCRIPT_PARAMS = "defaults 35"
23
24do_install_append() {
25 install -d ${D}/${sysconfdir}/init.d
26 install -m 0755 ${WORKDIR}/gsmd ${D}/${sysconfdir}/init.d/
27 install -d ${D}/${sysconfdir}/default
28 install ${WORKDIR}/default ${D}/${sysconfdir}/default/gsmd
29}
30
31PACKAGES =+ "\
32 ${PN}-tools \
33 ${BASEPN}-plugins \
34 ${BASEPN}-plugin-machine-generic \
35 ${BASEPN}-plugin-machine-tihtc \
36 ${BASEPN}-plugin-machine-gta01 \
37 ${BASEPN}-plugin-vendor-bcm \
38 ${BASEPN}-plugin-vendor-qc \
39 ${BASEPN}-plugin-vendor-ti \
40 ${BASEPN}-plugin-vendor-tihtc \
41"
42
43ALLOW_EMPTY_${BASEPN}-plugin-machine-gta01 = "1"
44
45RDEPENDS_${BASEPN}-plugins = "\
46 ${BASEPN}-plugin-machine-generic \
47 ${BASEPN}-plugin-machine-tihtc \
48 ${BASEPN}-plugin-machine-gta01 \
49 ${BASEPN}-plugin-vendor-bcm \
50 ${BASEPN}-plugin-vendor-qc \
51 ${BASEPN}-plugin-vendor-ti \
52 ${BASEPN}-plugin-vendor-tihtc \
53"
54
55RDEPENDS_${PN} += "update-rc.d initscripts"
56RRECOMMENDS_${PN} += "${BASEPN}-plugins"
57
58FILES_${PN}-dbg += "${libdir}/gsmd/.debug/*"
59FILES_${PN}-tools = "${bindir}/*"
60FILES_${BASEPN}-plugins = ""
61FILES_${BASEPN}-plugin-machine-generic = "${libdir}/gsmd/libgsmd-machine_generic.so*"
62FILES_${BASEPN}-plugin-machine-tihtc = "${libdir}/gsmd/libgsmd-machine_tihtc.so*"
63FILES_${BASEPN}-plugin-machine-gta01 = "${libdir}/gsmd/libgsmd-machine_gta01.so*"
64FILES_${BASEPN}-plugin-vendor-qc = "${libdir}/gsmd/libgsmd-vendor_qc.so*"
65FILES_${BASEPN}-plugin-vendor-bcm = "${libdir}/gsmd/libgsmd-vendor_bcm.so*"
66FILES_${BASEPN}-plugin-vendor-ti = "${libdir}/gsmd/libgsmd-vendor_ti.so*"
67FILES_${BASEPN}-plugin-vendor-tihtc = "${libdir}/gsmd/libgsmd-vendor_tihtc.so*"
68
69PACKAGES_DYNAMIC = "lib${BASEPN}* ${BASEPN}"
70
71ALLOW_EMPTY_${BASEPN}-plugins = "1"
72
73RCONFLICTS_lib${BASEPN} = "lib${CONFLICTNAME}"
74RCONFLICTS_${BASEPN} = "${CONFLICTNAME}"
75RCONFLICTS_${BASEPN}-plugins = "${CONFLICTNAME}-plugins"
76RCONFLICTS_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic"
77RCONFLICTS_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc"
78RCONFLICTS_${BASEPN}-plugin-machine-gta01 = "${CONFLICTNAME}-plugin-machine-gta01"
79RCONFLICTS_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc"
80RCONFLICTS_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm"
81RCONFLICTS_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti"
82RCONFLICTS_${BASEPN}-plugin-vendor-tihtc = "${CONFLICTNAME}-plugin-vendor-tihtc"
83
84RPROVIDES_lib${BASEPN} += "lib${CONFLICTNAME}"
85RPROVIDES_${BASEPN} = "${CONFLICTNAME}"
86RPROVIDES_${BASEPN}-plugins = "${CONFLICTNAME}-plugins"
87RPROVIDES_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic"
88RPROVIDES_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc"
89RPROVIDES_${BASEPN}-plugin-machine-gta01 = "${CONFLICTNAME}-plugin-machine-gta01"
90RPROVIDES_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc"
91RPROVIDES_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm"
92RPROVIDES_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti"
93RPROVIDES_${BASEPN}-plugin-vendor-tihtc = "${CONFLICTNAME}-plugin-vendor-tihtc"