]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
fs: Rework filesystem guards for xPL phases
authorTom Rini <trini@konsulko.com>
Wed, 1 Oct 2025 20:31:03 +0000 (14:31 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 10 Oct 2025 20:25:35 +0000 (14:25 -0600)
When adding filesystems to the table in fs/fs.c we need to use
CONFIG_IS_ENABLED(FS_xxx) so that we only include references to a given
filesystem when CONFIG_FS_xxx or CONFIG_SPL_FS_xxx or similar are
enabled. Update the filesystems which weren't doing this to follow that
pattern.

Signed-off-by: Tom Rini <trini@konsulko.com>
fs/fs.c

diff --git a/fs/fs.c b/fs/fs.c
index 2650328b35850fb82d1c8c378ddae38f2442ae70..c7706d9af859ef46c38bcc4e5741cc9a4b3d4179 100644 (file)
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -316,8 +316,7 @@ static struct fstype_info fstypes[] = {
        },
 #endif
 #endif
-#ifndef CONFIG_XPL_BUILD
-#ifdef CONFIG_FS_BTRFS
+#if CONFIG_IS_ENABLED(FS_BTRFS)
        {
                .fstype = FS_TYPE_BTRFS,
                .name = "btrfs",
@@ -337,7 +336,6 @@ static struct fstype_info fstypes[] = {
                .rename = fs_rename_unsupported,
        },
 #endif
-#endif
 #if CONFIG_IS_ENABLED(FS_SQUASHFS)
        {
                .fstype = FS_TYPE_SQUASHFS,
@@ -360,7 +358,7 @@ static struct fstype_info fstypes[] = {
                .rename = fs_rename_unsupported,
        },
 #endif
-#if IS_ENABLED(CONFIG_FS_EROFS)
+#if CONFIG_IS_ENABLED(FS_EROFS)
        {
                .fstype = FS_TYPE_EROFS,
                .name = "erofs",
@@ -382,7 +380,7 @@ static struct fstype_info fstypes[] = {
                .rename = fs_rename_unsupported,
        },
 #endif
-#if IS_ENABLED(CONFIG_FS_EXFAT)
+#if CONFIG_IS_ENABLED(FS_EXFAT)
        {
                .fstype = FS_TYPE_EXFAT,
                .name = "exfat",