diff options
author | Pali Rohár <pali@kernel.org> | 2022-04-05 15:49:24 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-14 15:39:15 -0400 |
commit | b8617df6d5c8afb74ae8bb4b732a8b56b4f5e9ee (patch) | |
tree | e0ac006d78607573b9e00c1213a8e7bb56cf15a0 /fs/fs.c | |
parent | 5bbaba6e29fc0d92ff0201bd7066c021a6dd8727 (diff) | |
download | u-boot-b8617df6d5c8afb74ae8bb4b732a8b56b4f5e9ee.tar.gz u-boot-b8617df6d5c8afb74ae8bb4b732a8b56b4f5e9ee.tar.bz2 u-boot-b8617df6d5c8afb74ae8bb4b732a8b56b4f5e9ee.zip |
fs: Allow to compile CMD_UBIFS when SPL is enabled
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>
Diffstat (limited to 'fs/fs.c')
-rw-r--r-- | fs/fs.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, |