aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/download/coreboot
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-07-12 16:35:14 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-07-12 16:41:36 +0100
commit5b44cb159bbc2b46bcc9cd6b8612f7e05d4f3ae5 (patch)
tree67c6c78c548f35d44a77f444477f931f0e32abd8 /resources/scripts/helpers/download/coreboot
parent6fb9ffefdd9cc64c08cf7627efd8a87a894b0419 (diff)
downloadlibrebootfr-5b44cb159bbc2b46bcc9cd6b8612f7e05d4f3ae5.tar.gz
librebootfr-5b44cb159bbc2b46bcc9cd6b8612f7e05d4f3ae5.zip
download/coreboot: verify the checksums of downloaded files
Diffstat (limited to 'resources/scripts/helpers/download/coreboot')
-rwxr-xr-xresources/scripts/helpers/download/coreboot7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/scripts/helpers/download/coreboot b/resources/scripts/helpers/download/coreboot
index 8341f742..7a0b2aed 100755
--- a/resources/scripts/helpers/download/coreboot
+++ b/resources/scripts/helpers/download/coreboot
@@ -46,6 +46,13 @@ cd "coreboot/"
# reset to previously tested revision
git reset --hard cd5cdd3ba42371cc97b1464fd7b98de5bef05a6a
+# Verify checksums of the downloaded files
+# ------------------------------------------------------------------------------
+
+sha512sum -c "../resources/scripts/helpers/sha512sums/coreboot" || (cd "../" && rm -Rf "coreboot/" && printf "Invalid checksums for coreboot\n" && exit 1)
+
+printf "Valid checksums for coreboot\n"
+
# Get patches from review.coreboot.org
# ------------------------------------------------------------------------------