config BR2_PACKAGE_CHIP_MTD_UTILS
	bool "mtd, jffs2 and ubi/ubifs tools"
	help
	  Build mtd, jffs2 and ubi/ubifs tools

	  http://www.linux-mtd.infradead.org/

if BR2_PACKAGE_CHIP_MTD_UTILS
comment "MTD tools selection"

config BR2_PACKAGE_CHIP_MTD_UTILS_DOCFDISK
	bool "docfdisk"

config BR2_PACKAGE_CHIP_MTD_UTILS_DOC_LOADBIOS
	bool "doc_loadbios"

config BR2_PACKAGE_CHIP_MTD_UTILS_FLASHCP
	bool "flashcp"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_FLASH_ERASE
	bool "flash_erase"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_FLASH_LOCK
	bool "flash_lock"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_FLASH_OTP_DUMP
	bool "flash_otp_dump"

config BR2_PACKAGE_CHIP_MTD_UTILS_FLASH_OTP_INFO
	bool "flash_otp_info"

config BR2_PACKAGE_CHIP_MTD_UTILS_FLASH_OTP_LOCK
	bool "flash_otp_lock"

config BR2_PACKAGE_CHIP_MTD_UTILS_FLASH_OTP_WRITE
	bool "flash_otp_write"

config BR2_PACKAGE_CHIP_MTD_UTILS_FLASH_UNLOCK
	bool "flash_unlock"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_FTL_CHECK
	bool "ftl_check"

config BR2_PACKAGE_CHIP_MTD_UTILS_FTL_FORMAT
	bool "ftl_format"

config BR2_PACKAGE_CHIP_MTD_UTILS_JFFS2DUMP
	bool "jffs2dump"

config BR2_PACKAGE_CHIP_MTD_UTILS_MKFSJFFS2
	bool "mkfs.jffs2"
	select BR2_PACKAGE_ZLIB
	select BR2_PACKAGE_LZO

config BR2_PACKAGE_CHIP_MTD_UTILS_MKFSUBIFS
	bool "mkfs.ubifs"
	select BR2_PACKAGE_ZLIB
	select BR2_PACKAGE_LZO
	select BR2_PACKAGE_UTIL_LINUX
	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
	depends on BR2_USE_WCHAR # util-linux

comment "mkfs.ubifs needs a toolchain w/ wchar"
	depends on !BR2_USE_WCHAR

config BR2_PACKAGE_CHIP_MTD_UTILS_MTD_DEBUG
	bool "mtd_debug"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_MTDPART
	bool "mtdpart"

config BR2_PACKAGE_CHIP_MTD_UTILS_NANDDUMP
	bool "nanddump"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_NANDTEST
	bool "nandtest"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_NANDWRITE
	bool "nandwrite"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_NFTLDUMP
	bool "nftldump"

config BR2_PACKAGE_CHIP_MTD_UTILS_NFTL_FORMAT
	bool "nftl_format"

config BR2_PACKAGE_CHIP_MTD_UTILS_RECV_IMAGE
	bool "recv_image"

config BR2_PACKAGE_CHIP_MTD_UTILS_RFDDUMP
	bool "rfddump"

config BR2_PACKAGE_CHIP_MTD_UTILS_RFDFORMAT
	bool "rfdformat"

config BR2_PACKAGE_CHIP_MTD_UTILS_SERVE_IMAGE
	bool "serve_image"

config BR2_PACKAGE_CHIP_MTD_UTILS_SUMTOOL
	bool "sumtool"

config BR2_PACKAGE_CHIP_MTD_UTILS_MTDINFO
	bool "mtdinfo"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_UBIATTACH
	bool "ubiattach"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_UBICRC32
	bool "ubicrc32"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_UBIDETACH
	bool "ubidetach"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_UBIFORMAT
	bool "ubiformat"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_UBIMKVOL
	bool "ubimkvol"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_UBINFO
	bool "ubinfo"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_UBINIZE
	bool "ubinize"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_UBIRENAME
	bool "ubirename"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_UBIRMVOL
	bool "ubirmvol"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_UBIRSVOL
	bool "ubirsvol"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_UBIUPDATEVOL
	bool "ubiupdatevol"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_UBIBLOCK
	bool "ubiblock"
	default y

config BR2_PACKAGE_CHIP_MTD_UTILS_INTEGCK
	bool "integck"
	depends on BR2_USE_MMU # fork()
	help
	  Install the integck test program.

endif
