xref: /openbmc/linux/fs/romfs/Kconfig (revision f52fd5b7)
141810246SAlexey Dobriyanconfig ROMFS_FS
241810246SAlexey Dobriyan	tristate "ROM file system support"
3f52fd5b7SDavid Howells	depends on BLOCK || MTD
441810246SAlexey Dobriyan	---help---
541810246SAlexey Dobriyan	  This is a very small read-only file system mainly intended for
641810246SAlexey Dobriyan	  initial ram disks of installation disks, but it could be used for
741810246SAlexey Dobriyan	  other read-only media as well.  Read
841810246SAlexey Dobriyan	  <file:Documentation/filesystems/romfs.txt> for details.
941810246SAlexey Dobriyan
1041810246SAlexey Dobriyan	  To compile this file system support as a module, choose M here: the
1141810246SAlexey Dobriyan	  module will be called romfs.  Note that the file system of your
1241810246SAlexey Dobriyan	  root partition (the one containing the directory /) cannot be a
1341810246SAlexey Dobriyan	  module.
1441810246SAlexey Dobriyan
1541810246SAlexey Dobriyan	  If you don't know whether you need it, then you don't need it:
1641810246SAlexey Dobriyan	  answer N.
17da4458bdSDavid Howells
18f52fd5b7SDavid Howells#
19f52fd5b7SDavid Howells# Select the backing stores to be supported
20f52fd5b7SDavid Howells#
21f52fd5b7SDavid Howellschoice
22f52fd5b7SDavid Howells	prompt "RomFS backing stores"
23f52fd5b7SDavid Howells	depends on ROMFS_FS
24f52fd5b7SDavid Howells	default ROMFS_BACKED_BY_BLOCK
25f52fd5b7SDavid Howells	help
26f52fd5b7SDavid Howells	  Select the backing stores to be supported.
27f52fd5b7SDavid Howells
28f52fd5b7SDavid Howellsconfig ROMFS_BACKED_BY_BLOCK
29f52fd5b7SDavid Howells	bool "Block device-backed ROM file system support"
30f52fd5b7SDavid Howells	depends on BLOCK
31da4458bdSDavid Howells	help
32da4458bdSDavid Howells	  This permits ROMFS to use block devices buffered through the page
33da4458bdSDavid Howells	  cache as the medium from which to retrieve data.  It does not allow
34da4458bdSDavid Howells	  direct mapping of the medium.
35da4458bdSDavid Howells
36da4458bdSDavid Howells	  If unsure, answer Y.
37da4458bdSDavid Howells
38f52fd5b7SDavid Howellsconfig ROMFS_BACKED_BY_MTD
39da4458bdSDavid Howells	bool "MTD-backed ROM file system support"
40da4458bdSDavid Howells	depends on MTD=y || (ROMFS_FS=m && MTD)
41da4458bdSDavid Howells	help
42da4458bdSDavid Howells	  This permits ROMFS to use MTD based devices directly, without the
43da4458bdSDavid Howells	  intercession of the block layer (which may have been disabled).  It
44da4458bdSDavid Howells	  also allows direct mapping of MTD devices through romfs files under
45da4458bdSDavid Howells	  NOMMU conditions if the underlying device is directly addressable by
46da4458bdSDavid Howells	  the CPU.
47da4458bdSDavid Howells
48da4458bdSDavid Howells	  If unsure, answer Y.
49da4458bdSDavid Howells
50f52fd5b7SDavid Howellsconfig ROMFS_BACKED_BY_BOTH
51f52fd5b7SDavid Howells	bool "Both the above"
52f52fd5b7SDavid Howells	depends on BLOCK && (MTD=y || (ROMFS_FS=m && MTD))
53f52fd5b7SDavid Howellsendchoice
54f52fd5b7SDavid Howells
55f52fd5b7SDavid Howells
56f52fd5b7SDavid Howellsconfig ROMFS_ON_BLOCK
57f52fd5b7SDavid Howells	bool
58f52fd5b7SDavid Howells	default y if ROMFS_BACKED_BY_BLOCK || ROMFS_BACKED_BY_BOTH
59f52fd5b7SDavid Howells
60f52fd5b7SDavid Howellsconfig ROMFS_ON_MTD
61f52fd5b7SDavid Howells	bool
62f52fd5b7SDavid Howells	default y if ROMFS_BACKED_BY_MTD || ROMFS_BACKED_BY_BOTH
63