Initial Commit
- initial default booting image
This commit is contained in:
18
package/cni-plugins/Config.in
Normal file
18
package/cni-plugins/Config.in
Normal file
@@ -0,0 +1,18 @@
|
||||
config BR2_PACKAGE_CNI_PLUGINS
|
||||
bool "cni-plugins"
|
||||
depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
|
||||
depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_TOOLCHAIN_USES_UCLIBC # no fexecve
|
||||
depends on BR2_USE_MMU
|
||||
select BR2_PACKAGE_HOST_GO
|
||||
help
|
||||
Container Networking Interface plugins.
|
||||
|
||||
https://github.com/containernetworking/plugins
|
||||
|
||||
comment "cni-plugins needs a glibc or musl toolchain w/ threads"
|
||||
depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS && \
|
||||
BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_UCLIBC
|
||||
3
package/cni-plugins/cni-plugins.hash
Normal file
3
package/cni-plugins/cni-plugins.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 95b639f8ccbb714da98e331ef8813f790d447fce5417f2f8a575f3c62bfb1474 cni-plugins-1.7.1-go2.tar.gz
|
||||
sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE
|
||||
55
package/cni-plugins/cni-plugins.mk
Normal file
55
package/cni-plugins/cni-plugins.mk
Normal file
@@ -0,0 +1,55 @@
|
||||
################################################################################
|
||||
#
|
||||
# cni-plugins
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CNI_PLUGINS_VERSION = 1.7.1
|
||||
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/ipam/host-local \
|
||||
plugins/ipam/static \
|
||||
plugins/main/bridge \
|
||||
plugins/main/dummy \
|
||||
plugins/main/host-device \
|
||||
plugins/main/ipvlan \
|
||||
plugins/main/loopback \
|
||||
plugins/main/macvlan \
|
||||
plugins/main/ptp \
|
||||
plugins/main/tap \
|
||||
plugins/main/vlan \
|
||||
plugins/meta/bandwidth \
|
||||
plugins/meta/firewall \
|
||||
plugins/meta/portmap \
|
||||
plugins/meta/sbr \
|
||||
plugins/meta/tuning \
|
||||
plugins/meta/vrf
|
||||
|
||||
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_BUILD_TARGETS),\
|
||||
$(INSTALL) -D -m 0755 $(@D)/bin/$(notdir $(d)) \
|
||||
$(TARGET_DIR)/opt/cni/bin/$(notdir $(d))
|
||||
)
|
||||
endef
|
||||
|
||||
$(eval $(golang-package))
|
||||
Reference in New Issue
Block a user