if BR2_PACKAGE_MTD
-# The three hidden options below match mtd configure script options
-# --enable-jffs, --enable-ubifs and --enable-tests.
+# The two hidden options below match mtd configure script options
+# --enable-jffs and --enable-ubifs
config BR2_PACKAGE_MTD_JFFS_UTILS
bool
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
select BR2_PACKAGE_ZLIB
-config BR2_PACKAGE_MTD_TESTS
- bool
- depends on BR2_TOOLCHAIN_HAS_THREADS
-
comment "MTD tools selection"
config BR2_PACKAGE_MTD_DOCFDISK
bool "ubiblock"
default y
+config BR2_PACKAGE_MTD_TESTS
+ bool "MTD test tools"
+ depends on BR2_USE_MMU # fork() in fstests
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ help
+ Build and install tools for testing MTD devices and drivers.
+
+if BR2_PACKAGE_MTD_TESTS
+
+config BR2_PACKAGE_MTD_FLASH_READTEST
+ bool "flash_readtest"
+
+config BR2_PACKAGE_MTD_FLASH_SPEED
+ bool "flash_speed"
+
+config BR2_PACKAGE_MTD_FLASH_STRESS
+ bool "flash_stress"
+
+config BR2_PACKAGE_MTD_FLASH_TORTURE
+ bool "flash_torture"
+
config BR2_PACKAGE_MTD_INTEGCK
bool "integck"
- depends on BR2_TOOLCHAIN_HAS_THREADS # mtd-tests
- depends on BR2_USE_MMU # fork()
- select BR2_PACKAGE_MTD_TESTS
- help
- Install the integck test program.
-comment "integck needs a toolchain w/ threads"
- depends on !BR2_TOOLCHAIN_HAS_THREADS
+config BR2_PACKAGE_MTD_NANDBITERRS
+ bool "nandbiterrs"
+
+config BR2_PACKAGE_MTD_NANDPAGETEST
+ bool "nandpagetest"
+
+config BR2_PACKAGE_MTD_NANDSUBPAGETEST
+ bool "nandsubpagetest"
+
+endif
+
+comment "MTD test tools need a toolchain w/ threads"
depends on BR2_USE_MMU
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
endif
endif
ifeq ($(BR2_PACKAGE_MTD_TESTS),y)
-MTD_CONF_OPTS += --enable-tests
+MTD_CONF_OPTS += --enable-tests --enable-install-tests
else
-MTD_CONF_OPTS += --disable-tests
+MTD_CONF_OPTS += --disable-tests --disable-install-tests
endif
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
MTD_TARGETS_$(BR2_PACKAGE_MTD_UBIUPDATEVOL) += ubiupdatevol
MTD_TARGETS_$(BR2_PACKAGE_MTD_UBIBLOCK) += ubiblock
MTD_TARGETS_$(BR2_PACKAGE_MTD_MKFSUBIFS) += mkfs.ubifs
+MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_READTEST) += flash_readtest
+MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_SPEED) += flash_speed
+MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_STRESS) += flash_stress
+MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_TORTURE) += flash_torture
MTD_TARGETS_$(BR2_PACKAGE_MTD_INTEGCK) += integck
+MTD_TARGETS_$(BR2_PACKAGE_MTD_NANDBITERRS) += nandbiterrs
+MTD_TARGETS_$(BR2_PACKAGE_MTD_NANDPAGETEST) += nandpagetest
+MTD_TARGETS_$(BR2_PACKAGE_MTD_NANDSUBPAGETEST) += nandsubpagetest
define MTD_INSTALL_TARGET_CMDS
$(foreach f,$(MTD_TARGETS_y), \