f67dd39bb2
Rework RAM disk driver to be configured using devicetree and support multiple instances. This patch also removes a copy of the RAM disk driver, tests/subsys/fs/fat_fs_dual_drive/src/disk_access_test_drv.c, that was there for testing multiple disk drivers support. Bonus: one SYS_INIT() less and a memory region can be exported to the host. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
19 lines
404 B
Plaintext
19 lines
404 B
Plaintext
# Copyright (c) 2016 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config DISK_DRIVER_RAM
|
|
bool "RAM Disk"
|
|
default y if DT_HAS_ZEPHYR_RAM_DISK_ENABLED
|
|
help
|
|
RAM buffer used to emulate storage disk.
|
|
This option can be used to test the file
|
|
system.
|
|
|
|
if DISK_DRIVER_RAM
|
|
|
|
module = RAMDISK
|
|
module-str = ramdisk
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
endif # DISK_DRIVER_RAM
|