build/boot/roms: split up handle_targets()
Signed-off-by: Leah Rowe <leah@libreboot.org>btrfsvols
parent
4afa0aaa3c
commit
f3c4f208d0
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue