[U-Boot] [PATCH v2 34/42] Convert CONFIG_CMD_YAFFS2 to Kconfig
Simon Glass
sjg at chromium.org
Fri Aug 4 22:34:58 UTC 2017
This converts the following to Kconfig:
CONFIG_CMD_YAFFS2
Signed-off-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
---
Changes in v2: None
cmd/Kconfig | 11 +++++++++++
cmd/Makefile | 2 +-
fs/Kconfig | 2 ++
fs/yaffs2/Kconfig | 7 +++++++
4 files changed, 21 insertions(+), 1 deletion(-)
create mode 100644 fs/yaffs2/Kconfig
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 6a895bbac5..f8017f885a 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1360,6 +1360,17 @@ config CMD_SCSI
scan the bus, reset the bus, read and write data and get information
about devices.
+config CMD_YAFFS2
+ bool "yaffs2 - Access of YAFFS2 filesystem"
+ depends on YAFFS2
+ default y
+ help
+ This provides commands for accessing a YAFFS2 filesystem. Yet
+ Another Flash Filesystem 2 is a filesystem designed specifically
+ for NAND flash. It incorporates bad-block management and ensures
+ that device writes are sequential regardless of filesystem
+ activity.
+
endmenu
menu "Debug commands"
diff --git a/cmd/Makefile b/cmd/Makefile
index a85fe25dda..1bf6e3f711 100644
--- a/cmd/Makefile
+++ b/cmd/Makefile
@@ -132,7 +132,7 @@ obj-$(CONFIG_CMD_FS_UUID) += fs_uuid.o
obj-$(CONFIG_CMD_USB_MASS_STORAGE) += usb_mass_storage.o
obj-$(CONFIG_CMD_THOR_DOWNLOAD) += thordown.o
obj-$(CONFIG_CMD_XIMG) += ximg.o
-obj-$(CONFIG_YAFFS2) += yaffs2.o
+obj-$(CONFIG_CMD_YAFFS2) += yaffs2.o
obj-$(CONFIG_CMD_SPL) += spl.o
obj-$(CONFIG_CMD_ZIP) += zip.o
obj-$(CONFIG_CMD_ZFS) += zfs.o
diff --git a/fs/Kconfig b/fs/Kconfig
index e6438ad0ea..e6803ac8cb 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -18,4 +18,6 @@ source "fs/ubifs/Kconfig"
source "fs/cramfs/Kconfig"
+source "fs/yaffs2/Kconfig"
+
endmenu
diff --git a/fs/yaffs2/Kconfig b/fs/yaffs2/Kconfig
new file mode 100644
index 0000000000..45ffdf6c26
--- /dev/null
+++ b/fs/yaffs2/Kconfig
@@ -0,0 +1,7 @@
+config YAFFS2
+ bool "YAFFS2 filesystem support"
+ help
+ This provides access to YAFFS2 filesystems. Yet Another Flash
+ Filesystem 2 is a filesystem designed specifically for NAND flash.
+ It incorporates bad-block management and ensures that device
+ writes are sequential regardless of filesystem activity.
--
2.14.0.rc1.383.gd1ce394fe2-goog
More information about the U-Boot
mailing list