mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +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"
|
||||
|
||||
check_targets
|
||||
|
||||
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
|
||||
build_bootroms
|
||||
}
|
||||
|
||||
check_targets()
|
||||
@@ -74,6 +69,15 @@ check_targets()
|
||||
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()
|
||||
{
|
||||
[ -z "${targets}" ] && err "No ROM images were compiled."
|
||||
|
||||
Reference in New Issue
Block a user