mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
move handle_coreboot_utils to script/trees
it doesn't really make sense placed in lib.sh, because it's only called from script/trees Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -154,22 +154,6 @@ check_defconfig()
|
||||
done
|
||||
}
|
||||
|
||||
handle_coreboot_utils()
|
||||
{
|
||||
for util in cbfstool ifdtool; do
|
||||
utilelfdir="elf/$util/$1"
|
||||
utilsrcdir="src/coreboot/$1/util/$util"
|
||||
|
||||
utilmode=""
|
||||
[ -z "$mode" ] || utilmode="clean"
|
||||
x_ make -C "$utilsrcdir" $utilmode
|
||||
[ -z "$mode" ] && [ ! -f "$utilelfdir/$util" ] && \
|
||||
x_ mkdir -p "$utilelfdir" && \
|
||||
x_ cp "$utilsrcdir/$util" "elf/$util/$1"
|
||||
[ -z "$mode" ] || x_ rm -Rf "$utilelfdir"
|
||||
done
|
||||
}
|
||||
|
||||
remkdir()
|
||||
{
|
||||
rm -Rf "$1" || $err "remkdir: !rm -Rf \"$1\""
|
||||
|
||||
Reference in New Issue
Block a user