]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
MTD: add MTD tests to compilation
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 8 Dec 2008 11:39:25 +0000 (13:39 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 10 Dec 2008 15:00:44 +0000 (17:00 +0200)
Add MTD tests to Kconfig and Makefiles.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/Kconfig
drivers/mtd/Makefile
drivers/mtd/tests/Makefile [new file with mode: 0644]

index a90d50c2c3e5535343e859c5df1c40c3be7e464a..8581ed9eafe247bc10c8c05187f36977366e75a8 100644 (file)
@@ -45,6 +45,14 @@ config MTD_PARTITIONS
          devices. Partitioning on NFTL 'devices' is a different - that's the
          'normal' form of partitioning used on a block device.
 
+config MTD_TESTS
+       tristate "MTD tests support"
+       depends on m
+       help
+         This option includes various MTD tests into compilation. The tests
+         should normally be compiled as kernel modules. The modules perform
+         various checks and verifications when loaded.
+
 config MTD_REDBOOT_PARTS
        tristate "RedBoot partition table parsing"
        depends on MTD_PARTITIONS
index 4b77335715f0cb64bb702178ced7a547e6aaabea..40d304d6191d16d5be5c69b0b62ddbf99a1dc759 100644 (file)
@@ -29,6 +29,6 @@ obj-$(CONFIG_MTD_OOPS)                += mtdoops.o
 nftl-objs              := nftlcore.o nftlmount.o
 inftl-objs             := inftlcore.o inftlmount.o
 
-obj-y          += chips/ maps/ devices/ nand/ onenand/
+obj-y          += chips/ maps/ devices/ nand/ onenand/ tests/
 
 obj-$(CONFIG_MTD_UBI)          += ubi/
diff --git a/drivers/mtd/tests/Makefile b/drivers/mtd/tests/Makefile
new file mode 100644 (file)
index 0000000..c1d5013
--- /dev/null
@@ -0,0 +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