From: Mike Frysinger Date: Sat, 3 May 2008 01:45:12 +0000 (-0400) Subject: version_autogenerated.h: use printf rather than echo -n X-Git-Tag: v1.3.3-rc3~1^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aa737945e6f37a5de5dbad550a7694e0cb2a8120;p=u-boot version_autogenerated.h: use printf rather than echo -n 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 Signed-off-by: Wolfgang Denk --- diff --git a/Makefile b/Makefile index ac0a17f6ce..ca860ba9f3 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 "\"" ) > $@.tmp + @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \ + '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \ + ) > $@.tmp @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ gdbtools: