Kconfig 1.8 KB

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