
From: Simon Glass <sjg@chromium.org> There is currently no Kconfig used and the filesystem code is always included in U-Boot proper. Add an option to control this. For now it is always on. Signed-off-by: Simon Glass <sjg@chromium.org> --- fs/Kconfig | 7 +++++++ fs/Makefile | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/fs/Kconfig b/fs/Kconfig index 3769590d962..de066710901 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -4,6 +4,13 @@ menu "File systems" +config FS_LEGACY + def_bool y + help + Enables legacy support for filesystems. This provides an interface + which can talk to one filesystem at a time, with the filesystem being + re-mounted on each operation. + source "fs/btrfs/Kconfig" source "fs/cbfs/Kconfig" diff --git a/fs/Makefile b/fs/Makefile index 51a0ad07a15..e2de105592f 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -11,7 +11,7 @@ obj-$(CONFIG_SPL_FS_EXT4) += ext4/ obj-$(CONFIG_SPL_FS_CBFS) += cbfs/ obj-$(CONFIG_SPL_FS_SQUASHFS) += squashfs/ else -obj-y += fs_legacy.o +obj-$(CONFIG_FS_LEGACY) += fs_legacy.o obj-$(CONFIG_FS_BTRFS) += btrfs/ obj-$(CONFIG_FS_CBFS) += cbfs/ @@ -28,4 +28,4 @@ obj-$(CONFIG_CMD_ZFS) += zfs/ obj-$(CONFIG_FS_SQUASHFS) += squashfs/ obj-$(CONFIG_FS_EROFS) += erofs/ endif -obj-y += fs_internal.o +obj-$(CONFIG_FS_LEGACY) += fs_internal.o -- 2.43.0