diff options
author | Leah Rowe <leah@libreboot.org> | 2024-04-29 00:25:39 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-04-29 00:28:14 +0100 |
commit | 310378c9e584aa8ad37266a1d7a0f07640574a49 (patch) | |
tree | 90a08a854f3bb122881262ddd3a361546cedd6f8 /script | |
parent | 5003e02bb2cd7cededa85d13abbc7c6e720d7b56 (diff) |
build/roms: simplified list handling
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-x | script/build/roms | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/script/build/roms b/script/build/roms index b8aab271..1ed64004 100755 --- a/script/build/roms +++ b/script/build/roms @@ -33,10 +33,6 @@ main() while [ $# -gt 0 ]; do if [ "$listboards" = "y" ]; then - [ "$1" = "stable" ] || [ "$1" = "unstable" ] || \ - [ "$1" = "broken" ] || [ "$1" = "untested" ] || \ - [ "$1" = "unknown" ] || \ - $err "invalid list type '$1'" list_type="$list_type $1" list_type="${list_type# }" shift 1; continue @@ -62,9 +58,6 @@ main() shift 2 done - [ "$listboards" = "y" ] && [ -z "$list_type" ] && \ - list_type="stable unstable broken untested unknown" - [ "${all}" != "y" ] || boards=$(items config/coreboot) || \ $err "Cannot generate list of boards for building" @@ -79,11 +72,11 @@ main() continue if [ "$listboards" = "y" ]; then + [ -z "$list_type" ] && printf "%s\n" "$board" for _list_type in $list_type; do [ "$status" != "$_list_type" ] && continue printf "%s\n" "$board" - done - continue + done; continue fi # exclude certain targets from the release |