summaryrefslogtreecommitdiff
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
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>
-rwxr-xr-xresources/scripts/build/release/u-boot-libre2
-rw-r--r--tests/u-boot-libre.sha5126
2 files changed, 4 insertions, 4 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}"
diff --git a/tests/u-boot-libre.sha512 b/tests/u-boot-libre.sha512
index f4c65196..5301c369 100644
--- a/tests/u-boot-libre.sha512
+++ b/tests/u-boot-libre.sha512
@@ -4,6 +4,6 @@ a112ad84028728ed377f8dd6fc230ecf33b2e6d21ff8152ce6f45234ce34f1a63f7eec384391b59a
40ca7f25e2fd6139199be0d6d36ebd4b5eddf4e385b5cb8de8ca89df424e698efc1c31939c3d507b873620043bc4276e88942f78d1231177a5a0d1ccfc40a172 release/u-boot-libre/2021.07-r2/deblob-2021.07-r2.sh
cd5b7a2a7bf7fba92e79bc432183ba8f48dc80fa05ceb1f978be33f22b497090377c434ba9fe0278b3ab82f23ef337c6d0bf1240fed0887e0e2292a463d5e49c release/u-boot-libre/2021.07-r2/deblob-2021.07-r2.sh.lz
0a1663fe2eac28c17d28c0bf343c6f57841d1b33f847074419699028d52f4216f77d6ebab06a57dc1ae86f87070791868709898085e4f1bff377fcf1039e4e31 release/u-boot-libre/2021.07-r2/deblob-2021.07-r2.sh.xz
-e369feb140a2b84a99c878b4c5216fc3aa1c33f065b2d85ca206820f1d01250e2611d64cdf6cea18242eb0ca7a45be9acd0474ca61a204b1dcf6d1506012c306 release/u-boot-libre/2021.07-r2/u-boot-libre-2021.07-r2.tar
-b7ee3d1bf79ca507830f61baa7c597b9c2b239753e7c19677075426a135990b3eba54d65ffd16f3506ad385a9c2370433314209a007fd1e57910bf5e67f46c37 release/u-boot-libre/2021.07-r2/u-boot-libre-2021.07-r2.tar.lz
-c19422a811c3bdd6b0735c11828c736feb554fe315415efd851aa51eca1afea75e75e10133b4c8dc8c57a00afe938ee829141909f4b26860fa6994e6cf9018e9 release/u-boot-libre/2021.07-r2/u-boot-libre-2021.07-r2.tar.xz
+67c40068f03538f17444000edaffed2e4ef788c84f3f6a34a0501c396a123207f62e59d4669210c701a73bbcf7f8f970a4e11c7bec0511f5ee460b109a95c398 release/u-boot-libre/2021.07-r2/u-boot-libre-2021.07-r2.tar
+d920ce9a4b2f601557f82d187835185586c3bd01a8570217a32989c6ae2cdda87d0348d7c51843af30a369e9bad0741e45d2cb72e2947ec94475342bb66161aa release/u-boot-libre/2021.07-r2/u-boot-libre-2021.07-r2.tar.lz
+ab3bb25e1ac7d59fea2e4a70a0bebed8002322678870161908bf247cacabed8b12be8bf2ea2fa92ac64820887b26af7dbf8ff682b46d3276765385dd567cc19a release/u-boot-libre/2021.07-r2/u-boot-libre-2021.07-r2.tar.xz