[U-Boot] [PATCH v2 0/3] Tidy up support for compressed fit-dtb.blob.

Vagrant Cascadian vagrant at reproducible-builds.org
Thu May 2 18:14:09 UTC 2019


Support for compressed fit-dtb.blob was added in:

  commit 95f4bbd581cf ("lib: fdt: Allow LZO and GZIP DT compression in
  U-Boot")

This introduces reproducibility issues as the timestamp and umask may
be embedded in the output when using gzip, lzop or possibly other
compression tools if added later. The included patch works around this
by setting the date and umask on the file when SOURCE_DATE_EPOCH is
set.

This is essentially the same fix applied to multi-dtb fit SPL images in:

  commit 8664ab7debab ("Set time and umask on multi-dtb fit images to
  ensure reproducibile builds.")

The compressed files were not added to gitignore or the clean targets,
and the other two patches in this series adds them.

Changes in v2:
- Mention commit where compressed fit-dtb.blob were introduced.
- Mention commit where compressed fit-dtb.blob were introduced.
- Add reference to similar fix in multi-dtb fit SPL images
- Mention commit where compressed fit-dtb.blob were introduced.

Vagrant Cascadian (3):
  Add fit-dtb.blob* to .gitignore.
  Remove fit-dtb.blob* in clean target.
  Set time and umask on fit-dtb.blob to ensure reproducibile builds.

 .gitignore | 2 +-
 Makefile   | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

-- 
2.20.1



More information about the U-Boot mailing list