|
|
@ -11,8 +11,8 @@ include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
PKG_NAME:=openvswitch |
|
|
|
|
|
|
|
PKG_RELEASE:=2 |
|
|
|
PKG_VERSION:=2.3.1 |
|
|
|
PKG_RELEASE:=1 |
|
|
|
PKG_VERSION:=2.3.90 |
|
|
|
PKG_RELEASE=$(PKG_SOURCE_VERSION) |
|
|
|
PKG_LICENSE:=Apache-2.0 |
|
|
|
PKG_LICENSE_FILES:=COPYING |
|
|
@ -21,9 +21,11 @@ PKG_USE_MIPS16:=0 |
|
|
|
PKG_SOURCE_PROTO:=git |
|
|
|
PKG_SOURCE_URL:=https://github.com/openvswitch/ovs |
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
|
|
|
PKG_SOURCE_VERSION:=0dfed4ba9c8a16a1f316d709b7831a4e139472d4 |
|
|
|
PKG_SOURCE_VERSION:=58be9c9fd732b5bdd3d4c2e9b8cc2313f570094d |
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz |
|
|
|
|
|
|
|
SUPPORTED_KERNELS:=LINUX_3_18||LINUX_4_0 |
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
|
include $(INCLUDE_DIR)/kernel.mk |
|
|
|
$(call include_mk, python-package.mk) |
|
|
@ -50,8 +52,7 @@ endef |
|
|
|
define Package/openvswitch |
|
|
|
$(call Package/openvswitch/Default) |
|
|
|
TITLE:=Open vSwitch Userspace Package |
|
|
|
DEPENDS:=+libpcap +libopenssl +librt +libatomic +kmod-openvswitch \
|
|
|
|
@(LINUX_3_8||LINUX_3_10||LINUX_3_13||LINUX_3_14) |
|
|
|
DEPENDS:=+libpcap +libopenssl +librt +libatomic +kmod-openvswitch @(SUPPORTED_KERNELS) |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/openvswitch/description |
|
|
@ -95,8 +96,7 @@ define KernelPackage/openvswitch |
|
|
|
SUBMENU:=Network Support |
|
|
|
TITLE:=Open vSwitch Kernel Package |
|
|
|
KCONFIG:=CONFIG_BRIDGE |
|
|
|
DEPENDS:=+kmod-stp +kmod-ipv6 +kmod-gre +kmod-lib-crc32c +kmod-vxlan \
|
|
|
|
@(LINUX_3_8||LINUX_3_10||LINUX_3_13||LINUX_3_14) |
|
|
|
DEPENDS:=+kmod-stp +kmod-ipv6 +kmod-gre +kmod-lib-crc32c +kmod-vxlan @(SUPPORTED_KERNELS) |
|
|
|
FILES:= \
|
|
|
|
$(PKG_BUILD_DIR)/datapath/linux/openvswitch.$(LINUX_KMOD_SUFFIX) |
|
|
|
AUTOLOAD:=$(call AutoLoad,21,openvswitch) |
|
|
@ -149,10 +149,10 @@ define Package/openvswitch/install |
|
|
|
$(INSTALL_BIN) ./files/etc/init.d/openvswitch.init $(1)/etc/init.d/openvswitch |
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/ |
|
|
|
$(CP) $(PKG_BUILD_DIR)/lib/.libs/libsflow-$(PKG_VERSION).so $(1)/usr/lib/ |
|
|
|
$(CP) $(PKG_BUILD_DIR)/lib/.libs/libopenvswitch-$(PKG_VERSION).so $(1)/usr/lib/ |
|
|
|
$(CP) $(PKG_BUILD_DIR)/ofproto/.libs/libofproto-$(PKG_VERSION).so $(1)/usr/lib/ |
|
|
|
$(CP) $(PKG_BUILD_DIR)/ovsdb/.libs/libovsdb-$(PKG_VERSION).so $(1)/usr/lib/ |
|
|
|
$(CP) $(PKG_BUILD_DIR)/lib/.libs/libsflow.so* $(1)/usr/lib/ |
|
|
|
$(CP) $(PKG_BUILD_DIR)/lib/.libs/libopenvswitch.so* $(1)/usr/lib/ |
|
|
|
$(CP) $(PKG_BUILD_DIR)/ofproto/.libs/libofproto.so* $(1)/usr/lib/ |
|
|
|
$(CP) $(PKG_BUILD_DIR)/ovsdb/.libs/libovsdb.so* $(1)/usr/lib/ |
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/ |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/utilities/.libs/ovs-appctl $(1)/usr/bin/ |
|
|
|