[U-Boot] [PATCH 4/6] Define CPUDIR for the .lds link script

Simon Glass sjg at chromium.org
Fri Nov 11 22:47:11 CET 2011


Most link scripts differ only in directory containing the start.o
file. Make this a #define to remove this last difference.

Signed-off-by: Simon Glass <sjg at chromium.org>
---
 Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index e7da1c0..a207e85 100644
--- a/Makefile
+++ b/Makefile
@@ -474,7 +474,9 @@ $(LDSCRIPT):	depend
 		$(MAKE) -C $(dir $@) $(notdir $@)
 
 $(obj)u-boot.lds: $(LDSCRIPT)
-		$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+		$(CPP) $(CPPFLAGS) $(LDPPFLAGS) \
+			-DCPUDIR=$(CPUDIR) \
+			-ansi -D__ASSEMBLY__ -P - <$^ >$@
 
 nand_spl:	$(TIMESTAMP_FILE) $(VERSION_FILE) depend
 		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
-- 
1.7.3.1



More information about the U-Boot mailing list