summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-10-19 21:10:14 -0400
committerTom Rini <trini@konsulko.com>2021-11-05 11:23:29 -0400
commit2ad74301a0a8542ff7672df2ab45d27e6286e0e2 (patch)
tree5c230b43bd8b2777b9e790c8ad76021eb8d5fcb8 /fs
parent2a5ad542e6c238ff5c0b490b49354e780ab46d71 (diff)
downloadu-boot-2ad74301a0a8542ff7672df2ab45d27e6286e0e2.tar.gz
u-boot-2ad74301a0a8542ff7672df2ab45d27e6286e0e2.tar.bz2
u-boot-2ad74301a0a8542ff7672df2ab45d27e6286e0e2.zip
fs: yaffs2: Finish Kconfig migration
For the symbols which are both hard-coded as enabled and used, move to Kconfig. The rest of the CONFIG_YAFFS namespace is unselected anywhere, so we leave it as is. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/yaffs2/Kconfig12
-rw-r--r--fs/yaffs2/Makefile4
2 files changed, 12 insertions, 4 deletions
diff --git a/fs/yaffs2/Kconfig b/fs/yaffs2/Kconfig
index 45ffdf6c26..c81f4555d6 100644
--- a/fs/yaffs2/Kconfig
+++ b/fs/yaffs2/Kconfig
@@ -1,5 +1,17 @@
+config YAFFS_DIRECT
+ bool
+
+config YAFFS_PROVIDE_DEFS
+ bool
+
+config YAFFSFS_PROVIDE_VALUES
+ bool
+
config YAFFS2
bool "YAFFS2 filesystem support"
+ select YAFFS_DIRECT
+ select YAFFS_PROVIDE_DEFS
+ select YAFFSFS_PROVIDE_VALUES
help
This provides access to YAFFS2 filesystems. Yet Another Flash
Filesystem 2 is a filesystem designed specifically for NAND flash.
diff --git a/fs/yaffs2/Makefile b/fs/yaffs2/Makefile
index 3c1bb4492b..02cae26555 100644
--- a/fs/yaffs2/Makefile
+++ b/fs/yaffs2/Makefile
@@ -16,7 +16,3 @@ obj-y := \
yaffs_packedtags1.o yaffs_packedtags2.o yaffs_qsort.o \
yaffs_summary.o yaffs_tagscompat.o yaffs_verify.o yaffs_yaffs1.o \
yaffs_yaffs2.o yaffs_mtdif.o yaffs_mtdif2.o
-
-ccflags-y = -DCONFIG_YAFFS_DIRECT -DCONFIG_YAFFS_SHORT_NAMES_IN_RAM \
- -DCONFIG_YAFFS_YAFFS2 -DNO_Y_INLINE \
- -DCONFIG_YAFFS_PROVIDE_DEFS -DCONFIG_YAFFSFS_PROVIDE_VALUES