networkmanager: disable features that depend on X11 library

So the package can be compiled in a non-X11 graphical system.

https://jira.digi.com/browse/DEL-4289

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2017-05-22 10:37:38 +02:00
parent fbc6b188f5
commit d72c3019b9
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@ SRC_URI += " \
file://nm.wlan0.static \
"
# 'polkit' and 'consolekit' require 'x11' distro feature, so disable them for non-X11 distros
DEPENDS_remove = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'polkit', d)}"
PACKAGECONFIG_remove = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'consolekit', d)}"
EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '--enable-polkit=disabled', d)}"
PACKAGECONFIG_remove = "dnsmasq netconfig"
PACKAGECONFIG_append = " concheck modemmanager ppp"