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:
Leah Rowe
2025-10-04 09:56:42 +01:00
parent e9a910b33c
commit 8969cc734f
5 changed files with 24 additions and 7 deletions
+2 -1
View File
@@ -313,7 +313,8 @@ bad_checksum()
return 0
fi
csum="$(x_ sha512sum "$2" | awk '{print $1}')" || \
build_sbase
csum="$(x_ "$sha512sum" "$2" | awk '{print $1}')" || \
err "!sha512 '$2' $1" bad_checksum "$@"
if [ "$csum" = "$1" ]; then