]> git.dujemihanovic.xyz Git - u-boot.git/commit
Respect SOURCE_DATE_EPOCH when building FIT images.
authorVagrant Cascadian <vagrant@debian.org>
Thu, 16 Jun 2016 19:28:40 +0000 (12:28 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 24 Jun 2016 21:23:10 +0000 (17:23 -0400)
commit5847084f6bbd0778afb29f0574085d4210ea8cff
tree2ccd6681ecc410829fb8598a3c4fc7ba95e608bc
parent42ffa51fd46bc6fd4bf2c244f00a80df31d01596
Respect SOURCE_DATE_EPOCH when building FIT images.

Embedding timestamps in FIT images results in unreproducible builds
for targets that generate a fit image, such as dra7xx_evm.

This patch uses the SOURCE_DATE_EPOCH environment variable, when set,
to use specified value for the date.

Thanks to HW42 for debugging the issue and providing the patch:

  https://lists.alioth.debian.org/pipermail/reproducible-builds/Week-of-Mon-20160606/005722.html

For more information about reproducible builds and the
SOURCE_DATE_EPOCH specification:

  https://reproducible-builds.org/specs/source-date-epoch/
  https://reproducible-builds.org/

Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/default_image.c
tools/fit_image.c
tools/imagetool.c
tools/imagetool.h