aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-04-05 15:49:24 +0200
committerTom Rini <trini@konsulko.com>2022-04-14 09:18:43 -0400
commitf58f1e880f4ce62defa153e282969397455b5f16 (patch)
tree525ac6d61fc3cb6de804e3254a8eee808c35f9b4
parente4dd6ff7697ecddc6083b43e730eea59f59cdcac (diff)
downloadu-boot-WIP/2022-04-14-assorted-updates.zip
u-boot-WIP/2022-04-14-assorted-updates.tar.gz
u-boot-WIP/2022-04-14-assorted-updates.tar.bz2
fs: Allow to compile CMD_UBIFS when SPL is enabledWIP/2022-04-14-assorted-updates
Currently there is no UBIFS support in SPL. But macro CONFIG_CMD_UBIFS is defined also when building SPL. when both CMD_UBIFS and SPL are enabled then build process throw compile error. Fix check for ubifs code in fstypes[] to allow compiling CMD_UBIFS only in proper U-Boot. Signed-off-by: Pali Rohár <pali@kernel.org>
-rw-r--r--fs/fs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 2b0a242..c67a1c7 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -267,6 +267,7 @@ static struct fstype_info fstypes[] = {
.ln = fs_ln_unsupported,
},
#endif
+#ifndef CONFIG_SPL_BUILD
#ifdef CONFIG_CMD_UBIFS
{
.fstype = FS_TYPE_UBIFS,
@@ -286,6 +287,7 @@ static struct fstype_info fstypes[] = {
.ln = fs_ln_unsupported,
},
#endif
+#endif
#ifdef CONFIG_FS_BTRFS
{
.fstype = FS_TYPE_BTRFS,