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.

37 lines
968 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.13.0
  7. ovs_builddir=$(KERNEL_BUILD_DIR)/openvswitch-$(ovs_version)
  8. # Shared vars, macros
  9. ovs_common_depends:=
  10. ovs_packages:=
  11. ovs_package_name=$(if $(filter openvswitch,$(1)),openvswitch,openvswitch-$(1))
  12. define OvsPackageTemplate
  13. define Package/$(call ovs_package_name,$(1))
  14. SECTION:=net
  15. SUBMENU:=Open vSwitch
  16. CATEGORY:=Network
  17. URL:=https://www.openvswitch.org
  18. TITLE:=$(ovs_$(1)_title)
  19. HIDDEN:=$(ovs_$(1)_hidden)
  20. DEPENDS:=$(ovs_$(1)_depends) $(ovs_common_depends)
  21. endef
  22. define Package/$(call ovs_package_name,$(1))/install
  23. $(foreach f,$(ovs_$(1)_files),
  24. $(INSTALL_DIR) $$(1)/$(dir $(f))
  25. $(CP) $(PKG_INSTALL_DIR)/$(f) $$(1)/$(dir $(f))
  26. )
  27. $(ovs_$(1)_install)
  28. endef
  29. ovs_packages+=$(call ovs_package_name,$(1))
  30. endef