u-boot-brain/board/xilinx
Michal Simek 0b680206cc ARM: zynq: Fix building SPL without FPGA support
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: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2014-05-14 07:43:34 +02:00
..
microblaze-generic microblaze: convert makefiles to Kbuild style 2013-10-31 13:26:45 -04:00
ml507 kbuild: rename SRCTREE to srctree 2014-03-12 17:04:57 -04:00
ppc405-generic xilinx: delete meaningless .gitignore files 2014-03-07 10:59:06 -05:00
ppc440-generic xilinx: delete meaningless .gitignore files 2014-03-07 10:59:06 -05:00
zynq ARM: zynq: Fix building SPL without FPGA support 2014-05-14 07:43:34 +02:00