ofono: conditionally enable bluetooth
Use DISTRO_FEATURE to conditionally depend on bluez4, as well as enabling bluetooth. (From OE-Core rev: 4024bf2874e9da4fd0dd9a2b90a48e8a259781cc) Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c8294d1e6d
commit
718e07647d
|
@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
|
||||||
|
|
||||||
inherit autotools pkgconfig update-rc.d
|
inherit autotools pkgconfig update-rc.d
|
||||||
|
|
||||||
DEPENDS = "dbus glib-2.0 udev bluez4"
|
DEPENDS = "dbus glib-2.0 udev ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)}"
|
||||||
|
|
||||||
INITSCRIPT_NAME = "ofono"
|
INITSCRIPT_NAME = "ofono"
|
||||||
INITSCRIPT_PARAMS = "defaults 22"
|
INITSCRIPT_PARAMS = "defaults 22"
|
||||||
|
|
|
@ -7,6 +7,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/network/ofono/${BPN}-${PV}.tar.bz2 \
|
||||||
|
|
||||||
EXTRA_OECONF += "\
|
EXTRA_OECONF += "\
|
||||||
--enable-test \
|
--enable-test \
|
||||||
|
${@base_contains('DISTRO_FEATURES', 'bluetooth','--enable-bluetooth', '--disable-bluetooth', d)} \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "b2656fd0bbf33f926fc86c1e8915d697"
|
SRC_URI[md5sum] = "b2656fd0bbf33f926fc86c1e8915d697"
|
||||||
|
|
|
@ -10,6 +10,10 @@ PR = "r1"
|
||||||
SRC_URI = "git://git.kernel.org/pub/scm/network/ofono/ofono.git;protocol=git \
|
SRC_URI = "git://git.kernel.org/pub/scm/network/ofono/ofono.git;protocol=git \
|
||||||
file://ofono"
|
file://ofono"
|
||||||
|
|
||||||
|
EXTRA_OECONF += "\
|
||||||
|
${@base_contains('DISTRO_FEATURES', 'bluetooth','--enable-bluetooth', '--disable-bluetooth', d)} \
|
||||||
|
"
|
||||||
|
|
||||||
do_configure_prepend () {
|
do_configure_prepend () {
|
||||||
${S}/bootstrap
|
${S}/bootstrap
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue