package/network-manager: add optional nmcli support

The network-manager package builds the nmcli utility when the readline
package is enabled. However, this is not necessarily obvious to the
user. Therefore, this commit adds an explicit option to enable the nmcli
tool, which automatically selects readline.

Signed-off-by: Michael Fischer <mf@go-sys.de>
[yann.morin.1998@free.fr: rewrap commit log and help text]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Michael Fischer
2022-01-27 11:46:58 +01:00
committed by Yann E. MORIN
parent ba2659401f
commit 5238f51fc8
2 changed files with 8 additions and 2 deletions

View File

@@ -33,6 +33,13 @@ config BR2_PACKAGE_NETWORK_MANAGER_TUI
help help
This option enables terminal based UI This option enables terminal based UI
config BR2_PACKAGE_NETWORK_MANAGER_CLI
bool "nmcli support"
select BR2_PACKAGE_READLINE
help
This option enables support for the NetworkManager Command
Line Interface
config BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER config BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER
bool "modem-manager support" bool "modem-manager support"
select BR2_PACKAGE_MODEM_MANAGER select BR2_PACKAGE_MODEM_MANAGER
@@ -50,7 +57,6 @@ config BR2_PACKAGE_NETWORK_MANAGER_OVS
select BR2_PACKAGE_JANSSON select BR2_PACKAGE_JANSSON
help help
This option enables support for OpenVSwitch This option enables support for OpenVSwitch
endif endif
comment "NetworkManager needs udev /dev management and a glibc toolchain w/ headers >= 4.6, dynamic library, wchar, threads, gcc >= 4.9" comment "NetworkManager needs udev /dev management and a glibc toolchain w/ headers >= 4.6, dynamic library, wchar, threads, gcc >= 4.9"

View File

@@ -142,7 +142,7 @@ else
NETWORK_MANAGER_CONF_OPTS += --disable-polkit NETWORK_MANAGER_CONF_OPTS += --disable-polkit
endif endif
ifeq ($(BR2_PACKAGE_READLINE),y) ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_CLI),y)
NETWORK_MANAGER_DEPENDENCIES += readline NETWORK_MANAGER_DEPENDENCIES += readline
NETWORK_MANAGER_CONF_OPTS += --with-nmcli NETWORK_MANAGER_CONF_OPTS += --with-nmcli
else else