1config BR2_PACKAGE_CONTAINERD
2	bool "containerd"
3	depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
4	depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
5	depends on BR2_TOOLCHAIN_HAS_THREADS
6	depends on !BR2_TOOLCHAIN_USES_UCLIBC # runc
7	depends on BR2_USE_MMU # util-linux
8	select BR2_PACKAGE_RUNC if !BR2_PACKAGE_CRUN # runtime dependency
9	select BR2_PACKAGE_UTIL_LINUX # runtime dependency
10	select BR2_PACKAGE_UTIL_LINUX_BINARIES
11	select BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT
12	select BR2_PACKAGE_UTIL_LINUX_MOUNTPOINT
13	select BR2_PACKAGE_UTIL_LINUX_MOUNT
14	help
15	  containerd is a daemon to control runC.
16
17	  https://containerd.io/
18
19if BR2_PACKAGE_CONTAINERD
20
21config BR2_PACKAGE_CONTAINERD_DRIVER_BTRFS
22	bool "btrfs snapshot driver"
23	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
24	help
25	  Build the btrfs snapshot driver for containerd.
26
27comment "brtfs snapshot driver needs headers >= 4.12"
28	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
29
30config BR2_PACKAGE_CONTAINERD_DRIVER_DEVMAPPER
31	bool "devmapper snapshot driver"
32	depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2
33	depends on BR2_USE_MMU # lvm2
34	depends on !BR2_STATIC_LIBS # lvm2
35	select BR2_PACKAGE_LVM2
36	help
37	  Build the devmapper snapshot driver for containerd.
38
39comment "devmapper snapshot driver needs a toolchain w/ threads, dynamic library"
40	depends on BR2_USE_MMU
41	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
42
43config BR2_PACKAGE_CONTAINERD_DRIVER_ZFS
44	bool "zfs snapshot driver"
45	depends on BR2_LINUX_KERNEL # zfs
46	depends on BR2_PACKAGE_HAS_UDEV # zfs
47	depends on BR2_USE_MMU  # zfs
48	depends on BR2_TOOLCHAIN_HAS_THREADS  # zfs
49	select BR2_PACKAGE_ZFS
50	help
51	  Build the zfs snapshot driver for containerd.
52
53comment "zfs snapshot driver needs a Linux kernel, udev, toolchain w/ threads"
54	depends on BR2_USE_MMU
55	depends on !BR2_LINUX_KERNEL || !BR2_PACKAGE_HAS_UDEV || \
56		!BR2_TOOLCHAIN_HAS_THREADS
57
58config BR2_PACKAGE_CONTAINERD_CRI
59	bool "Kubernetes CRI support"
60	help
61	  Build containerd with Kubernetes CRI support.
62
63endif
64
65comment "containerd needs a glibc or musl toolchain w/ threads"
66	depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
67	depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
68	depends on BR2_USE_MMU
69	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_UCLIBC
70