[U-Boot] [PATCH] Respect SOURCE_DATE_EPOCH when building FIT images.

Simon Glass sjg at chromium.org
Fri Jun 17 05:53:04 CEST 2016


On 16 June 2016 at 13:28, Vagrant Cascadian <vagrant at debian.org> wrote:
> 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 at debian.org>
> ---
>
>  tools/default_image.c | 14 +-------------
>  tools/fit_image.c     |  6 ++++--
>  tools/imagetool.c     | 20 ++++++++++++++++++++
>  tools/imagetool.h     | 16 ++++++++++++++++
>  4 files changed, 41 insertions(+), 15 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list