[U-Boot] [U-Boot, v2] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH
Bin Meng
bmeng.cn at gmail.com
Fri Jul 31 04:54:44 CEST 2015
Hi,
On Tue, Jul 28, 2015 at 11:00 PM, Tom Rini <trini at konsulko.com> wrote:
> On Sun, Jul 26, 2015 at 06:48:15PM +0200, Paul Kocialkowski wrote:
>
>> In order to achieve reproducible builds in U-Boot, timestamps that are defined
>> at build-time have to be somewhat eliminated. The SOURCE_DATE_EPOCH environment
>> variable allows setting a fixed value for those timestamps.
>>
>> Simply by setting SOURCE_DATE_EPOCH to a fixed value, a number of targets can be
>> built reproducibly. This is the case for e.g. sunxi devices.
>>
>> However, some other devices might need some more tweaks, especially regarding
>> the image generation tools.
>>
>> Signed-off-by: Paul Kocialkowski <contact at paulk.fr>
>
> Applied to u-boot/master, thanks!
>
> --
This commit breaks the following commit:
commit f3f431a712729a1af94d01bd1bfde17a252ff02c
Author: Chris Packham <judge.packham at gmail.com>
Date: Sun May 10 21:02:09 2015 +1200
Makefile: Add U_BOOT_TZ and include in version
Define U_BOOT_TZ alongside U_BOOT_TIME and U_BOOT_DATE and use it to
include the timezone in the version output.
Acked-by: Simon Glass <sjg at chromium.org>
Signed-off-by: Chris Packham <judge.packham at gmail.com>
Before this commit I have:
U-Boot 2015.07-00345-g9c57487 (Jul 31 2015 - 10:49:31 +0800)
After this commit I have:
U-Boot 2015.07-00346-gf3f431a (Jul 31 2015 - 02:50:54 +0000)
As you see: the timezone information is missing, and U-Boot's
timestamp is now GMT+0 (the correct one should be GMT+8)
Is this intended behavior? Or if not, please fix it.
Regards,
Bin
More information about the U-Boot
mailing list