build/roms: simplified list handling
Signed-off-by: Leah Rowe <leah@libreboot.org>audit2-merge1
parent
fce056587e
commit
2672393bf5
|
@ -33,10 +33,6 @@ main()
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
|
|
||||||
if [ "$listboards" = "y" ]; then
|
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 $1"
|
||||||
list_type="${list_type# }"
|
list_type="${list_type# }"
|
||||||
shift 1; continue
|
shift 1; continue
|
||||||
|
@ -62,9 +58,6 @@ main()
|
||||||
shift 2
|
shift 2
|
||||||
done
|
done
|
||||||
|
|
||||||
[ "$listboards" = "y" ] && [ -z "$list_type" ] && \
|
|
||||||
list_type="stable unstable broken untested unknown"
|
|
||||||
|
|
||||||
[ "${all}" != "y" ] || boards=$(items config/coreboot) || \
|
[ "${all}" != "y" ] || boards=$(items config/coreboot) || \
|
||||||
$err "Cannot generate list of boards for building"
|
$err "Cannot generate list of boards for building"
|
||||||
|
|
||||||
|
@ -79,11 +72,11 @@ main()
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if [ "$listboards" = "y" ]; then
|
if [ "$listboards" = "y" ]; then
|
||||||
|
[ -z "$list_type" ] && printf "%s\n" "$board"
|
||||||
for _list_type in $list_type; do
|
for _list_type in $list_type; do
|
||||||
[ "$status" != "$_list_type" ] && continue
|
[ "$status" != "$_list_type" ] && continue
|
||||||
printf "%s\n" "$board"
|
printf "%s\n" "$board"
|
||||||
done
|
done; continue
|
||||||
continue
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# exclude certain targets from the release
|
# exclude certain targets from the release
|
||||||
|
|
Loading…
Reference in New Issue