summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-12 16:20:34 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-12 16:20:34 +0100
commit23913bb8d2aa80452c381086b7513587badcd1e4 (patch)
treed16ad4cc1e8261d4bb8ba255a137a3ff5cac8b64 /include
parent80f0562e8d1d0de4715bdcbdab52440302fd1c44 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/lib.sh8
-rw-r--r--include/vendor.sh8
2 files changed, 8 insertions, 8 deletions
diff --git a/include/lib.sh b/include/lib.sh
index fc26c733..d5607c61 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -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"
diff --git a/include/vendor.sh b/include/vendor.sh
index 4374277a..73f2592c 100644
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -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"