Commit d6b937142008463d628ef26a753f9c20c57f3617
Committed by
Wolfgang Denk
1 parent
39e9b7c3c3
Exists in
master
and in
54 other branches
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>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
Makefile
... | ... | @@ -385,8 +385,8 @@ |
385 | 385 | @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ |
386 | 386 | |
387 | 387 | $(TIMESTAMP_FILE): |
388 | - @date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ | |
389 | - @date +'#define U_BOOT_TIME "%T"' >> $@ | |
388 | + @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ | |
389 | + @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@ | |
390 | 390 | |
391 | 391 | gdbtools: |
392 | 392 | $(MAKE) -C tools/gdb all || exit 1 |
... | ... | @@ -3751,7 +3751,7 @@ |
3751 | 3751 | |
3752 | 3752 | backup: |
3753 | 3753 | F=`basename $(TOPDIR)` ; cd .. ; \ |
3754 | - gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F | |
3754 | + gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F | |
3755 | 3755 | |
3756 | 3756 | ######################################################################### |