diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-05-02 21:45:12 -0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-05-04 00:28:37 +0200 |
commit | aa737945e6f37a5de5dbad550a7694e0cb2a8120 (patch) | |
tree | 85f91dd382ddbb6eeb96e10fdcb4e9543e2287fe /Makefile | |
parent | 4acc2a108ad0a669165924704a6cb083f9138242 (diff) | |
download | u-boot-imx-aa737945e6f37a5de5dbad550a7694e0cb2a8120.zip u-boot-imx-aa737945e6f37a5de5dbad550a7694e0cb2a8120.tar.gz u-boot-imx-aa737945e6f37a5de5dbad550a7694e0cb2a8120.tar.bz2 |
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 <vapier@gentoo.org>
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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: |