diff options
author | Pali Rohár <pali@kernel.org> | 2022-04-07 14:53:25 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-19 14:54:15 -0400 |
commit | b8a79164674230f401f696f7eb09315ad02199b5 (patch) | |
tree | 1f945f1840e1ebcdec2a4fd233405c5342d72575 /fs/fs.c | |
parent | c4bbbed3718330acfe50a599b4851cbec62b7b66 (diff) | |
download | u-boot-b8a79164674230f401f696f7eb09315ad02199b5.tar.gz |
fs: Allow to compile FS_BTRFS when SPL is enabledWIP/2022-04-19-assorted-udpates
Currently there is no btrfs support in SPL. But macro CONFIG_FS_BTRFS is
defined also when building SPL. When both FS_BTRFS and SPL are enabled
then build process throw compile error.
Fix check for btrfs code in fstypes[] to allow compiling FS_BTRFS 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
@@ -288,6 +288,7 @@ static struct fstype_info fstypes[] = { }, #endif #endif +#ifndef CONFIG_SPL_BUILD #ifdef CONFIG_FS_BTRFS { .fstype = FS_TYPE_BTRFS, @@ -307,6 +308,7 @@ static struct fstype_info fstypes[] = { .ln = fs_ln_unsupported, }, #endif +#endif #if IS_ENABLED(CONFIG_FS_SQUASHFS) { .fstype = FS_TYPE_SQUASHFS, |