Skip to contentSkip to conversation

MTD: Add MTD NAND tests support

PATCH In review Akinobu Mita 1 participant 1 message Oct 21, 2009 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 MTD: Add MTD NAND tests support

This creates new MTD test group called MTD NAND tests which require MTD NAND device support and moves mtd_oobtest, mtd_pagetest, and mtd_subpagetest into this group.

Cc David Woodhouse <[email protected]>
Cc Artem Bityutskiy <[email protected]>
Cc vimal singh <[email protected]>
---
 drivers/mtd/Kconfig        |    7 +++++++
 drivers/mtd/tests/Makefile |    6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)
drivers/mtd/Kconfig +7 -0
index ecf90f5..e2e22fa 100644
@@ -33,6 +33,13 @@ config MTD_TESTS
 	  should normally be compiled as kernel modules. The modules perform
 	  various checks and verifications when loaded.
 
+config MTD_NAND_TESTS
+	tristate "MTD NAND tests support"
+	depends on MTD_TESTS
+	depends on MTD_NAND || MTD_ONENAND
+	help
+	  This option enables MTD tests which require NAND Device support.
+
 config MTD_CONCAT
 	tristate "MTD concatenating support"
 	help
drivers/mtd/tests/Makefile +3 -3
index c1d5013..919d066 100644
@@ -1,7 +1,7 @@
-obj-$(CONFIG_MTD_TESTS) += mtd_oobtest.o
-obj-$(CONFIG_MTD_TESTS) += mtd_pagetest.o
 obj-$(CONFIG_MTD_TESTS) += mtd_readtest.o
 obj-$(CONFIG_MTD_TESTS) += mtd_speedtest.o
 obj-$(CONFIG_MTD_TESTS) += mtd_stresstest.o
-obj-$(CONFIG_MTD_TESTS) += mtd_subpagetest.o
 obj-$(CONFIG_MTD_TESTS) += mtd_torturetest.o
+obj-$(CONFIG_MTD_NAND_TESTS) += mtd_oobtest.o
+obj-$(CONFIG_MTD_NAND_TESTS) += mtd_pagetest.o
+obj-$(CONFIG_MTD_NAND_TESTS) += mtd_subpagetest.o
Signature · 1 line
1.5.4.3