summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-17 10:40:55 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-17 10:40:55 +0100
commite1c2525783d5ed65d1ab909102a64cb1ecf27ad6 (patch)
tree5ee1a4d6c4423fc7dc88b09c1a126afad446b269 /include/lib.sh
parent69875b8e10fb1ae53c4f6aba38b4f604276d3f5b (diff)
lib.sh: make build_sbase a macro
sh macros are cool Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-rw-r--r--include/lib.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 03758982..74b75283 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -8,6 +8,8 @@
cbfstool="elf/coreboot/default/cbfstool"
rmodtool="elf/coreboot/default/rmodtool"
+build_sbase="[ ! -f \"\$sha512sum\" ] && x_ make -C util/sbase" # macro!
+
newvar()
{
printf "%s\n" "$*" | \
@@ -112,11 +114,6 @@ unpad_one_byte()
x_ mv "$unpaddedfile" "$1"
}
-build_sbase()
-{
- [ ! -f "$sha512sum" ] && x_ make -C "$xbmkpwd/util/sbase"; :
-}
-
remkdir()
{
x_ rm -Rf "$@"