]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Makefile: always call date with LC_ALL=C set
authorIlya Yanok <yanok@emcraft.com>
Mon, 21 Jun 2010 14:13:21 +0000 (18:13 +0400)
committerWolfgang Denk <wd@denx.de>
Tue, 22 Jun 2010 20:40:43 +0000 (22:40 +0200)
Ensure that date is called only with LC_ALL=C locale set to make dates
locale neutral thus preventing lurking of non-ASCII characters into
U-Boot binary.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Changed LANG= into LC_ALL= as suggested by Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Wolfgang Denk <wd@denx.de>
Makefile

index 55bb9646e77bf8a4c9af1488679a8bd14bc46022..9a436feb4b3875389a07f730a682136c6178c5e3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -385,8 +385,8 @@ $(VERSION_FILE):
                @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
 
 $(TIMESTAMP_FILE):
-               @date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
-               @date +'#define U_BOOT_TIME "%T"' >> $@
+               @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
+               @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@
 
 gdbtools:
                $(MAKE) -C tools/gdb all || exit 1
@@ -3751,6 +3751,6 @@ endif
 
 backup:
        F=`basename $(TOPDIR)` ; cd .. ; \
-       gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
+       gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
 
 #########################################################################