Skip to content

Commit

Permalink
Convert CONFIG_CMD_YAFFS2 to Kconfig
Browse files Browse the repository at this point in the history
This converts the following to Kconfig:
   CONFIG_CMD_YAFFS2

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Aug 11, 2017
1 parent 9b92a8d commit 7a76431
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions cmd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion cmd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions fs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ source "fs/ubifs/Kconfig"

source "fs/cramfs/Kconfig"

source "fs/yaffs2/Kconfig"

endmenu
7 changes: 7 additions & 0 deletions fs/yaffs2/Kconfig
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 7a76431

Please sign in to comment.