Some systems are dumb and do not implement the -n flag to echo (like OS X).
Convert the Makefile to use printf as this should work everywhere.

Signed-off-by: Mike Frysinger <[EMAIL PROTECTED]>
---
 Makefile |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index ac0a17f..45d43aa 100644
--- a/Makefile
+++ b/Makefile
@@ -352,11 +352,9 @@ $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin 
$(obj)include/autoconf.mk
                cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > 
$(obj)u-boot-flexonenand.bin
 
 $(VERSION_FILE):
-               @( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
-               echo -n "$(U_BOOT_VERSION)" ; \
-               echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion 
\
-                        $(TOPDIR)) ; \
-               echo "\"" ) > [EMAIL PROTECTED]
+               @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' 
"$(U_BOOT_VERSION)" \
+                $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion 
$(TOPDIR)) \
+                ) > [EMAIL PROTECTED]
                @cmp -s $@ [EMAIL PROTECTED] && rm -f [EMAIL PROTECTED] || mv 
-f [EMAIL PROTECTED] $@
 
 gdbtools:
-- 
1.5.5.1


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to