mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-28 09:31:32 +00:00
drivers: fpga: zynqpl: fix compilation with SPL
Disable the use of function zynq_loadfs when compiling the driver for the SPL, as the following filesystem functions are not found by the linker: - fs_set_blk_dev - fs_read - fs_set_blk_dev - fs_read - fs_read Signed-off-by: Luis Araneda <luaraneda@gmail.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
3907eef1a3
commit
d600c4f6b0
1 changed files with 2 additions and 2 deletions
|
@ -411,7 +411,7 @@ static int zynq_load(xilinx_desc *desc, const void *buf, size_t bsize,
|
||||||
return FPGA_SUCCESS;
|
return FPGA_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_CMD_FPGA_LOADFS)
|
#if defined(CONFIG_CMD_FPGA_LOADFS) && !defined(CONFIG_SPL_BUILD)
|
||||||
static int zynq_loadfs(xilinx_desc *desc, const void *buf, size_t bsize,
|
static int zynq_loadfs(xilinx_desc *desc, const void *buf, size_t bsize,
|
||||||
fpga_fs_info *fsinfo)
|
fpga_fs_info *fsinfo)
|
||||||
{
|
{
|
||||||
|
@ -494,7 +494,7 @@ static int zynq_loadfs(xilinx_desc *desc, const void *buf, size_t bsize,
|
||||||
|
|
||||||
struct xilinx_fpga_op zynq_op = {
|
struct xilinx_fpga_op zynq_op = {
|
||||||
.load = zynq_load,
|
.load = zynq_load,
|
||||||
#if defined(CONFIG_CMD_FPGA_LOADFS)
|
#if defined(CONFIG_CMD_FPGA_LOADFS) && !defined(CONFIG_SPL_BUILD)
|
||||||
.loadfs = zynq_loadfs,
|
.loadfs = zynq_loadfs,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue