summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/download
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/helpers/download')
-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 8341f74..7a0b2ae 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
# ------------------------------------------------------------------------------