From e1c2525783d5ed65d1ab909102a64cb1ecf27ad6 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 17 Sep 2026 10:40:55 +0100 Subject: lib.sh: make build_sbase a macro sh macros are cool Signed-off-by: Leah Rowe --- include/lib.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'include/lib.sh') 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 "$@" -- cgit v1.2.1