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