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"
	depends on BR2_PACKAGE_MTD
	default BR2_PACKAGE_MTD20061007

config BR2_PACKAGE_MTD_UTILS
	bool "Use MTD-utils release"
	depends on BR2_PACKAGE_MTD
	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_PACKAGE_MTD
	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"
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_DOCFDISK
	bool "docfdisk"
	default y
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_DOC_LOADBIOS
	bool "doc_loadbios"
	default y
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_ERASE
	bool "erase"
	default y
	depends on BR2_PACKAGE_MTD_20050122

config BR2_PACKAGE_MTD_FLASHCP
	bool "flashcp"
	default y
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_FLASH_ERASE
	bool "flash_erase"
	default y
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_FLASH_ERASEALL
	bool "flash_eraseall"
	default y
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_FLASH_INFO
	bool "flash_info"
	default y
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_FLASH_LOCK
	bool "flash_lock"
	default y
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_FLASH_UNLOCK
	bool "flash_unlock"
	default y
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_FTL_CHECK
	bool "ftl_check"
	default y
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_FTL_FORMAT
	bool "ftl_format"
	default y
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_JFFS2DUMP
	bool "jffs2dump"
	default y
	depends on BR2_PACKAGE_MTD

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
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_MKFSJFFS
	bool "mkfs.jffs"
	default y
	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
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_NANDDUMP
	bool "nanddump"
	default y
	depends on BR2_PACKAGE_MTD

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
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_NFTL_FORMAT
	bool "nftl_format"
	default y
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_NFTLDUMP
	bool "nftldump"
	default y
	depends on BR2_PACKAGE_MTD

config BR2_PACKAGE_MTD_SUMTOOL
	bool "sumtool"
	default y
	depends on BR2_PACKAGE_MTD

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