]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
Convert CONFIG_CMD_YAFFS2 to Kconfig
authorSimon Glass <sjg@chromium.org>
Fri, 4 Aug 2017 22:34:58 +0000 (16:34 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 11 Aug 2017 21:44:50 +0000 (17:44 -0400)
This converts the following to Kconfig:
   CONFIG_CMD_YAFFS2

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
cmd/Kconfig
cmd/Makefile
fs/Kconfig
fs/yaffs2/Kconfig [new file with mode: 0644]

index 3dfc94a1822db3f53aa5d9d9c8474fdbff16bb20..a5c557e5b2697be92610fcd17a93d087602f7465 100644 (file)
@@ -1369,6 +1369,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"
index a85fe25ddaaa7b83a283ba1dfdba39a4d396f762..1bf6e3f71182c3a092bcfcecf069d0e86e27126d 100644 (file)
@@ -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
index e6438ad0ea3958216461ba98f9d38b09cc57a2bc..e6803ac8cb2bba4717cc2012d66ed6301a63cc41 100644 (file)
@@ -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 (file)
index 0000000..45ffdf6
--- /dev/null
@@ -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.