aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Petr Vorel <petr.vorel@gmail.com>2018-02-02 00:45:16 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-02-03 23:23:51 +0100
commit94e830779fb02c0a137d9e04145a6a882b2fe14d (patch)
treeb46b6a65d8cdd365221ef3f6d4f1a51c96f755e1
parent0d4076caec4216e78af628ddbc01598a909b4ae3 (diff)
downloadbuildroot-94e830779fb02c0a137d9e04145a6a882b2fe14d.tar.gz
buildroot-94e830779fb02c0a137d9e04145a6a882b2fe14d.tar.bz2
network-manager: Add option for OpenVSwitch support
Signed-off-by: Petr Vorel <petr.vorel@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/network-manager/Config.in6
-rw-r--r--package/network-manager/network-manager.mk10
2 files changed, 14 insertions, 2 deletions
diff --git a/package/network-manager/Config.in b/package/network-manager/Config.in
index 37e9b2fd8c..72658c1278 100644
--- a/package/network-manager/Config.in
+++ b/package/network-manager/Config.in
@@ -56,6 +56,12 @@ config BR2_PACKAGE_NETWORK_MANAGER_PPPD
comment "pppd support needs a glibc or uClibc toolchain"
depends on BR2_TOOLCHAIN_USES_MUSL
+config BR2_PACKAGE_NETWORK_MANAGER_OVS
+ bool "OpenVSwitch support"
+ select BR2_PACKAGE_JANSSON
+ help
+ This option enables support for OpenVSwitch
+
endif
comment "NetworkManager needs udev /dev management and a glibc toolchain w/ headers >= 3.7, dynamic library"
diff --git a/package/network-manager/network-manager.mk b/package/network-manager/network-manager.mk
index ccf376d0d8..a520aad9c0 100644
--- a/package/network-manager/network-manager.mk
+++ b/package/network-manager/network-manager.mk
@@ -30,8 +30,7 @@ NETWORK_MANAGER_CONF_OPTS = \
--with-crypto=gnutls \
--with-iptables=/usr/sbin/iptables \
--disable-ifupdown \
- --disable-ifnet \
- --disable-ovs
+ --disable-ifnet
ifeq ($(BR2_PACKAGE_OFONO),y)
NETWORK_MANAGER_DEPENDENCIES += ofono
@@ -76,6 +75,13 @@ ifeq ($(BR2_PACKAGE_DHCPCD),y)
NETWORK_MANAGER_CONF_OPTS += --with-dhcpcd=/sbin/dhcpcd
endif
+ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_OVS),y)
+NETWORK_MANAGER_CONF_OPTS += --enable-ovs
+NETWORK_MANAGER_DEPENDENCIES += jansson
+else
+NETWORK_MANAGER_CONF_OPTS += --disable-ovs
+endif
+
# uClibc by default doesn't have backtrace support, so don't use it
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
NETWORK_MANAGER_CONF_OPTS += --disable-crashtrace