406-mtd-add-squashfs-parser.patch 847 B

123456789101112131415161718192021222324252627282930
  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. +comment "Rootfs partition parsers"
  7. +
  8. +config MTD_SPLIT_SQUASHFS_ROOT
  9. + bool "Squashfs based root partition parser"
  10. + select MTD_SPLIT
  11. + default n
  12. + help
  13. + This provides a parsing function which allows to detect the
  14. + offset and size of the unused portion of a rootfs partition
  15. + containing a squashfs.
  16. +
  17. config MTD_SPLIT
  18. def_bool n
  19. help
  20. --- a/drivers/mtd/Makefile
  21. +++ b/drivers/mtd/Makefile
  22. @@ -7,6 +7,7 @@ obj-$(CONFIG_MTD) += mtd.o
  23. mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o
  24. mtd-$(CONFIG_MTD_SPLIT) += mtdsplit.o
  25. +mtd-$(CONFIG_MTD_SPLIT_SQUASHFS_ROOT) += mtdsplit_squashfs.o
  26. obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
  27. obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o