summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-30 13:18:11 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-30 13:18:11 +0100
commit6125d3418f66cf54c49da780b584945e735d4d73 (patch)
tree1fdf2caea0aae471779d92bf718af198cbaaef6b /script
parent13f5a4322b1cef2dbb16b0a9c55c921f21432b38 (diff)
build/boot/roms: merge handle_targets/build_target
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/build/boot/roms11
1 files changed, 4 insertions, 7 deletions
diff --git a/script/build/boot/roms b/script/build/boot/roms
index 923ba83d..9ddbb03e 100755
--- a/script/build/boot/roms
+++ b/script/build/boot/roms
@@ -58,17 +58,14 @@ handle_targets()
err "handle_targets: Cannot get list of boards"
for board in ${boards}; do
- build_target "${board}" || err "handle_targets: build error"
+ [ -d "config/coreboot/${board}/" ] || \
+ err "handle_targets: target not defined: ${board}"
+ ./build boot roms_helper ${board}${opts} || \
+ err "handle_targets ${board}${opts}: build error"
[ -d "bin/${board}" ] && targets="${board} ${targets}"
done
}
-build_target() {
- [ -d "config/coreboot/${1}/" ] || \
- err "build/roms: target not defined: ${1}"
- ./build boot roms_helper ${1}${opts} || return 1
-}
-
confirm_targets()
{
[ -z "${targets}" ] && err "No ROM images were compiled."