1 # Copyright (C) 2020 Yousong Zhou <yszhou4tech@gmail.com>
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
9 ovs_builddir
=$(KERNEL_BUILD_DIR
)/openvswitch-
$(ovs_version
)
15 ovs_package_name
=$(if
$(filter openvswitch
,$(1)),openvswitch
,openvswitch-
$(1))
16 define OvsPackageTemplate
17 define Package
/$(call ovs_package_name
,$(1))
21 URL
:=https
://www.openvswitch.org
22 TITLE
:=$(ovs_
$(1)_title
)
23 HIDDEN
:=$(ovs_
$(1)_hidden
)
24 DEPENDS
:=$(ovs_
$(1)_depends
)
27 define Package
/$(call ovs_package_name
,$(1))/install
28 $(foreach f
,$(ovs_
$(1)_files
),
29 $(INSTALL_DIR
) $$(1)/$(dir $(f
))
30 $(CP
) $(PKG_INSTALL_DIR
)/$(f
) $$(1)/$(dir $(f
))
35 ovs_packages
+=$(call ovs_package_name
,$(1))