1 --- a/drivers/mtd/Kconfig
2 +++ b/drivers/mtd/Kconfig
3 @@ -37,6 +37,17 @@ config MTD_UIMAGE_SPLIT
4 depends on MTD_SPLIT_FIRMWARE
7 +comment "Rootfs partition parsers"
9 +config MTD_SPLIT_SQUASHFS_ROOT
10 + bool "Squashfs based root partition parser"
14 + This provides a parsing function which allows to detect the
15 + offset and size of the unused portion of a rootfs partition
16 + containing a squashfs.
21 --- a/drivers/mtd/Makefile
22 +++ b/drivers/mtd/Makefile
23 @@ -7,6 +7,7 @@ obj-$(CONFIG_MTD) += mtd.o
24 mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o
26 mtd-$(CONFIG_MTD_SPLIT) += mtdsplit.o
27 +mtd-$(CONFIG_MTD_SPLIT_SQUASHFS_ROOT) += mtdsplit_squashfs.o
29 obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
30 obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o