[buildbot] phase2: compute checksums
LEDE Commits
lede-commits at lists.infradead.org
Thu Nov 16 03:48:41 PST 2023
ynezz pushed a commit to buildbot.git, branch master:
https://git.openwrt.org/f0faed2970ddb151fa8e12ef542b1b797bad4818
commit f0faed2970ddb151fa8e12ef542b1b797bad4818
Author: Thibaut VARÈNE <hacks at slashdirt.org>
AuthorDate: Tue Nov 14 18:58:43 2023 +0100
phase2: compute checksums
This will be necessary to get rid of 'rsync --checksum' and use
sha2rsync.pl instead, as on phase1, thereby easing the load on the rsync
server.
This uses the same construct as "make checksum" in the main repo.
Signed-off-by: Thibaut VARÈNE <hacks at slashdirt.org>
---
phase2/master.cfg | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/phase2/master.cfg b/phase2/master.cfg
index f05c60f..774f1a6 100644
--- a/phase2/master.cfg
+++ b/phase2/master.cfg
@@ -636,6 +636,15 @@ for arch in arches:
workdir = "build/sdk",
command = "./scripts/feeds list -s -f > bin/packages/%s/feeds.conf" %(arch[0])))
+ factory.addStep(ShellCommand(
+ name = "checksums",
+ description = "Calculating checksums",
+ descriptionDone="Checksums calculated",
+ workdir = "build/sdk",
+ command = "cd bin/packages/%s; " %(arch[0]) + "find . -type f -not -name 'sha256sums' -printf \"%P\n\" | sort | xargs -r ../../../staging_dir/host/bin/mkhash -n sha256 | sed -ne 's!^\(.*\) \(.*\)$!\1 *\2!p' > sha256sums)",
+ haltOnFailure = True
+ ))
+
if ini.has_option("gpg", "key") or usign_key is not None:
factory.addStep(MasterShellCommand(
name = "signprepare",
More information about the lede-commits
mailing list