mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
ofono: use PACKAGECONFIG for systemd and bluetooth
For clarity use PACKAGECONFIG for the systemd and bluetooth optional features. (From OE-Core rev: e76e7bf166544c1059c20753165a644dc1af750f) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b9ed702ee7
commit
2c8be7344e
@@ -7,16 +7,20 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
|
|||||||
|
|
||||||
inherit autotools pkgconfig update-rc.d systemd
|
inherit autotools pkgconfig update-rc.d systemd
|
||||||
|
|
||||||
DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)}"
|
DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info"
|
||||||
|
|
||||||
INITSCRIPT_NAME = "ofono"
|
INITSCRIPT_NAME = "ofono"
|
||||||
INITSCRIPT_PARAMS = "defaults 22"
|
INITSCRIPT_PARAMS = "defaults 22"
|
||||||
|
|
||||||
EXTRA_OECONF += "\
|
PACKAGECONFIG ??= "\
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--with-systemdunitdir=${systemd_unitdir}/system/', '--with-systemdunitdir=', d)} \
|
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth','--enable-bluetooth', '--disable-bluetooth', d)} \
|
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth','bluetooth', '', d)} \
|
||||||
--enable-test \
|
"
|
||||||
"
|
PACKAGECONFIG[systemd] = "--with-systemdunitdir=${systemd_unitdir}/system/,--with-systemdunitdir="
|
||||||
|
PACKAGECONFIG[bluetooth] = "--enable-bluetooth,--disable-bluetooth,bluez4"
|
||||||
|
|
||||||
|
EXTRA_OECONF += "--enable-test"
|
||||||
|
|
||||||
SYSTEMD_SERVICE_${PN} = "ofono.service"
|
SYSTEMD_SERVICE_${PN} = "ofono.service"
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
|
|||||||
Reference in New Issue
Block a user