summaryrefslogtreecommitdiff
path: root/nand_spl/board
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2008-05-14 10:32:32 +0200
committerWolfgang Denk <wd@denx.de>2008-05-14 12:26:16 +0200
commitfdd1247a66d788a3446244f6fde9955a93c26322 (patch)
treeea3116860b4abf423e45b1feb6ce40156638d11c /nand_spl/board
parenta8409f4f1ac84c36273c1a1e341189662521bcfb (diff)
downloadu-boot-imx-fdd1247a66d788a3446244f6fde9955a93c26322.zip
u-boot-imx-fdd1247a66d788a3446244f6fde9955a93c26322.tar.gz
u-boot-imx-fdd1247a66d788a3446244f6fde9955a93c26322.tar.bz2
ppc4xx: Individual handling of ddr2_fixed.c for canyonlands_nand build
Canyonlands has a file ddr2_fixed.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: Stefan Roese <sr@denx.de>
Diffstat (limited to 'nand_spl/board')
-rw-r--r--nand_spl/board/amcc/canyonlands/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/nand_spl/board/amcc/canyonlands/Makefile b/nand_spl/board/amcc/canyonlands/Makefile
index 1ec1112..47c7d02 100644
--- a/nand_spl/board/amcc/canyonlands/Makefile
+++ b/nand_spl/board/amcc/canyonlands/Makefile
@@ -30,7 +30,7 @@ AFLAGS += -DCONFIG_NAND_SPL
CFLAGS += -DCONFIG_NAND_SPL
SOBJS := start.o
-SOBJS += init.o resetvec.o
+SOBJS += init.o
SOBJS += resetvec.o
COBJS := ddr2_fixed.o
COBJS += nand_boot.o
@@ -89,6 +89,12 @@ $(obj)nand_ecc.c:
@rm -f $(obj)nand_ecc.c
ln -s $(SRCTREE)/drivers/mtd/nand/nand_ecc.c $(obj)nand_ecc.c
+ifneq ($(OBJTREE), $(SRCTREE))
+$(obj)ddr2_fixed.c:
+ @rm -f $(obj)ddr2_fixed.c
+ ln -s $(SRCTREE)/nand_spl/board/$(BOARDDIR)/ddr2_fixed.c $(obj)ddr2_fixed.c
+endif
+
#########################################################################
$(obj)%.o: $(obj)%.S