mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 09:32:27 +02:00
build/boot/roms: split up handle_targets()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+10
-6
@@ -58,12 +58,7 @@ handle_targets()
|
|||||||
err "handle_targets: Cannot get list of boards"
|
err "handle_targets: Cannot get list of boards"
|
||||||
|
|
||||||
check_targets
|
check_targets
|
||||||
|
build_bootroms
|
||||||
for board in ${boards}; do
|
|
||||||
./build boot roms_helper ${board}${opts} || \
|
|
||||||
err "handle_targets ${board}${opts}: build error"
|
|
||||||
[ -d "bin/${board}" ] && targets="${board} ${targets}"
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check_targets()
|
check_targets()
|
||||||
@@ -74,6 +69,15 @@ check_targets()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
build_bootroms()
|
||||||
|
{
|
||||||
|
for board in ${boards}; do
|
||||||
|
./build boot roms_helper ${board}${opts} || \
|
||||||
|
err "handle_targets ${board}${opts}: build error"
|
||||||
|
[ -d "bin/${board}" ] && targets="${board} ${targets}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
confirm_targets()
|
confirm_targets()
|
||||||
{
|
{
|
||||||
[ -z "${targets}" ] && err "No ROM images were compiled."
|
[ -z "${targets}" ] && err "No ROM images were compiled."
|
||||||
|
|||||||
Reference in New Issue
Block a user