u-boot-libre: Set tar mtime to SOURCE_DATE_EPOCH or @0

The u-boot-libre tarball contents' mtimes are an unconventional value
due to timezone confusion. For reproducibility, timestamps like these
are usually set by a SOURCE_DATE_EPOCH which is respected by both
coreboot and U-Boot. Use it in the u-boot-libre release script as well,
and properly set the mtimes to the Unix epoch when it's not defined.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
This commit is contained in:
Alper Nebi Yasak
2022-08-25 21:38:05 +03:00
parent 01f61263f8
commit 22b1db6980
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ release_deblobbed_uboot()
--format=gnu \
--sort=name \
--owner=0 --group=0 --numeric-owner \
--mtime="1970-01-01 UTC+01:00" \
--mtime="@${SOURCE_DATE_EPOCH:-0}" \
lzip -9 --keep -vv "${tarball}"
xz -9 --keep -vv "${tarball}"