]> git.sur5r.net Git - u-boot/commitdiff
ppc/85xx: Fix building NAND_SPL out of tree
authorKumar Gala <galak@kernel.crashing.org>
Tue, 27 Oct 2009 02:18:33 +0000 (21:18 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 27 Oct 2009 02:19:22 +0000 (21:19 -0500)
We need to source files to exist in the O=<FOO> nand_spl dir when
we build out of tree.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
nand_spl/board/freescale/mpc8536ds/Makefile
nand_spl/board/freescale/p1_p2_rdb/Makefile

index 1d5e31983580eb4dd41db887310077837bdce80e..7ed9d619dc8aafce02c54413749f594184a4f44f 100644 (file)
@@ -111,6 +111,12 @@ $(obj)tlb_table.c:
        @rm -f $(obj)tlb_table.c
        ln -sf $(SRCTREE)/board/$(BOARDDIR)/tlb.c $(obj)tlb_table.c
 
+ifneq ($(OBJTREE), $(SRCTREE))
+$(obj)nand_boot.c:
+       @rm -f $(obj)nand_boot.c
+       ln -s $(SRCTREE)/nand_spl/board/$(BOARDDIR)/nand_boot.c $(obj)nand_boot.c
+endif
+
 #########################################################################
 
 $(obj)%.o:     $(obj)%.S
index 1d5e31983580eb4dd41db887310077837bdce80e..7ed9d619dc8aafce02c54413749f594184a4f44f 100644 (file)
@@ -111,6 +111,12 @@ $(obj)tlb_table.c:
        @rm -f $(obj)tlb_table.c
        ln -sf $(SRCTREE)/board/$(BOARDDIR)/tlb.c $(obj)tlb_table.c
 
+ifneq ($(OBJTREE), $(SRCTREE))
+$(obj)nand_boot.c:
+       @rm -f $(obj)nand_boot.c
+       ln -s $(SRCTREE)/nand_spl/board/$(BOARDDIR)/nand_boot.c $(obj)nand_boot.c
+endif
+
 #########################################################################
 
 $(obj)%.o:     $(obj)%.S