From: Grzegorz Bernacki Date: Tue, 11 Sep 2007 10:57:52 +0000 (+0200) Subject: [ppc4xx] Individual handling of sdram.c for bamboo_nand build X-Git-Tag: v1.3.0-rc2~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6c2f4f388e8181655ea8b69343ea00b68aa6e8d0;p=u-boot [ppc4xx] Individual handling of sdram.c for bamboo_nand build Bamboo has a file sdram.c which needs special treatment when building in separate directory. It has to be linked to build directory otherwise it is not seen. Signed-off-by: Grzegorz Bernacki --- diff --git a/nand_spl/board/amcc/bamboo/Makefile b/nand_spl/board/amcc/bamboo/Makefile index 0df86f99d4..8b5461dcf4 100644 --- a/nand_spl/board/amcc/bamboo/Makefile +++ b/nand_spl/board/amcc/bamboo/Makefile @@ -84,6 +84,12 @@ $(obj)nand_ecc.c: @rm -f $(obj)nand_ecc.c ln -s $(SRCTREE)/drivers/nand/nand_ecc.c $(obj)nand_ecc.c +ifneq ($(OBJTREE), $(SRCTREE)) +$(obj)sdram.c: + @rm -f $(obj)sdram.c + ln -s $(SRCTREE)/nand_spl/board/$(BOARDDIR)/sdram.c $(obj)sdram.c +endif + ######################################################################### $(obj)%.o: $(obj)%.S