config BR2_PACKAGE_EMBIGGEN_DISK
	bool "embiggen-disk"
	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 # util-linux
	select BR2_PACKAGE_HOST_GO
	select BR2_PACKAGE_UTIL_LINUX # sfdisk
	select BR2_PACKAGE_UTIL_LINUX_BINARIES # sfdisk
	help
	  embiggen-disk is a tool to resize disk partitions at runtime.

	  https://github.com/bradfitz/embiggen-disk

comment "embiggen-disk needs a glibc or musl toolchain w/ threads"
	depends on BR2_USE_MMU
	depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS && \
		BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_UCLIBC
