bb6410b09b
Adds new device driver main/dummy and various bug fixes/cleanups. https://github.com/containernetworking/plugins/releases/tag/v1.2.0 Signed-off-by: Christian Stewart <christian@paral.in> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# cni-plugins
|
|
#
|
|
################################################################################
|
|
|
|
CNI_PLUGINS_VERSION = 1.2.0
|
|
CNI_PLUGINS_SITE = $(call github,containernetworking,plugins,v$(CNI_PLUGINS_VERSION))
|
|
CNI_PLUGINS_LICENSE = Apache-2.0
|
|
CNI_PLUGINS_LICENSE_FILES = LICENSE
|
|
|
|
CNI_PLUGINS_BUILD_TARGETS = \
|
|
plugins/ipam/dhcp \
|
|
plugins/main/bridge \
|
|
plugins/main/dummy \
|
|
plugins/main/host-device \
|
|
plugins/main/ipvlan \
|
|
plugins/main/loopback \
|
|
plugins/main/macvlan \
|
|
plugins/main/ptp \
|
|
plugins/main/vlan \
|
|
plugins/meta/bandwidth \
|
|
plugins/meta/firewall \
|
|
plugins/meta/portmap \
|
|
plugins/meta/tuning \
|
|
plugins/meta/vrf
|
|
CNI_PLUGINS_INSTALL_BINS = $(CNI_PLUGINS_BUILD_TARGETS)
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBAPPARMOR),y)
|
|
CNI_PLUGINS_DEPENDENCIES += libapparmor
|
|
CNI_PLUGINS_TAGS += apparmor
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
|
CNI_PLUGINS_TAGS += seccomp
|
|
CNI_PLUGINS_DEPENDENCIES += libseccomp host-pkgconf
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
CNI_PLUGINS_TAGS += selinux
|
|
CNI_PLUGINS_DEPENDENCIES += libselinux
|
|
endif
|
|
|
|
define CNI_PLUGINS_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/opt/cni/bin
|
|
$(foreach d,$(CNI_PLUGINS_INSTALL_BINS),\
|
|
$(INSTALL) -D -m 0755 $(@D)/bin/$$(basename $(d)) \
|
|
$(TARGET_DIR)/opt/cni/bin
|
|
)
|
|
endef
|
|
|
|
$(eval $(golang-package))
|