
From: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/misc/Kconfig | 2 ++ fs/Kconfig | 8 ++++++++ fs/Makefile | 5 ++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index e8a2a677129..94567a790f9 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -617,6 +617,7 @@ config MPC83XX_SERDES config FS_LOADER bool "Enable loader driver for file system" + select SPL_FS_LEGACY help This is file system generic loader which can be used to load the file image from the storage into target such as memory. @@ -627,6 +628,7 @@ config FS_LOADER config SPL_FS_LOADER bool "Enable loader driver for file system in SPL" depends on SPL + select SPL_FS_LEGACY help This is file system generic loader which can be used to load the file image from the storage into target such as memory. diff --git a/fs/Kconfig b/fs/Kconfig index de066710901..490f9755016 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -11,6 +11,14 @@ config FS_LEGACY which can talk to one filesystem at a time, with the filesystem being re-mounted on each operation. +config SPL_FS_LEGACY + bool + depends on SPL + help + Enables legacy support for filesystems in SPL. 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 e2de105592f..02c32aa8287 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -4,14 +4,14 @@ # Wolfgang Denk, DENX Software Engineering, wd@denx.de. # Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. +obj-$(CONFIG_$(PHASE_)FS_LEGACY) += fs_legacy.o fs_internal.o + ifdef CONFIG_XPL_BUILD -obj-$(CONFIG_SPL_FS_LOADER) += fs_legacy.o obj-$(CONFIG_SPL_FS_FAT) += fat/ obj-$(CONFIG_SPL_FS_EXT4) += ext4/ obj-$(CONFIG_SPL_FS_CBFS) += cbfs/ obj-$(CONFIG_SPL_FS_SQUASHFS) += squashfs/ else -obj-$(CONFIG_FS_LEGACY) += fs_legacy.o obj-$(CONFIG_FS_BTRFS) += btrfs/ obj-$(CONFIG_FS_CBFS) += cbfs/ @@ -28,4 +28,3 @@ obj-$(CONFIG_CMD_ZFS) += zfs/ obj-$(CONFIG_FS_SQUASHFS) += squashfs/ obj-$(CONFIG_FS_EROFS) += erofs/ endif -obj-$(CONFIG_FS_LEGACY) += fs_internal.o -- 2.43.0