summaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-02-16 14:56:13 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-02-16 19:10:26 +0100
commit1afdbaad1af3376b64cf7e9f7264db8da7070046 (patch)
treeaa93f3230e5df5ca20337b945424419068b74248 /resources/scripts
parent2bb805e2e07a7d3e1268a09d720ecd13e26af418 (diff)
u-boot-libre: Add reproducible builds and tests
The tar options come from the tutorial to remove archives metadata at reproducible-builds.org[1]. [1]https://reproducible-builds.org/docs/archives/ Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/build/release/u-boot-libre8
1 files changed, 7 insertions, 1 deletions
diff --git a/resources/scripts/build/release/u-boot-libre b/resources/scripts/build/release/u-boot-libre
index 97a97628..0f492421 100755
--- a/resources/scripts/build/release/u-boot-libre
+++ b/resources/scripts/build/release/u-boot-libre
@@ -48,7 +48,13 @@ rm -rf ${tmpdir}/.git ${tmpdir}/.gitignore
make -C ${tmpdir} distclean
prefix="$(dirname ${tmpdir} | sed 's#^/*##')/"
-tar cf "${tarball}" "${tmpdir}" --transform="s#${prefix}##"
+tar cf "${tarball}" "${tmpdir}" \
+ --transform="s#${prefix}##" \
+ --format=gnu \
+ --sort=name \
+ --owner=0 --group=0 --numeric-owner \
+ --mtime="1970-01-01" \
+
lzip -9 --keep -vv "${tarball}"
xz -9 --keep -vv "${tarball}"