All of lore.kernel.org
 help / color / mirror / Atom feed
From: wd at denx.de <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] SIMPC8313 board: fix out of tree building.
Date: Mon,  9 Mar 2009 10:53:05 +0100	[thread overview]
Message-ID: <1236592385-20626-1-git-send-email-wd@denx.de> (raw)

From: Wolfgang Denk <wd@denx.de>

Fix typo in makefile which broke out of tree builds.

Also use expolicit "rm" instead of "ln -sf" which is known to be
unreliable.

Signed-off-by: Wolfgang Denk <wd@denx.de>
---
 nand_spl/board/sheldon/simpc8313/Makefile |   27 ++++++++++++++++++---------
 1 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/nand_spl/board/sheldon/simpc8313/Makefile b/nand_spl/board/sheldon/simpc8313/Makefile
index 416e176..20199c7 100644
--- a/nand_spl/board/sheldon/simpc8313/Makefile
+++ b/nand_spl/board/sheldon/simpc8313/Makefile
@@ -62,31 +62,40 @@ $(nandobj)u-boot-spl:	$(OBJS)
 # create symbolic links for common files
 
 $(obj)start.S:
-	ln -sf $(SRCTREE)/cpu/mpc83xx/start.S $<
+	@rm -f $@
+	ln -s $(SRCTREE)/cpu/mpc83xx/start.S $@
 
 $(obj)nand_boot_fsl_elbc.c:
-	ln -sf $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c $<
+	@rm -f $@
+	ln -s $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c $@
 
 $(obj)sdram.c:
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/sdram.c $<
+	@rm -f $@
+	ln -s $(SRCTREE)/board/$(BOARDDIR)/sdram.c $@
 
 $(obj)$(BOARD).c:
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/$(BOARD).c $<
+	@rm -f $@
+	ln -s $(SRCTREE)/board/$(BOARDDIR)/$(BOARD).c $@
 
 $(obj)ns16550.c:
-	ln -sf $(SRCTREE)/drivers/serial/ns16550.c $<
+	@rm -f $@
+	ln -s $(SRCTREE)/drivers/serial/ns16550.c $@
 
 $(obj)nand_init.c:
-	ln -sf $(SRCTREE)/cpu/mpc83xx/nand_init.c $<
+	@rm -f $@
+	ln -s $(SRCTREE)/cpu/mpc83xx/nand_init.c $@
 
 $(obj)cache.c:
-	ln -sf $(SRCTREE)/lib_ppc/cache.c $<
+	@rm -f $@
+	ln -s $(SRCTREE)/lib_ppc/cache.c $@
 
 $(obj)time.c:
-	ln -sf $(SRCTREE)/lib_ppc/time.c $<
+	@rm -f $@
+	ln -s $(SRCTREE)/lib_ppc/time.c $@
 
 $(obj)ticks.S:
-	ln -sf $(SRCTREE)/lib_ppc/ticks.S $<
+	@rm -f $@
+	ln -s $(SRCTREE)/lib_ppc/ticks.S $@
 
 #########################################################################
 
-- 
1.6.0.6

             reply	other threads:[~2009-03-09  9:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-09  9:53 wd at denx.de [this message]
2009-03-09 23:32 ` [U-Boot] [PATCH] SIMPC8313 board: fix out of tree building Kim Phillips

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1236592385-20626-1-git-send-email-wd@denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.