From 5b44cb159bbc2b46bcc9cd6b8612f7e05d4f3ae5 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 12 Jul 2015 11:35:14 -0400 Subject: download/coreboot: verify the checksums of downloaded files --- (limited to 'resources/scripts/helpers/download/coreboot') 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 # ------------------------------------------------------------------------------ -- cgit v0.9.1