• Michal Simek's avatar
    ARM: zynq: Fix building SPL without FPGA support · 0b680206
    Michal Simek authored
    When CONFIG_FPGA is defined but CONFIG_SPL_FPGA is not, the build fails:
    board.c: In function 'board_init':
    board.c:41:3: error: 'fpga' undeclared (first use in this function)
       fpga = fpga010;
    
    Fix this by expanding the "#if.." around this block to match the other
    FPGA checks and don't compile this block when buildign for SPL without
    FPGA support.
    
    Tested a bootloader that had CONFIG_FPGA defined without CONFIG_SPL_FPGA,
    this now compiles without errors and loading FPGA from u-boot works.
    Signed-off-by: default avatarMike Looijmans <mike.looijmans@topic.nl>
    Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
    0b680206
Name
Last commit
Last update
..
microblaze-generic Loading commit data...
ml507 Loading commit data...
ppc405-generic Loading commit data...
ppc440-generic Loading commit data...
zynq Loading commit data...