1config BR2_PACKAGE_DOCKER_ENGINE
2	bool "docker-engine"
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 # containerd -> runc
7	depends on BR2_USE_MMU # containerd
8	depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS # libseccomp
9	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # libseccomp
10	select BR2_PACKAGE_CGROUPFS_MOUNT if !BR2_PACKAGE_SYSTEMD # runtime dependency
11	select BR2_PACKAGE_CONTAINERD # runtime dependency
12	select BR2_PACKAGE_IPTABLES # runtime dependency
13	select BR2_PACKAGE_LIBSECCOMP
14	help
15	  Docker is a platform to build, ship,
16	  and run applications as lightweight containers.
17
18	  https://github.com/docker/docker
19
20if BR2_PACKAGE_DOCKER_ENGINE
21
22config BR2_PACKAGE_DOCKER_ENGINE_DRIVER_BTRFS
23	bool "btrfs filesystem driver"
24	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
25	help
26	  Build the btrfs filesystem driver for Docker.
27
28comment "brtfs filesystem driver needs headers >= 4.12"
29	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
30
31config BR2_PACKAGE_DOCKER_ENGINE_DRIVER_DEVICEMAPPER
32	bool "devicemapper filesystem driver"
33	depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2
34	depends on BR2_USE_MMU # lvm2
35	depends on !BR2_STATIC_LIBS # lvm2
36	select BR2_PACKAGE_LVM2
37	help
38	  Build the devicemapper filesystem driver for Docker.
39
40config BR2_PACKAGE_DOCKER_ENGINE_DRIVER_VFS
41	bool "vfs filesystem driver"
42	depends on BR2_USE_WCHAR # gvfs
43	depends on BR2_USE_MMU # gvfs
44	depends on BR2_TOOLCHAIN_HAS_THREADS # gvfs
45	depends on !BR2_STATIC_LIBS # gvfs
46	select BR2_PACKAGE_GVFS
47	help
48	  Build the vfs filesystem driver for Docker.
49
50endif
51
52comment "docker-engine needs a glibc or musl toolchain w/ threads, headers >= 3.17"
53	depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
54	depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
55	depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS
56	depends on !BR2_TOOLCHAIN_HAS_THREADS || \
57		BR2_TOOLCHAIN_USES_UCLIBC || \
58		!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
59	depends on BR2_USE_MMU
60