You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
925 B

  1. # Copyright (C) 2020 Yousong Zhou <yszhou4tech@gmail.com>
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. # Versions
  6. ovs_version:=2.14.0
  7. ovs_builddir=$(KERNEL_BUILD_DIR)/openvswitch-$(ovs_version)
  8. # Shared vars, macros
  9. ovs_packages:=
  10. ovs_package_name=$(if $(filter openvswitch,$(1)),openvswitch,openvswitch-$(1))
  11. define OvsPackageTemplate
  12. define Package/$(call ovs_package_name,$(1))
  13. SECTION:=net
  14. SUBMENU:=Open vSwitch
  15. CATEGORY:=Network
  16. URL:=https://www.openvswitch.org
  17. TITLE:=$(ovs_$(1)_title)
  18. HIDDEN:=$(ovs_$(1)_hidden)
  19. DEPENDS:=$(ovs_$(1)_depends)
  20. endef
  21. define Package/$(call ovs_package_name,$(1))/install
  22. $(foreach f,$(ovs_$(1)_files),
  23. $(INSTALL_DIR) $$(1)/$(dir $(f))
  24. $(CP) $(PKG_INSTALL_DIR)/$(f) $$(1)/$(dir $(f))
  25. )
  26. $(ovs_$(1)_install)
  27. endef
  28. ovs_packages+=$(call ovs_package_name,$(1))
  29. endef