unified sha512sum creation for tarballs
Signed-off-by: Leah Rowe <leah@libreboot.org>20240612_branch
parent
1ce7e33976
commit
08c9f94a1a
|
@ -196,10 +196,15 @@ mktarball()
|
|||
tar -c "$1" | xz -T$threads -9e > "$2" || \
|
||||
$err "mktarball 2, $1"
|
||||
fi
|
||||
mksha512sum "${2}" "${2##*/}.sha512"
|
||||
}
|
||||
|
||||
mksha512sum()
|
||||
{
|
||||
(
|
||||
[ "${2%/*}" != "${2}" ] && x_ cd "${2%/*}"
|
||||
sha512sum "${2##*/}" > "${2##*/}.sha512" || \
|
||||
$err "!sha512sum \"${2##*/}\" > \"${2##*/}.sha512\""
|
||||
[ "${1%/*}" != "${1}" ] && x_ cd "${1%/*}"
|
||||
sha512sum ./"${1##*/}" >> "${2}" || \
|
||||
$err "!sha512sum \"${1}\" > \"${2}\""
|
||||
) || $err "failed to create tarball checksum"
|
||||
}
|
||||
|
||||
|
|
|
@ -472,10 +472,7 @@ moverom()
|
|||
x_ cp "$1" "$2"
|
||||
[ "$lbmk_release" = "y" ] || return 0
|
||||
|
||||
(
|
||||
cd "${2%/*}" || $err "moverom, !cd \"${2%/*}\""
|
||||
sha512sum ./"${2##*/}" >> vendorhashes || $err "!$2 vendorhashes"
|
||||
) || $err "Cannot create checksum for '$2'"
|
||||
mksha512sum "${2}" "vendorhashes"
|
||||
x_ ./vendor inject -r "${2}" -b "$board" -n nuke
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue