summaryrefslogtreecommitdiff
path: root/resources/scripts/download
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2021-11-01 05:26:26 +0000
committerLeah Rowe <leah@libreboot.org>2021-11-01 05:26:26 +0000
commit240eb6da236cf3ecf1e28584822182e09f3447be (patch)
treef1f45e9a4b9578730150f0bae46b8e157953c526 /resources/scripts/download
parent6d23b3fe5546da38bba66065b54dc13a1a174c42 (diff)
memtest86plus: use coreboot's fork of it
it is superior
Diffstat (limited to 'resources/scripts/download')
-rwxr-xr-xresources/scripts/download/memtest86plus30
1 files changed, 2 insertions, 28 deletions
diff --git a/resources/scripts/download/memtest86plus b/resources/scripts/download/memtest86plus
index 6b3b68d8..e94f54c0 100755
--- a/resources/scripts/download/memtest86plus
+++ b/resources/scripts/download/memtest86plus
@@ -32,37 +32,11 @@ printf "Downloading MemTest86+\n"
rm -Rf "memtest86plus/"
-# Get latest memtest86+:
-# ------------------------------------------------------------------------------
-
-# download it using wget
-wget http://memtest.org/download/5.31b/memtest86+-5.31b.tar.gz
-
-if [ "$(sha512sum memtest86+-5.31b.tar.gz | cut -c1-128)" = "ad5891fd0c430ce7a5d0cde2d10dee20b66ad8060d47c3e70e038461d9cde3a78dfc13442b5b09da7c662741945a670353c72dbc08fd5ee8bae82256001a9541" ]; then
- printf "Valid checksum for memtest86plus\n"
-else
- rm -f "memtest86+-5.31b.tar.gz"
- printf "Invalid checksum for memtest86plus, or memtest86plus not downloaded\n"
- exit 1
-fi
-
-# extract it
-tar -xzf "memtest86+-5.31b.tar.gz"
-
-# delete the tar file (no longer needed)
-rm -f "memtest86+-5.31b.tar.gz"
-
-# make direcotory name consistent
-mv "memtest86+-5.31b/" "memtest86plus/"
-
-# Apply necessary patches
-# ------------------------------------------------------------------------------
+git clone https://review.coreboot.org/memtest86plus.git
(
cd "memtest86plus/"
-for patch in ../resources/memtest86plus/patch/*; do
- patch < "${patch}"
-done
+git reset --hard dd5b4ff2660a11041a05713f65ab65be19335153
)
printf "\n\n"