--- /dev/null
+config BR2_PACKAGE_CRYPTSETUP
+ bool "cryptsetup"
+ select BR2_PACKAGE_POPT
+ select BR2_PACKAGE_LVM2
+ select BR2_PACKAGE_E2FSPROGS
+ select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
+ depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2
+ depends on BR2_USE_MMU # lvm2, e2fsprogs
+ depends on !BR2_STATIC_LIBS # lvm2
+ depends on BR2_USE_WCHAR # util-linux
+ # Triggers the _gp link issue
+ depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
+ depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405
+ help
+ This tool helps manipulate dm-crypt and luks partitions for
+ on-disk encryption.
+
+ https://code.google.com/p/cryptsetup/
+
+comment "cryptsetup needs a toolchain w/ wchar, threads, dynamic library"
+ depends on BR2_USE_MMU
+ depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
+ depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
+ depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405