1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-14 19:33:59 +02:00
openwrt-packages/net/openvswitch/openvswitch.mk
Yousong Zhou f4f1a25e80 openvswitch: bump to version 2.15.0
Quote NEWS item

>   - Building the Linux kernel module from the OVS source tree is
>     deprecated
>     * Support for the Linux kernel is capped at version 5.8
>     * Only bug fixes for the Linux OOT kernel module will be accepted.
>     * The Linux kernel module will be fully removed from the OVS source
>       tree
>       in OVS branch 2.18

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2021-02-24 20:36:27 +08:00

37 lines
925 B
Makefile

# Copyright (C) 2020 Yousong Zhou <yszhou4tech@gmail.com>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# Versions
ovs_version:=2.15.0
ovs_builddir=$(KERNEL_BUILD_DIR)/openvswitch-$(ovs_version)
# Shared vars, macros
ovs_packages:=
ovs_package_name=$(if $(filter openvswitch,$(1)),openvswitch,openvswitch-$(1))
define OvsPackageTemplate
define Package/$(call ovs_package_name,$(1))
SECTION:=net
SUBMENU:=Open vSwitch
CATEGORY:=Network
URL:=https://www.openvswitch.org
TITLE:=$(ovs_$(1)_title)
HIDDEN:=$(ovs_$(1)_hidden)
DEPENDS:=$(ovs_$(1)_depends)
endef
define Package/$(call ovs_package_name,$(1))/install
$(foreach f,$(ovs_$(1)_files),
$(INSTALL_DIR) $$(1)/$(dir $(f))
$(CP) $(PKG_INSTALL_DIR)/$(f) $$(1)/$(dir $(f))
)
$(ovs_$(1)_install)
endef
ovs_packages+=$(call ovs_package_name,$(1))
endef