summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-08-25 21:38:05 +0300
committerAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-08-25 21:38:05 +0300
commit22b1db6980a7398dbd257265891944ecd4a4c8da (patch)
treecd5bcbabaee2f1508ba08bbeac055ca46265930d /resources
parent01f61263f8933caa26a8f8e44900fb0f00fb5164 (diff)
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>
Diffstat (limited to 'resources')
-rwxr-xr-xresources/scripts/build/release/u-boot-libre2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/scripts/build/release/u-boot-libre b/resources/scripts/build/release/u-boot-libre
index 63940dc2..3a6aaca6 100755
--- a/resources/scripts/build/release/u-boot-libre
+++ b/resources/scripts/build/release/u-boot-libre
@@ -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}"