mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01:00
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>
This commit is contained in:
parent
5bbaba6e29
commit
b8617df6d5
2
fs/fs.c
2
fs/fs.c
@ -267,6 +267,7 @@ static struct fstype_info fstypes[] = {
|
|||||||
.ln = fs_ln_unsupported,
|
.ln = fs_ln_unsupported,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef CONFIG_SPL_BUILD
|
||||||
#ifdef CONFIG_CMD_UBIFS
|
#ifdef CONFIG_CMD_UBIFS
|
||||||
{
|
{
|
||||||
.fstype = FS_TYPE_UBIFS,
|
.fstype = FS_TYPE_UBIFS,
|
||||||
@ -286,6 +287,7 @@ static struct fstype_info fstypes[] = {
|
|||||||
.ln = fs_ln_unsupported,
|
.ln = fs_ln_unsupported,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_FS_BTRFS
|
#ifdef CONFIG_FS_BTRFS
|
||||||
{
|
{
|
||||||
.fstype = FS_TYPE_BTRFS,
|
.fstype = FS_TYPE_BTRFS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user