config BR2_PACKAGE_CRYPTSETUP
	bool "cryptsetup"
	depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2
	depends on BR2_USE_MMU # lvm2, libargon2
	depends on !BR2_STATIC_LIBS # lvm2, libargon2
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
	select BR2_PACKAGE_ARGP_STANDALONE if BR2_PACKAGE_LIBSSH && \
		(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL)
	select BR2_PACKAGE_POPT
	select BR2_PACKAGE_LVM2
	select BR2_PACKAGE_UTIL_LINUX
	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
	select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
	select BR2_PACKAGE_JSON_C
	select BR2_PACKAGE_LIBARGON2
	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
	help
	  This tool helps manipulate dm-crypt and luks partitions for
	  on-disk encryption.

	  https://gitlab.com/cryptsetup/cryptsetup

comment "cryptsetup needs a toolchain w/ threads, dynamic library"
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
