aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMayuresh Chitale <mchitale@ventanamicro.com>2023-11-16 22:46:12 +0530
committerTom Rini <trini@konsulko.com>2023-12-21 11:58:18 -0500
commitcd57cf9ac41a5ec25a0852f91f118dedfc6f7ce6 (patch)
treea1d7ac0b36bbacca4378ca41bb996892704daca1 /fs
parentae797e022e6de408497a5ffaa329751893762b9b (diff)
downloadu-boot-cd57cf9ac41a5ec25a0852f91f118dedfc6f7ce6.zip
u-boot-cd57cf9ac41a5ec25a0852f91f118dedfc6f7ce6.tar.gz
u-boot-cd57cf9ac41a5ec25a0852f91f118dedfc6f7ce6.tar.bz2
fs: Fix SPL build if FS_LOADER is enabled
If FS_LOADER is enabled for the SPL then the build fails with the error: fs/fs.o:(.data.rel.fstypes+0x128): undefined reference to `smh_fs_set_blk_dev' fs/fs.o:(.data.rel.fstypes+0x140): undefined reference to `smh_fs_size' fs/fs.o:(.data.rel.fstypes+0x148): undefined reference to `smh_fs_read' fs/fs.o:(.data.rel.fstypes+0x150): undefined reference to `smh_fs_write' Fix the error by populating the semihosting entry in the fs_types array only for non-SPL builds. Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Sean Anderson <seanga2@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fs.c b/fs/fs.c
index f33b85f..f1a0b70 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -256,7 +256,7 @@ static struct fstype_info fstypes[] = {
.ln = fs_ln_unsupported,
},
#endif
-#ifdef CONFIG_SEMIHOSTING
+#if CONFIG_IS_ENABLED(SEMIHOSTING)
{
.fstype = FS_TYPE_SEMIHOSTING,
.name = "semihosting",