summaryrefslogtreecommitdiff
path: root/nand_spl/board
diff options
context:
space:
mode:
authorGrzegorz Bernacki <gjb@semihalf.com>2007-09-11 12:57:52 +0200
committerGrzegorz Bernacki <gjb@semihalf.com>2007-09-11 12:57:52 +0200
commit6c2f4f388e8181655ea8b69343ea00b68aa6e8d0 (patch)
tree4a335ccbb82c2b0a4e8ab8b788de0f8ed2c6f32f /nand_spl/board
parent978aec12faffb4bb8d887894fffd16960356b343 (diff)
downloadu-boot-imx-6c2f4f388e8181655ea8b69343ea00b68aa6e8d0.zip
u-boot-imx-6c2f4f388e8181655ea8b69343ea00b68aa6e8d0.tar.gz
u-boot-imx-6c2f4f388e8181655ea8b69343ea00b68aa6e8d0.tar.bz2
[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 <gjb@semihalf.com>
Diffstat (limited to 'nand_spl/board')
-rw-r--r--nand_spl/board/amcc/bamboo/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/nand_spl/board/amcc/bamboo/Makefile b/nand_spl/board/amcc/bamboo/Makefile
index 0df86f9..8b5461d 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