mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 07:04:28 +00:00
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>
This commit is contained in:
parent
ae797e022e
commit
cd57cf9ac4
1 changed files with 1 additions and 1 deletions
2
fs/fs.c
2
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",
|
||||
|
|
Loading…
Reference in a new issue