menuconfig BR2_PACKAGE_MTD
	bool "mtd/jffs2 utilities"
	select BR2_PACKAGE_ZLIB
	help
	  Build mtd/jffs utilities

if BR2_PACKAGE_MTD
choice
	prompt "Source package selection"
	default BR2_PACKAGE_MTD_UTILS

config BR2_PACKAGE_MTD_UTILS
	bool "Use MTD-utils release"
	select BR2_PACKAGE_LZO
	help
	  Build mtd/jffs utilities with Dataflash support

config BR2_PACKAGE_MTD_20061007
	bool "Use MTD snapshot from 20061007"
	depends on BR2_DEPRECATED || BR2_RECENT
	help
	  Build mtd/jffs utilities with Dataflash support

config BR2_PACKAGE_MTD_20050122
	bool "Use MTD snapshot from 20050122"
	depends on BR2_DEPRECATED
	help
	  Use the stable release.

config BR2_PACKAGE_MTD_UTILS_GIT
	bool "Use MTD-utils from GIT"
	help
	  Use the latest from GIT or a particular revision.
	  You should probably say NO except for specific purpose.

endchoice

comment "MTD tools selection"

config BR2_PACKAGE_MTD_DOCFDISK
	bool "docfdisk"

config BR2_PACKAGE_MTD_DOC_LOADBIOS
	bool "doc_loadbios"

config BR2_PACKAGE_MTD_ERASE
	bool "erase"
	default y
	depends on BR2_PACKAGE_MTD_20050122

config BR2_PACKAGE_MTD_FLASHCP
	bool "flashcp"
	default y

config BR2_PACKAGE_MTD_FLASH_ERASE
	bool "flash_erase"
	default y

config BR2_PACKAGE_MTD_FLASH_ERASEALL
	bool "flash_eraseall"
	default y

config BR2_PACKAGE_MTD_FLASH_INFO
	bool "flash_info"
	default y

config BR2_PACKAGE_MTD_FLASH_LOCK
	bool "flash_lock"
	default y

config BR2_PACKAGE_MTD_FLASH_UNLOCK
	bool "flash_unlock"
	default y

config BR2_PACKAGE_MTD_FTL_CHECK
	bool "ftl_check"
	default y

config BR2_PACKAGE_MTD_FTL_FORMAT
	bool "ftl_format"
	default y

config BR2_PACKAGE_MTD_JFFS2DUMP
	bool "jffs2dump"
	default y

config BR2_PACKAGE_MTD_JFFS3DUMP
	bool "jffs3dump"
	default y
	depends on BR2_PACKAGE_MTD_20050122

config BR2_PACKAGE_MTD_MKFSJFFS2
	bool "mkfs.jffs2"
	default y

config BR2_PACKAGE_MTD_MKFSJFFS
	bool "mkfs.jffs"
	depends on BR2_PACKAGE_MTD_20050122 || BR2_PACKAGE_MTD_20061007 || BR2_PACKAGE_MTD_UTILS

config BR2_PACKAGE_MTD_MTD_DEBUG
	bool "mtd_debug"
	default y

config BR2_PACKAGE_MTD_NANDDUMP
	bool "nanddump"
	default y

config BR2_PACKAGE_MTD_NANDTEST
	bool "nandtest"
	default y
	depends on BR2_PACKAGE_MTD_UTILS_GIT

config BR2_PACKAGE_MTD_NANDWRITE
	bool "nandwrite"
	default y

config BR2_PACKAGE_MTD_NFTL_FORMAT
	bool "nftl_format"

config BR2_PACKAGE_MTD_NFTLDUMP
	bool "nftldump"

config BR2_PACKAGE_MTD_SUMTOOL
	bool "sumtool"
	default y

config BR2_PACKAGE_MTD_UBIATTACH
	bool "ubiattach"
	default y
	depends on BR2_PACKAGE_MTD_UTILS_GIT

config BR2_PACKAGE_MTD_UBICRC32
	bool "ubicrc32"
	default y
	depends on BR2_PACKAGE_MTD_UTILS_GIT

config BR2_PACKAGE_MTD_UBIDETACH
	bool "ubidetach"
	default y
	depends on BR2_PACKAGE_MTD_UTILS_GIT

config BR2_PACKAGE_MTD_UBIMIRROR
	bool "ubimirror"
	default y
	depends on BR2_PACKAGE_MTD_UTILS_GIT

config BR2_PACKAGE_MTD_UBIMKVOL
	bool "ubimkvol"
	default y
	depends on BR2_PACKAGE_MTD_UTILS_GIT

config BR2_PACKAGE_MTD_UBINFO
	bool "ubinfo"
	default y
	depends on BR2_PACKAGE_MTD_UTILS_GIT

config BR2_PACKAGE_MTD_UBIRMVOL
	bool "ubirmvol"
	default y
	depends on BR2_PACKAGE_MTD_UTILS_GIT

config BR2_PACKAGE_MTD_UBIUPDATEVOL
	bool "ubiupdatevol"
	default y
	depends on BR2_PACKAGE_MTD_UTILS_GIT

endif

