kernel/3.10: add separate rootfs partition parser
[openwrt/openwrt.git] / target / linux / generic / patches-3.10 / 406-mtd-add-squashfs-parser.patch
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
5 default y
6
7 +comment "Rootfs partition parsers"
8 +
9 +config MTD_SPLIT_SQUASHFS_ROOT
10 + bool "Squashfs based root partition parser"
11 + select MTD_SPLIT
12 + default n
13 + help
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.
17 +
18 config MTD_SPLIT
19 def_bool n
20 help
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
25
26 mtd-$(CONFIG_MTD_SPLIT) += mtdsplit.o
27 +mtd-$(CONFIG_MTD_SPLIT_SQUASHFS_ROOT) += mtdsplit_squashfs.o
28
29 obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
30 obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o