2012-04-06 18:33:17 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 18:33:17 +02:00
|
|
|
#
|
2012-04-13 04:14:09 +02:00
|
|
|
|
|
|
|
config EXAMPLES_MOUNT
|
2018-09-03 17:29:56 +02:00
|
|
|
tristate "File system mount example"
|
2012-04-13 04:14:09 +02:00
|
|
|
default n
|
2019-10-26 21:47:03 +02:00
|
|
|
select LIB_BOARDCTL if !EXAMPLES_MOUNT_BLOCKDEVICE
|
|
|
|
select BOARDCTL_MKRD if !EXAMPLES_MOUNT_BLOCKDEVICE
|
2012-04-13 04:14:09 +02:00
|
|
|
---help---
|
|
|
|
Enable the file system mount example
|
|
|
|
|
|
|
|
if EXAMPLES_MOUNT
|
2014-01-01 15:52:58 +01:00
|
|
|
|
|
|
|
config EXAMPLES_MOUNT_BLOCKDEVICE
|
|
|
|
bool "Use block device"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Use an existing block device to mount. If EXAMPLES_MOUNT_BLOCKDEVICE
|
|
|
|
is not selected, then a RAM disk will be configured for the test.
|
|
|
|
|
|
|
|
if EXAMPLES_MOUNT_BLOCKDEVICE
|
|
|
|
|
|
|
|
config EXAMPLES_MOUNT_DEVNAME
|
|
|
|
string "Block device name"
|
|
|
|
default "/dev/mtdblock0"
|
|
|
|
---help---
|
|
|
|
The name of the user-provided block device to mount. Must be
|
|
|
|
provided if EXAMPLES_MOUNT_BLOCKDEVICE is selected.
|
|
|
|
|
|
|
|
endif # EXAMPLES_MOUNT_BLOCKDEVICE
|
|
|
|
|
|
|
|
if !EXAMPLES_MOUNT_BLOCKDEVICE
|
|
|
|
|
|
|
|
config EXAMPLES_MOUNT_NSECTORS
|
|
|
|
int "RAM disk number of sectors"
|
2020-04-25 19:04:31 +02:00
|
|
|
default 2048
|
2014-01-01 15:52:58 +01:00
|
|
|
---help---
|
|
|
|
The number of "sectors" in the RAM disk used when
|
|
|
|
EXAMPLES_MOUNT_BLOCKDEVICE is not selected.
|
|
|
|
|
|
|
|
config EXAMPLES_MOUNT_SECTORSIZE
|
|
|
|
int "RAM disk sector size"
|
|
|
|
default 512
|
|
|
|
---help---
|
|
|
|
The size of each sectors in the RAM disk used when
|
|
|
|
EXAMPLES_MOUNT_BLOCKDEVICE is not selected.
|
|
|
|
|
|
|
|
config EXAMPLES_MOUNT_RAMDEVNO
|
|
|
|
int "RAM disk device number"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
The RAM device minor number used to mount the RAM disk used when
|
|
|
|
EXAMPLES_MOUNT_BLOCKDEVICE is not selected. The default is zero
|
|
|
|
(meaning that "/dev/ram0" will be used).
|
|
|
|
|
|
|
|
endif # !EXAMPLES_MOUNT_BLOCKDEVICE
|
|
|
|
endif # EXAMPLES_MOUNT
|