summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-30 14:13:11 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-30 14:13:11 +0100
commitf3c4f208d0ca611cec269aa225e60f463c099d35 (patch)
tree4c2735b0afd947077bd9e6b83a56bc37635e01d4 /script
parent4afa0aaa3c0294cf8e07e7be4022e9c8ea466a86 (diff)
build/boot/roms: split up handle_targets()
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/build/boot/roms16
1 files changed, 10 insertions, 6 deletions
diff --git a/script/build/boot/roms b/script/build/boot/roms
index f80e2a3a..571e4da3 100755
--- a/script/build/boot/roms
+++ b/script/build/boot/roms
@@ -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."