From: Wolfgang Denk Date: Mon, 18 Oct 2010 22:18:03 +0200 Subject: [U-Boot] [PATCH] FPGA: fix support for non-Lattice devices In-Reply-To: <1287430603-1343-1-git-send-email-wd@denx.de> References: <1286441988-28998-1-git-send-email-sbabic@denx.de> <1287430603-1343-1-git-send-email-wd@denx.de> Message-ID: <20101018201803.EADC91359B3@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1287430603-1343-1-git-send-email-wd@denx.de> I wrote: > Commit 3b8ac464 "FPGA: add support for downloading Lattice bitstream" > added support for Lattice devices, but failed to add #ifdef's that are > needed when building for non-Lattice devices, which results in build > failures like these: > > Configuring for GEN860T board... > drivers/fpga/libfpga.a(fpga.o): In function `fpga_dev_info': > /home/wd/git/u-boot/work/drivers/fpga/fpga.c:145: undefined reference to `lattice_info' > drivers/fpga/libfpga.a(fpga.o): In function `fpga_dump': > /home/wd/git/u-boot/work/drivers/fpga/fpga.c:269: undefined reference to `lattice_dump' > drivers/fpga/libfpga.a(fpga.o): In function `fpga_load': > /home/wd/git/u-boot/work/drivers/fpga/fpga.c:233: undefined reference to `lattice_load' > make: *** [u-boot] Error 1 > > Add the missing code. > > Signed-off-by: Wolfgang Denk > Cc: Stefano Babic > --- > drivers/fpga/fpga.c | 12 ++++++++++++ > 1 files changed, 12 insertions(+), 0 deletions(-) Applied. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de PoB = "Prisoner of Bill" -- those held captive, unwillingly or other- wise, by the contemptible Microsoft monopoly. -- Tom Christiansen in <6abo45$3lc$2@csnews.cs.colorado.edu>