summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-04-28 20:33:38 +0100
committerLeah Rowe <leah@libreboot.org>2024-04-28 20:33:38 +0100
commit91927760db296596af3946327319625c17c1afa5 (patch)
tree5393fc64d758a5c4d4adf6125d58e44be405de4e /script
parent230f68fd8f9c4178051635f52df9ccf9700cd30d (diff)
build/roms: simplified status handling
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/build/roms30
1 files changed, 6 insertions, 24 deletions
diff --git a/script/build/roms b/script/build/roms
index 1c427b69..b84fd3b1 100755
--- a/script/build/roms
+++ b/script/build/roms
@@ -72,13 +72,12 @@ main()
eval "$(setvars "n" ${pv}) $(setvars "" ${v})"
grub_background="background1280x800.png"
board="${x}"
+ status="unknown"
configure_target
[ "$board" = "$tree" ] && \
continue
- handle_status
-
if [ "$listboards" = "y" ]; then
for _list_type in $list_type; do
[ "$status" != "$_list_type" ] && continue
@@ -163,34 +162,17 @@ configure_target()
eval "payload_${_payload}=y"
}
-handle_status()
-{
- [ "$status" = "stable" ] || [ "$status" = "unstable" ] || \
- [ "$status" = "broken" ] || [ "$status" = "untested" ] || \
- status="unknown"
-
- [ "$listboards" != "y" ] && \
- printf "Handling target: %s (status=%s)\n" "$board" "$status"
-
- [ "$status" = "broken" ] && release="n"
- [ "$status" = "unknown" ] && release="n"
- [ "$status" = "untested" ] && release="n"
-
- [ "$listboards" != "y" ] && \
- [ "$status" != "stable" ] && [ "$status" != "$release_type" ] && \
- printf "WARNING: %s not marked stable (status=%s):\n\n" \
- "$board" "$status"; return 0
-}
-
skip_board()
{
+ [ "$listboards" != "y" ] && [ "$status" != "stable" ] && \
+ printf "WARNING: %s not stable (status=%s):\n\n" \
+ "$board" "$status"
+
[ "$release" = "n" ] && [ "$lbmk_release" = "y" ] && \
return 0
- [ -n "$release_type" ] && [ "$status" = "$release_type" ] && \
- return 1
if [ "$lbmk_release" != "y" ] && [ "$status" != "stable" ] && \
- [ "$status" != "$release_type" ] && [ "$lbmk_status" = "y" ]; then
+ [ "$lbmk_status" = "y" ]; then
if [ -f "$targetdir/warn.txt" ]; then
printf "Regarding board '%s' (status '%s'):\n" \
"$board" "$status"