diff options
author | Leah Rowe <leah@libreboot.org> | 2023-10-06 22:59:36 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-10-07 00:11:21 +0100 |
commit | 4e39d5a5a808b0d59c6fb3426e1d9bc0195d6b08 (patch) | |
tree | 26ccd90ebffb18c70132e6192f27bac1c4c3522c /include/blobutil.sh | |
parent | 965b6a7ed73f1dbd78a353c83b99a88b50c86f38 (diff) |
put all src downloads under src/
build/release/src was partly re-written to accomodate this
memtest86plus was patched to have a central Makefile, and
lbmk modified to use that, rather than mess with build32
and build64. the central Makefile just builds both targets
or cleans both targets
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/blobutil.sh')
-rwxr-xr-x | include/blobutil.sh | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/include/blobutil.sh b/include/blobutil.sh index 3b59ba2e..4a798808 100755 --- a/include/blobutil.sh +++ b/include/blobutil.sh @@ -6,19 +6,19 @@ _ua="Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0" _7ztest="a" blobdir="blobs" appdir="${blobdir}/app" -cbdir="coreboot/default" +cbdir="src/coreboot/default" cbcfgsdir="config/coreboot" ifdtool="cbutils/default/ifdtool" cbfstool="cbutils/default/cbfstool" nvmutil="util/nvmutil/nvm" pciromsdir="pciroms" -mecleaner="$(pwd)/me_cleaner/me_cleaner.py" -me7updateparser="$(pwd)/util/me7_update_parser/me7_update_parser.py" -e6400_unpack="$(pwd)/bios_extract/dell_inspiron_1100_unpacker.py" -kbc1126_ec_dump="$(pwd)/${cbdir}/util/kbc1126/kbc1126_ec_dump" -pfs_extract="$(pwd)/biosutilities/Dell_PFS_Extract.py" -uefiextract="$(pwd)/uefitool/uefiextract" +mecleaner="${PWD}/src/me_cleaner/me_cleaner.py" +me7updateparser="${PWD}/util/me7_update_parser/me7_update_parser.py" +e6400_unpack="${PWD}/src/bios_extract/dell_inspiron_1100_unpacker.py" +kbc1126_ec_dump="${PWD}/${cbdir}/util/kbc1126/kbc1126_ec_dump" +pfs_extract="${PWD}/src/biosutilities/Dell_PFS_Extract.py" +uefiextract="${PWD}/src/uefitool/uefiextract" eval "$(setvars "" EC_url EC_url_bkup EC_hash DL_hash DL_url DL_url_bkup _dest \ E6400_VGA_DL_hash E6400_VGA_DL_url E6400_VGA_DL_url_bkup E6400_VGA_offset \ @@ -78,11 +78,10 @@ fetch() vendor_checksum() { - if [ "$(sha512sum ${2} | awk '{print $1}')" != "${1}" ]; then - printf "Bad checksum for file: %s\n" "${2}" 1>&2 - rm -f "${2}" || : - return 1 - fi + [ "$(sha512sum ${2} | awk '{print $1}')" != "${1}" ] || return 0 + printf "Bad checksum for file: %s\n" "${2}" 1>&2 + rm -f "${2}" || : + return 1 } mkdirs() |