diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2013-08-01 18:01:37 +0300 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-08-02 08:21:16 -0700 |
commit | 1fb3560749a750884eafabc2d0b1cfb7fa56308a (patch) | |
tree | f29e7b80ea4e94744a344051f5a56b9e29a24e61 /meta/recipes-connectivity/ofono/ofono.inc | |
parent | 2ca75dd0718ec37d7f131b8bcd841de6e876bd07 (diff) | |
download | openembedded-core-1fb3560749a750884eafabc2d0b1cfb7fa56308a.tar.gz openembedded-core-1fb3560749a750884eafabc2d0b1cfb7fa56308a.tar.bz2 openembedded-core-1fb3560749a750884eafabc2d0b1cfb7fa56308a.zip |
ofono: Add systemd support
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-connectivity/ofono/ofono.inc')
-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" LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \ file://src/ofono.h;beginline=1;endline=20;md5=3ce17d5978ef3445def265b98899c2ee" -inherit autotools pkgconfig update-rc.d +inherit autotools pkgconfig update-rc.d systemd DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)}" INITSCRIPT_NAME = "ofono" INITSCRIPT_PARAMS = "defaults 22" +EXTRA_OECONF += "\ + ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdunitdir=${systemd_unitdir}/system/', '--with-systemdunitdir=', d)} \ +" +SYSTEMD_SERVICE_${PN} = "ofono.service" + do_install_append() { install -d ${D}${sysconfdir}/init.d/ install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono |