Kconfig 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config ROMFS_FS
  3. tristate "ROM file system support"
  4. depends on BLOCK || MTD
  5. help
  6. This is a very small read-only file system mainly intended for
  7. initial ram disks of installation disks, but it could be used for
  8. other read-only media as well. Read
  9. <file:Documentation/filesystems/romfs.rst> for details.
  10. To compile this file system support as a module, choose M here: the
  11. module will be called romfs. Note that the file system of your
  12. root partition (the one containing the directory /) cannot be a
  13. module.
  14. If you don't know whether you need it, then you don't need it:
  15. answer N.
  16. #
  17. # Select the backing stores to be supported
  18. #
  19. choice
  20. prompt "RomFS backing stores"
  21. depends on ROMFS_FS
  22. default ROMFS_BACKED_BY_BLOCK
  23. help
  24. Select the backing stores to be supported.
  25. config ROMFS_BACKED_BY_BLOCK
  26. bool "Block device-backed ROM file system support"
  27. depends on BLOCK
  28. help
  29. This permits ROMFS to use block devices buffered through the page
  30. cache as the medium from which to retrieve data. It does not allow
  31. direct mapping of the medium.
  32. If unsure, answer Y.
  33. config ROMFS_BACKED_BY_MTD
  34. bool "MTD-backed ROM file system support"
  35. depends on MTD=y || (ROMFS_FS=m && MTD)
  36. help
  37. This permits ROMFS to use MTD based devices directly, without the
  38. intercession of the block layer (which may have been disabled). It
  39. also allows direct mapping of MTD devices through romfs files under
  40. NOMMU conditions if the underlying device is directly addressable by
  41. the CPU.
  42. If unsure, answer Y.
  43. config ROMFS_BACKED_BY_BOTH
  44. bool "Both the above"
  45. depends on BLOCK && (MTD=y || (ROMFS_FS=m && MTD))
  46. endchoice
  47. config ROMFS_ON_BLOCK
  48. bool
  49. default y if ROMFS_BACKED_BY_BLOCK || ROMFS_BACKED_BY_BOTH
  50. config ROMFS_ON_MTD
  51. bool
  52. default y if ROMFS_BACKED_BY_MTD || ROMFS_BACKED_BY_BOTH