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