summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIlya Yanok <yanok@emcraft.com>2010-06-21 18:13:21 +0400
committerWolfgang Denk <wd@denx.de>2010-06-22 22:40:43 +0200
commitd6b937142008463d628ef26a753f9c20c57f3617 (patch)
treee742467711f88a016362c800f6353de2a589c319 /Makefile
parent39e9b7c3c386f811fa021d1852518e54ff12af05 (diff)
downloadu-boot-imx-d6b937142008463d628ef26a753f9c20c57f3617.zip
u-boot-imx-d6b937142008463d628ef26a753f9c20c57f3617.tar.gz
u-boot-imx-d6b937142008463d628ef26a753f9c20c57f3617.tar.bz2
Makefile: always call date with LC_ALL=C set
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 55bb964..9a436fe 100644
--- 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
#########################################################################