Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MTD: add MTD tests to compilation

Add MTD tests to Kconfig and Makefiles.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

+16 -1
+8
drivers/mtd/Kconfig
··· 45 45 devices. Partitioning on NFTL 'devices' is a different - that's the 46 46 'normal' form of partitioning used on a block device. 47 47 48 + config MTD_TESTS 49 + tristate "MTD tests support" 50 + depends on m 51 + help 52 + This option includes various MTD tests into compilation. The tests 53 + should normally be compiled as kernel modules. The modules perform 54 + various checks and verifications when loaded. 55 + 48 56 config MTD_REDBOOT_PARTS 49 57 tristate "RedBoot partition table parsing" 50 58 depends on MTD_PARTITIONS
+1 -1
drivers/mtd/Makefile
··· 29 29 nftl-objs := nftlcore.o nftlmount.o 30 30 inftl-objs := inftlcore.o inftlmount.o 31 31 32 - obj-y += chips/ maps/ devices/ nand/ onenand/ 32 + obj-y += chips/ maps/ devices/ nand/ onenand/ tests/ 33 33 34 34 obj-$(CONFIG_MTD_UBI) += ubi/
+7
drivers/mtd/tests/Makefile
··· 1 + obj-$(CONFIG_MTD_TESTS) += mtd_oobtest.o 2 + obj-$(CONFIG_MTD_TESTS) += mtd_pagetest.o 3 + obj-$(CONFIG_MTD_TESTS) += mtd_readtest.o 4 + obj-$(CONFIG_MTD_TESTS) += mtd_speedtest.o 5 + obj-$(CONFIG_MTD_TESTS) += mtd_stresstest.o 6 + obj-$(CONFIG_MTD_TESTS) += mtd_subpagetest.o 7 + obj-$(CONFIG_MTD_TESTS) += mtd_torturetest.o