Set time and umask on multi-dtb fit images to ensure reproducibile builds.
authorVagrant Cascadian <vagrant@debian.org>
Sun, 3 Jun 2018 19:26:57 +0000 (12:26 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 4 Jun 2018 15:25:30 +0000 (11:25 -0400)
commit8664ab7debabfb6e1049c81030c2a18fd3eecb58
treea93faf704a8cd55e8199fdb8ce1fc0815d1b6ffd
parentdcd8a102ca33b6b15bc578076d3a50f66e6d3af3
Set time and umask on multi-dtb fit images to ensure reproducibile builds.

When building compressed (lzop, gzip) multi-dtb fit images, the
compression tool may embed the time or umask in the image.

Work around this by manually setting the time of the source file using
SOURCE_DATE_EPOCH and a hard-coded 0600 umask.

With gzip, this could be accomplished by using -n/--no-name, but lzop
has no current workaround:

  https://bugs.debian.org/896520

Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
scripts/Makefile.spl