Commit d600c4f6b09f75c3bb0ef588cde69cc236ec3feb
Committed by
Michal Simek
1 parent
3907eef1a3
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/fpga/zynqpl.c
... | ... | @@ -411,7 +411,7 @@ |
411 | 411 | return FPGA_SUCCESS; |
412 | 412 | } |
413 | 413 | |
414 | -#if defined(CONFIG_CMD_FPGA_LOADFS) | |
414 | +#if defined(CONFIG_CMD_FPGA_LOADFS) && !defined(CONFIG_SPL_BUILD) | |
415 | 415 | static int zynq_loadfs(xilinx_desc *desc, const void *buf, size_t bsize, |
416 | 416 | fpga_fs_info *fsinfo) |
417 | 417 | { |
... | ... | @@ -494,7 +494,7 @@ |
494 | 494 | |
495 | 495 | struct xilinx_fpga_op zynq_op = { |
496 | 496 | .load = zynq_load, |
497 | -#if defined(CONFIG_CMD_FPGA_LOADFS) | |
497 | +#if defined(CONFIG_CMD_FPGA_LOADFS) && !defined(CONFIG_SPL_BUILD) | |
498 | 498 | .loadfs = zynq_loadfs, |
499 | 499 | #endif |
500 | 500 | }; |