mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
Safer timestamp_autogenerated.h generation
Generate timestamp_autogenerated.h as safely as version_autogenerated.h. Cc: patches@linaro.org Signed-off-by: Loïc Minier <loic.minier@linaro.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
249b53a612
commit
a76406fb05
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -570,8 +570,9 @@ $(VERSION_FILE):
|
|||
|
||||
$(TIMESTAMP_FILE):
|
||||
@mkdir -p $(dir $(TIMESTAMP_FILE))
|
||||
@LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
|
||||
@LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@
|
||||
@LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@.tmp
|
||||
@LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@.tmp
|
||||
@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
|
||||
|
||||
easylogo env gdb:
|
||||
$(MAKE) -C tools/$@ all MTD_VERSION=${MTD_VERSION}
|
||||
|
|
Loading…
Reference in a new issue