Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
config BR2_PACKAGE_CONTAINERD
bool "containerd"
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 # runc
depends on BR2_USE_MMU # util-linux
select BR2_PACKAGE_HOST_GO
select BR2_PACKAGE_RUNC if !BR2_PACKAGE_CRUN # runtime dependency
select BR2_PACKAGE_UTIL_LINUX # runtime dependency
select BR2_PACKAGE_UTIL_LINUX_BINARIES
select BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT
select BR2_PACKAGE_UTIL_LINUX_MOUNTPOINT
select BR2_PACKAGE_UTIL_LINUX_MOUNT
help
containerd is a daemon to control runC.
https://containerd.io/
if BR2_PACKAGE_CONTAINERD
config BR2_PACKAGE_CONTAINERD_DRIVER_BTRFS
bool "btrfs snapshot driver"
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
help
Build the btrfs snapshot driver for containerd.
comment "brtfs snapshot driver needs headers >= 4.12"
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
config BR2_PACKAGE_CONTAINERD_DRIVER_DEVMAPPER
bool "devmapper snapshot driver"
depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2
depends on BR2_USE_MMU # lvm2
select BR2_PACKAGE_LVM2
help
Build the devmapper snapshot driver for containerd.
comment "devmapper snapshot driver needs a toolchain w/ threads"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS
config BR2_PACKAGE_CONTAINERD_DRIVER_ZFS
bool "zfs snapshot driver"
depends on BR2_LINUX_KERNEL # zfs
depends on BR2_PACKAGE_HAS_UDEV # zfs
depends on BR2_USE_MMU # zfs
depends on BR2_TOOLCHAIN_HAS_THREADS # zfs
select BR2_PACKAGE_ZFS
help
Build the zfs snapshot driver for containerd.
comment "zfs snapshot driver needs a Linux kernel, udev, toolchain w/ threads"
depends on BR2_USE_MMU
depends on !BR2_LINUX_KERNEL || !BR2_PACKAGE_HAS_UDEV || \
!BR2_TOOLCHAIN_HAS_THREADS
config BR2_PACKAGE_CONTAINERD_CRI
bool "Kubernetes CRI support"
help
Build containerd with Kubernetes CRI support.
endif
comment "containerd needs a glibc or musl toolchain w/ threads"
depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_UCLIBC

View File

@@ -0,0 +1,3 @@
# Computed locally
sha256 eadaa5301c0f633f6fed6a3b22f5cf4343ac522401ad2e84bb3299f811a35976 containerd-2.0.11-go2.tar.gz
sha256 4bbe3b885e8cd1907ab4cf9a41e862e74e24b5422297a4f2fe524e6a30ada2b4 LICENSE

View File

@@ -0,0 +1,63 @@
################################################################################
#
# containerd
#
################################################################################
CONTAINERD_VERSION = 2.0.11
CONTAINERD_SITE = $(call github,containerd,containerd,v$(CONTAINERD_VERSION))
CONTAINERD_LICENSE = Apache-2.0
CONTAINERD_LICENSE_FILES = LICENSE
CONTAINERD_CPE_ID_VENDOR = linuxfoundation
CONTAINERD_GOMOD = github.com/containerd/containerd/v2
CONTAINERD_LDFLAGS = \
-X $(CONTAINERD_GOMOD)/version.Version=$(CONTAINERD_VERSION)
CONTAINERD_BUILD_TARGETS = \
cmd/containerd \
cmd/containerd-shim-runc-v2 \
cmd/ctr
CONTAINERD_TAGS = no_aufs
ifeq ($(BR2_PACKAGE_LIBAPPARMOR),y)
CONTAINERD_DEPENDENCIES += libapparmor
CONTAINERD_TAGS += apparmor
endif
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
CONTAINERD_DEPENDENCIES += libseccomp host-pkgconf
CONTAINERD_TAGS += seccomp
endif
ifneq ($(BR2_PACKAGE_CONTAINERD_DRIVER_BTRFS),y)
CONTAINERD_TAGS += no_btrfs
endif
ifneq ($(BR2_PACKAGE_CONTAINERD_DRIVER_DEVMAPPER),y)
CONTAINERD_TAGS += no_devmapper
endif
ifneq ($(BR2_PACKAGE_CONTAINERD_DRIVER_ZFS),y)
CONTAINERD_TAGS += no_zfs
endif
ifneq ($(BR2_PACKAGE_CONTAINERD_CRI),y)
CONTAINERD_TAGS += no_cri
endif
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
# Go exe build with PIE doesn't work with musl.
# See: https://github.com/golang/go/issues/17847
CONTAINERD_EXTLDFLAGS += -Wl,--no-pie
endif
define CONTAINERD_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 0644 $(@D)/containerd.service \
$(TARGET_DIR)/usr/lib/systemd/system/containerd.service
$(SED) 's,/usr/local/bin,/usr/bin,g' $(TARGET_DIR)/usr/lib/systemd/system/containerd.service
endef
$(eval $(golang-package))