Re: [U-Boot] [PATCH 01/33] Add build date values to Makefile
Hi Wolfgang, On 11 November 2014 22:22, Wolfgang Denk wrote: > Dear Simon, > > In message <1415751501-23407-2-git-send-email-...@chromium.org> you wrote: >> At present there is a string for the build date and time. In the case of an >> Real Time Clock which needs to be reset, it is useful to reset it to the >> build date, since it can't be earlier than that. > > I can't see the fundamental difference between two wrong dates? The > build time of U-Boot is as wrong as any other time. Well if you buy a product (car, TV, microwave, phone) it tends to use a recent date when erased, rather than 1970. No fundamental difference, but closer to reality. Regards, Simon ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH 01/33] Add build date values to Makefile
Dear Simon, In message <1415751501-23407-2-git-send-email-...@chromium.org> you wrote: > At present there is a string for the build date and time. In the case of an > Real Time Clock which needs to be reset, it is useful to reset it to the > build date, since it can't be earlier than that. I can't see the fundamental difference between two wrong dates? The build time of U-Boot is as wrong as any other time. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de 1st Old Man: Gee, its windy today. 2nd Old Man: No it's not... it's Thursday. 3rd Old Man: Yeh, me too. Let's go for a beer. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH 01/33] Add build date values to Makefile
At present there is a string for the build date and time. In the case of an Real Time Clock which needs to be reset, it is useful to reset it to the build date, since it can't be earlier than that. Signed-off-by: Simon Glass --- Makefile | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8e94948..fb72c29 100644 --- a/Makefile +++ b/Makefile @@ -1146,7 +1146,12 @@ endef define filechk_timestamp.h (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_TIME "%T"'; \ + LC_ALL=C date +'#define U_BOOT_DAY %-d'; \ + LC_ALL=C date +'#define U_BOOT_MONTH %-m'; \ + LC_ALL=C date +'#define U_BOOT_YEAR %Y'; \ + LC_ALL=C date +'#define U_BOOT_WEEKDAY %u'; \ + ) endef $(version_h): include/config/uboot.release FORCE -- 2.1.0.rc2.206.gedb03e5 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot