build/boot/roms: split up handle_targets()

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-09-30 14:13:11 +01:00
parent 4afa0aaa3c
commit f3c4f208d0
+10 -6
View File
@@ -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."