]> git.sur5r.net Git - u-boot/commitdiff
[ppc4xx] Individual handling of sdram.c for bamboo_nand build
authorGrzegorz Bernacki <gjb@semihalf.com>
Tue, 11 Sep 2007 10:57:52 +0000 (12:57 +0200)
committerGrzegorz Bernacki <gjb@semihalf.com>
Tue, 11 Sep 2007 10:57:52 +0000 (12:57 +0200)
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 <gjb@semihalf.com>
nand_spl/board/amcc/bamboo/Makefile

index 0df86f99d45bbe9528ff6c134de0d8e40e24c107..8b5461dcf4cea9bb696fddf48702d4bb491a3005 100644 (file)
@@ -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