mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 20:07:25 +00:00
networkmanager: add missing readline depends
Introduce PACKAGECONFIG[nmcli] to make building the nmcli utility which depends on GPLv3 licensed readline library optional. Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ DEPENDS = " \
|
|||||||
curl \
|
curl \
|
||||||
"
|
"
|
||||||
|
|
||||||
inherit gnomebase gettext update-rc.d systemd bash-completion vala gobject-introspection gtk-doc update-alternatives upstream-version-is-even
|
inherit gnomebase gettext update-rc.d systemd vala gobject-introspection gtk-doc update-alternatives upstream-version-is-even
|
||||||
|
|
||||||
SRC_URI = " \
|
SRC_URI = " \
|
||||||
${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.xz \
|
${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.xz \
|
||||||
@@ -62,11 +62,14 @@ do_compile_prepend() {
|
|||||||
export GIR_EXTRA_LIBS_PATH="${B}/libnm/.libs:${B}/libnm-glib/.libs:${B}/libnm-util/.libs"
|
export GIR_EXTRA_LIBS_PATH="${B}/libnm/.libs:${B}/libnm-glib/.libs:${B}/libnm-util/.libs"
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGECONFIG ??= "nss ifupdown dnsmasq \
|
PACKAGECONFIG ??= "nss ifupdown dnsmasq nmcli \
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \
|
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)} \
|
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)} \
|
||||||
${@bb.utils.filter('DISTRO_FEATURES', 'wifi polkit', d)} \
|
${@bb.utils.filter('DISTRO_FEATURES', 'wifi polkit', d)} \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
inherit ${@bb.utils.contains('PACKAGECONFIG', 'nmcli', 'bash-completion', '', d)}
|
||||||
|
|
||||||
PACKAGECONFIG[systemd] = " \
|
PACKAGECONFIG[systemd] = " \
|
||||||
--with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd, \
|
--with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd, \
|
||||||
--without-systemdsystemunitdir, \
|
--without-systemdsystemunitdir, \
|
||||||
@@ -85,6 +88,7 @@ PACKAGECONFIG[wifi] = "--with-wext=yes --enable-wifi=yes,--with-wext=no --enable
|
|||||||
PACKAGECONFIG[ifupdown] = "--enable-ifupdown,--disable-ifupdown"
|
PACKAGECONFIG[ifupdown] = "--enable-ifupdown,--disable-ifupdown"
|
||||||
PACKAGECONFIG[qt4-x11-free] = "--enable-qt,--disable-qt,qt4-x11-free"
|
PACKAGECONFIG[qt4-x11-free] = "--enable-qt,--disable-qt,qt4-x11-free"
|
||||||
PACKAGECONFIG[cloud-setup] = "--with-nm-cloud-setup=yes,--with-nm-cloud-setup=no"
|
PACKAGECONFIG[cloud-setup] = "--with-nm-cloud-setup=yes,--with-nm-cloud-setup=no"
|
||||||
|
PACKAGECONFIG[nmcli] = "--with-nmcli=yes,--with-nmcli=no,readline"
|
||||||
|
|
||||||
PACKAGES =+ " \
|
PACKAGES =+ " \
|
||||||
${PN}-nmcli ${PN}-nmcli-doc \
|
${PN}-nmcli ${PN}-nmcli-doc \
|
||||||
|
|||||||
Reference in New Issue
Block a user