From: Thibaut VARÈNE Date: Tue, 14 Nov 2023 17:58:43 +0000 (+0100) Subject: phase2: compute checksums X-Git-Tag: v10~5 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f0faed2970ddb151fa8e12ef542b1b797bad4818;p=buildbot.git 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 --- 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",