brintos

brintos / linux-shallow public Read only

0
0
Text · 1.9 KiB · f24a96a Raw
65 lines · plain
1# SPDX-License-Identifier: GPL-2.0-only2config ROMFS_FS3	tristate "ROM file system support"4	depends on BLOCK || MTD5	help6	  This is a very small read-only file system mainly intended for7	  initial ram disks of installation disks, but it could be used for8	  other read-only media as well.  Read9	  <file:Documentation/filesystems/romfs.rst> for details.10 11	  To compile this file system support as a module, choose M here: the12	  module will be called romfs.  Note that the file system of your13	  root partition (the one containing the directory /) cannot be a14	  module.15 16	  If you don't know whether you need it, then you don't need it:17	  answer N.18 19#20# Select the backing stores to be supported21#22choice23	prompt "RomFS backing stores"24	depends on ROMFS_FS25	default ROMFS_BACKED_BY_BLOCK26	help27	  Select the backing stores to be supported.28 29config ROMFS_BACKED_BY_BLOCK30	bool "Block device-backed ROM file system support"31	depends on BLOCK32	help33	  This permits ROMFS to use block devices buffered through the page34	  cache as the medium from which to retrieve data.  It does not allow35	  direct mapping of the medium.36 37	  If unsure, answer Y.38 39config ROMFS_BACKED_BY_MTD40	bool "MTD-backed ROM file system support"41	depends on MTD=y || (ROMFS_FS=m && MTD)42	help43	  This permits ROMFS to use MTD based devices directly, without the44	  intercession of the block layer (which may have been disabled).  It45	  also allows direct mapping of MTD devices through romfs files under46	  NOMMU conditions if the underlying device is directly addressable by47	  the CPU.48 49	  If unsure, answer Y.50 51config ROMFS_BACKED_BY_BOTH52	bool "Both the above"53	depends on BLOCK && (MTD=y || (ROMFS_FS=m && MTD))54endchoice55 56 57config ROMFS_ON_BLOCK58	bool59	default y if ROMFS_BACKED_BY_BLOCK || ROMFS_BACKED_BY_BOTH60	select BUFFER_HEAD61 62config ROMFS_ON_MTD63	bool64	default y if ROMFS_BACKED_BY_MTD || ROMFS_BACKED_BY_BOTH65