]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
fs: yaffs2: Finish Kconfig migration
authorTom Rini <trini@konsulko.com>
Wed, 20 Oct 2021 01:10:14 +0000 (21:10 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 5 Nov 2021 15:23:29 +0000 (11:23 -0400)
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>
fs/yaffs2/Kconfig
fs/yaffs2/Makefile

index 45ffdf6c26ffd60ff816558d56c4bfd3b19bb79d..c81f4555d60b4d271fc6c0e12b684500a6c119dc 100644 (file)
@@ -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.
index 3c1bb4492b6addfe7a8b5f85b8d26f1b38ba3429..02cae2655500b633717a49cebd94555068ffa896 100644 (file)
@@ -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