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