lib.sh: move mksha512sum() to vendor.sh

this is unused in cbmk.

it's only used from vendor.sh.

therefore, lbmk shall have it in vendor.sh.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-12 16:20:34 +01:00
parent 80f0562e8d
commit 23913bb8d2
2 changed files with 8 additions and 8 deletions

View File

@@ -29,14 +29,6 @@ mktarball()
x_ tar -c "$1" | xz -T$XBMK_THREADS -9e > "$2" || err "mktarball2, $1"
}
mksha512sum()
{
(
[ "${1%/*}" != "$1" ] && x_ cd "${1%/*}"
sha512sum ./"${1##*/}" >> "$2" || err "!sha512sum \"$1\" > \"$2\""
) || err "failed to create tarball checksum"
}
rmgit()
{
fx_ "x_ rm -Rf" x_ find "$1" -name ".git"

View File

@@ -277,6 +277,14 @@ prep()
x_ rm -f "$_xrom"
}
mksha512sum()
{
(
[ "${1%/*}" != "$1" ] && x_ cd "${1%/*}"
sha512sum ./"${1##*/}" >> "$2" || err "!sha512sum \"$1\" > \"$2\""
) || err "failed to create tarball checksum"
}
add_vfiles()
{
rom="$1"