403-mtd-hook-mtdsplit-to-Kbuild.patch 587 B

12345678910111213141516171819202122232425
  1. --- a/drivers/mtd/Kconfig
  2. +++ b/drivers/mtd/Kconfig
  3. @@ -32,6 +32,11 @@ config MTD_UIMAGE_SPLIT
  4. depends on MTD_SPLIT_FIRMWARE
  5. default y
  6. +config MTD_SPLIT
  7. + def_bool n
  8. + help
  9. + Generic MTD split support.
  10. +
  11. endmenu
  12. config MTD_TESTS
  13. --- a/drivers/mtd/Makefile
  14. +++ b/drivers/mtd/Makefile
  15. @@ -6,6 +6,8 @@
  16. obj-$(CONFIG_MTD) += mtd.o
  17. mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o
  18. +mtd-$(CONFIG_MTD_SPLIT) += mtdsplit.o
  19. +
  20. obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
  21. obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
  22. obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o