memtest86plus: use coreboot's fork of it

it is superior
fsdg20230625
Leah Rowe 2021-11-01 05:26:26 +00:00
parent 6d23b3fe55
commit 240eb6da23
1 changed files with 2 additions and 28 deletions

View File

@ -32,37 +32,11 @@ printf "Downloading MemTest86+\n"
rm -Rf "memtest86plus/" rm -Rf "memtest86plus/"
# Get latest memtest86+: git clone https://review.coreboot.org/memtest86plus.git
# ------------------------------------------------------------------------------
# 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
# ------------------------------------------------------------------------------
( (
cd "memtest86plus/" cd "memtest86plus/"
for patch in ../resources/memtest86plus/patch/*; do git reset --hard dd5b4ff2660a11041a05713f65ab65be19335153
patch < "${patch}"
done
) )
printf "\n\n" printf "\n\n"