diff options
| author | Leah Rowe <leah@libreboot.org> | 2023-09-30 14:13:11 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2023-09-30 14:13:11 +0100 | 
| commit | f3c4f208d0ca611cec269aa225e60f463c099d35 (patch) | |
| tree | 4c2735b0afd947077bd9e6b83a56bc37635e01d4 /script/build | |
| parent | 4afa0aaa3c0294cf8e07e7be4022e9c8ea466a86 (diff) | |
build/boot/roms: split up handle_targets()
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build')
| -rwxr-xr-x | script/build/boot/roms | 16 | 
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." | 
