mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 04:22:15 +02:00
+12
-11
@@ -42,6 +42,18 @@ mkpayload_grub()
|
|||||||
$err "$tree: cannot build grub.elf"; return 0
|
$err "$tree: cannot build grub.elf"; return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mkvendorfiles()
|
||||||
|
{
|
||||||
|
if [ "$_f" = "-d" ]; then
|
||||||
|
check_coreboot_utils "$tree"
|
||||||
|
elif [ "$_f" = "-b" ]; then
|
||||||
|
printf "%s\n" "${version%%-*}" > "$cdir/.coreboot-version" || \
|
||||||
|
$err "!mk $cdir .coreboot-version"
|
||||||
|
fi
|
||||||
|
[ -z "$mode" ] && [ "$target" != "$tree" ] && \
|
||||||
|
x_ ./vendor download $target; return 0
|
||||||
|
}
|
||||||
|
|
||||||
check_coreboot_utils()
|
check_coreboot_utils()
|
||||||
{
|
{
|
||||||
for util in cbfstool ifdtool; do
|
for util in cbfstool ifdtool; do
|
||||||
@@ -57,17 +69,6 @@ check_coreboot_utils()
|
|||||||
done; return 0
|
done; return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
mkvendorfiles()
|
|
||||||
{
|
|
||||||
if [ "$_f" = "-d" ]; then
|
|
||||||
check_coreboot_utils "$tree"
|
|
||||||
elif [ "$_f" = "-b" ]; then
|
|
||||||
printf "%s\n" "${version%%-*}" > "$cdir/.coreboot-version"
|
|
||||||
fi
|
|
||||||
[ -z "$mode" ] && [ "$target" != "$tree" ] && \
|
|
||||||
x_ ./vendor download $target; return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
mkcorebootbin()
|
mkcorebootbin()
|
||||||
{
|
{
|
||||||
[ "$_f" = "-d" ] && return 0 # dry run
|
[ "$_f" = "-d" ] && return 0 # dry run
|
||||||
|
|||||||
Reference in New Issue
Block a user