mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-15 08:20:59 +02:00
xbmk: use sbase sha512sum, not host sha512sum
the --status flag seems to be a GNUism as stated in the previous commit, i import sbase suckless now, so as to have a consistent implementation of sha512sum. this ensures that its output is reliable, when i'm using the output of this command within backticks. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+7
-3
@@ -602,11 +602,13 @@ prep()
|
||||
|
||||
mksha512()
|
||||
{
|
||||
build_sbase
|
||||
|
||||
if [ "${1%/*}" != "$1" ]; then
|
||||
x_ cd "${1%/*}"
|
||||
fi
|
||||
|
||||
x_ sha512sum ./"${1##*/}" >> "$2" || \
|
||||
x_ "$sha512sum" ./"${1##*/}" >> "$2" || \
|
||||
err "!sha512sum \"$1\" > \"$2\"" "mksha512" "$@"
|
||||
}
|
||||
|
||||
@@ -711,11 +713,13 @@ vfile()
|
||||
# must be called from a subshell
|
||||
check_vendor_hashes()
|
||||
{
|
||||
build_sbase
|
||||
|
||||
x_ cd "$tmpromdir"
|
||||
|
||||
if [ "$has_hashes" != "n" ] && [ "$nuke" != "nuke" ]; then
|
||||
sha512sum --status -c "$hashfile" || x_ sha1sum --status \
|
||||
-c "$hashfile"
|
||||
( x_ "$sha512sum" -c "$hashfile" ) || \
|
||||
x_ sha1sum -c "$hashfile"
|
||||
fi
|
||||
|
||||
x_ rm -f "$hashfile"
|
||||
|
||||
Reference in New Issue
Block a user