On Thu, 2023-09-14 at 12:39 -0400, Tom Rini wrote: > On Thu, Sep 14, 2023 at 09:35:15PM +0530, Mayuresh Chitale wrote: > > > 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. > > > > Reviewed-by: Heinrich Schuchardt <heinrich.schucha...@canonical.com > > > > > Signed-off-by: Mayuresh Chitale <mchit...@ventanamicro.com> > > --- > > fs/fs.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/fs/fs.c b/fs/fs.c > > index 2b815b1db0..074db4b20f 100644 > > --- a/fs/fs.c > > +++ b/fs/fs.c > > @@ -256,6 +256,7 @@ static struct fstype_info fstypes[] = { > > .ln = fs_ln_unsupported, > > }, > > #endif > > +#ifndef CONFIG_SPL_BUILD > > #ifdef CONFIG_SEMIHOSTING > > { > > .fstype = FS_TYPE_SEMIHOSTING, > > This should be CONFIG_IS_ENABLED(SEMIHOSTING). Ok. I will update it. >