Skip to contentSkip to conversation

fs: yaffs2: Finish Kconfig migration

PATCH In review Tom Rini 1 participant 2 messages Oct 20, 2021 – Nov 5, 2021

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 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.

---
 fs/yaffs2/Kconfig  | 12 ++++++++++++
 fs/yaffs2/Makefile |  4 ----
 2 files changed, 12 insertions(+), 4 deletions(-)
fs/yaffs2/Kconfig +12 -0
index 45ffdf6c26ff..c81f4555d60b 100644
@@ -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.
fs/yaffs2/Makefile +0 -4
index 3c1bb4492b6a..02cae2655500 100644
@@ -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
Signature · 1 line
2.25.1
author
#1 lore raw
Quoted 5 lines · Tom Rini

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.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom