From 2672393bf517f61ea5ad0a22cd9a606a6caf7ee6 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Mon, 29 Apr 2024 00:25:39 +0100
Subject: [PATCH] build/roms: simplified list handling

Signed-off-by: Leah Rowe <leah@libreboot.org>
---
 script/build/roms | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/script/build/roms b/script/build/roms
index 1d6a0f0..38ee9fb 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