diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2013-08-01 18:01:37 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-03 10:33:13 +0100 |
commit | 973cfd8bbba7541fd620732edafde85a2be448e4 (patch) | |
tree | ccef6053cfe051c5fd792737a447df08c2ed0d3a | |
parent | 176ad0db2c70b2a2275343aa8648eb2e48898b50 (diff) | |
download | poky-973cfd8bbba7541fd620732edafde85a2be448e4.tar.gz |
ofono: Add systemd support
(From OE-Core rev: 1fb3560749a750884eafabc2d0b1cfb7fa56308a)
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/ofono/ofono.inc b/meta/recipes-connectivity/ofono/ofono.inc index 21e564c19b..b0e80200e4 100644 --- a/meta/recipes-connectivity/ofono/ofono.inc +++ b/meta/recipes-connectivity/ofono/ofono.inc | |||
@@ -5,13 +5,18 @@ LICENSE = "GPLv2" | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \ | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \ |
6 | file://src/ofono.h;beginline=1;endline=20;md5=3ce17d5978ef3445def265b98899c2ee" | 6 | file://src/ofono.h;beginline=1;endline=20;md5=3ce17d5978ef3445def265b98899c2ee" |
7 | 7 | ||
8 | inherit autotools pkgconfig update-rc.d | 8 | inherit autotools pkgconfig update-rc.d systemd |
9 | 9 | ||
10 | DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)}" | 10 | DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)}" |
11 | 11 | ||
12 | INITSCRIPT_NAME = "ofono" | 12 | INITSCRIPT_NAME = "ofono" |
13 | INITSCRIPT_PARAMS = "defaults 22" | 13 | INITSCRIPT_PARAMS = "defaults 22" |
14 | 14 | ||
15 | EXTRA_OECONF += "\ | ||
16 | ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdunitdir=${systemd_unitdir}/system/', '--with-systemdunitdir=', d)} \ | ||
17 | " | ||
18 | SYSTEMD_SERVICE_${PN} = "ofono.service" | ||
19 | |||
15 | do_install_append() { | 20 | do_install_append() { |
16 | install -d ${D}${sysconfdir}/init.d/ | 21 | install -d ${D}${sysconfdir}/init.d/ |
17 | install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono | 22 | install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono |