config BR2_PACKAGE_NERDCTL
	bool "nerdctl"
	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 # containerd
	depends on BR2_USE_MMU # util-linux
	select BR2_PACKAGE_CONTAINERD # runtime
	select BR2_PACKAGE_HOST_GO
	help
	  Docker-compatible CLI for containerd, controlling runc.

	  https://github.com/containerd/nerdctl

comment "nerdctl 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
