openvswitch: remove dependency on SUPPORTED_KERNELS
authorYousong Zhou <redacted>
Tue, 13 Feb 2018 07:34:42 +0000 (15:34 +0800)
committerYousong Zhou <redacted>
Mon, 5 Mar 2018 16:29:53 +0000 (00:29 +0800)
Quote from Open vSwitch FAQ.md

    Open vSwitch userspace should also work with the Linux kernel module
    built into Linux 3.3 and later.

    Open vSwitch userspace is not sensitive to the Linux kernel version. It
    should build against almost any kernel, certainly against 2.6.32 and
    later.

The SUPPORTED_KERNEL dependency for openvswitch kernel module only
makes sense when we are building it from the ovs release tarballs
against mainline kernels.  Now that we are using the module from vanilla
kernel itself, the dependency does not exist anymore

Signed-off-by: Yousong Zhou <redacted>
net/openvswitch/Makefile
net/openvswitch/patches/0005-disable-module-build.patch [deleted file]

index ee3cd0aaaa7ba91c8b191663ef571dcdb71c78c4..2b738ce3c5df77666ee57e9057548a1212b0696c 100644 (file)
@@ -29,8 +29,6 @@ PKG_BUILD_PARALLEL:=1
 PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
 
-SUPPORTED_KERNELS:=LINUX_3_18||LINUX_4_1||LINUX_4_3||LINUX_4_4||LINUX_4_9
-
 include $(INCLUDE_DIR)/package.mk
 include ../../lang/python/python-package.mk
 
@@ -55,7 +53,7 @@ endef
 define Package/openvswitch-base
   $(call Package/openvswitch/Default)
   TITLE:=Open vSwitch Userspace Package (base)
-  DEPENDS:=+libpcap +libopenssl +librt +kmod-openvswitch @($(SUPPORTED_KERNELS))
+  DEPENDS:=+libpcap +libopenssl +librt +kmod-openvswitch
 endef
 
 define Package/openvswitch-base/description
@@ -138,8 +136,7 @@ define KernelPackage/openvswitch
        CONFIG_OPENVSWITCH_GENEVE=n
   DEPENDS:= \
        @IPV6 +kmod-gre +kmod-lib-crc32c +kmod-mpls \
-       +kmod-vxlan +kmod-nf-nat +kmod-nf-nat6  \
-       @($(SUPPORTED_KERNELS))
+       +kmod-vxlan +kmod-nf-nat +kmod-nf-nat6
   FILES:= $(LINUX_DIR)/net/openvswitch/openvswitch.ko
   AUTOLOAD:=$(call AutoLoad,21,openvswitch)
 endef
@@ -149,7 +146,7 @@ define KernelPackage/openvswitch/description
   module. Furthermore, it supports OpenFlow.
 endef
 
-CONFIGURE_ARGS += --with-linux=$(LINUX_DIR) --with-rundir=/var/run
+CONFIGURE_ARGS += --with-rundir=/var/run
 CONFIGURE_ARGS += --enable-ndebug
 CONFIGURE_ARGS += --disable-ssl
 CONFIGURE_ARGS += --enable-shared
diff --git a/net/openvswitch/patches/0005-disable-module-build.patch b/net/openvswitch/patches/0005-disable-module-build.patch
deleted file mode 100644 (file)
index 43d4986..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-From 7cf69704374e363fdda227803be3849233ba96f3 Mon Sep 17 00:00:00 2001
-From: Dario Ernst <Dario.Ernst@riverbed.com>
-Date: Fri, 25 Nov 2016 15:33:48 +0100
-Subject: [PATCH 4/4] disable-module-build
-
----
- datapath/linux/Makefile.main.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/datapath/linux/Makefile.main.in b/datapath/linux/Makefile.main.in
-index 7d18253..e5555a7 100644
---- a/datapath/linux/Makefile.main.in
-+++ b/datapath/linux/Makefile.main.in
-@@ -68,7 +68,7 @@ ifeq (,$(wildcard $(CONFIG_FILE)))
- endif
- default:
--      $(MAKE) -C $(KSRC) M=$(builddir) modules
-+      @echo skipping module build
- modules_install:
-       $(MAKE) -C $(KSRC) M=$(builddir) modules_install
--- 
-2.9.3
-
git clone https://git.99rst.org/PROJECT