summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-11 18:53:12 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-11 18:53:12 +0100
commit05fbd392982344cf8f6743a59ba3817ab2771704 (patch)
tree3a50782a960d9a4672292e7e0b15e12f245a74dd /script
parent8ba0fd834ddd6269c0cc286e298c5bf864adb0ca (diff)
remove all status checks. only handle release.
the release variable is all we need, turning a target on or off for a given release. the status checks were prone to bugs, and unnecessary; it also broke certain benchmark scripts. it's better to keep the lbmk logic simpler. board status will be moved to the documentation instead. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/roms88
1 files changed, 7 insertions, 81 deletions
diff --git a/script/roms b/script/roms
index 0525091b..ce7e52f2 100755
--- a/script/roms
+++ b/script/roms
@@ -24,31 +24,23 @@ stm32_src_dir="src/stm32-vserprog"
pv="payload_grub payload_grub_withseabios payload_seabios payload_memtest t"
pv="${pv} payload_seabios_withgrub payload_seabios_grubonly payload_uboot memtest_bin"
v="romdir cbrom initmode displaymode cbcfg targetdir tree keymaps release"
-v="${v} grub_timeout ubdir board grub_scan_disk uboot_config status"
+v="${v} grub_timeout ubdir board grub_scan_disk uboot_config"
eval "$(setvars "n" ${pv} serprog)"
eval "$(setvars "" ${v} boards _displaymode _payload _keyboard all targets \
- skipped listboards list_type serprog_boards_dir)"
+ serprog_boards_dir)"
main()
{
check_project
while [ $# -gt 0 ]; do
- if [ "$listboards" = "y" ]; then
- list_type="$list_type $1"
- list_type="${list_type# }"
- shift 1; continue
- fi
-
case ${1} in
help)
usage
exit 0 ;;
list)
- boards=$(items config/coreboot) || \
- $err "Cannot generate list of boards for list"
- listboards="y"
- shift 1; continue ;;
+ x_ items config/coreboot
+ return 0 ;;
serprog)
serprog="y"
shift 1; break ;;
@@ -74,14 +66,6 @@ main()
done
fi
- [ "$listboards" = "y" ] && return 0
-
- if [ -n "$skipped" ]; then
- printf "\nThese targets were skipped:\n"
- eval "printf \"${skipped}\""
- printf "^^ These targets were skipped.\n\n"
- fi
-
[ -z "${targets}" ] && $err "No ROM images were compiled"
printf "\nROM images available in these directories:\n"
eval "printf \"${targets}\""
@@ -155,18 +139,11 @@ handle_coreboot_target()
eval "$(setvars "n" ${pv}) $(setvars "" ${v})"
grub_background="background1280x800.png"
board="$1"
- status="unknown"
configure_target
- [ "$board" = "$tree" ] && \
- return 0
-
- print_target_name && return 0
-
- # exclude certain targets from the release
- if skip_board; then
- printf "Skip target %s(%s)\n" "$board" "$status"
- skipped="* $board($status)\n$skipped"
+ [ "$board" = "$tree" ] && return 0
+ if [ "$lbmk_release" = "y" ] && [ "$release" = "n" ]; then
+ printf "Target '%s' disabled for release.\n" "$board"
return 0
fi
@@ -225,57 +202,6 @@ configure_target()
eval "payload_${_payload}=y"
}
-print_target_name()
-{
- [ "$listboards" = "y" ] || return 1
-
- [ -z "$list_type" ] && printf "%s\n" "$board"
-
- for _list_type in $list_type; do
- if [ "${_list_type#_}" = "$_list_type" ]; then
- [ "$status" != "$_list_type" ] && \
- continue
- printf "%s\n" "$board"
- break
- elif [ "$status" != "${_list_type#_}" ]; then
- printf "%s\n" "$board"
- break
- fi
- done
-}
-
-skip_board()
-{
- if [ "$listboards" != "y" ] && [ "$status" != "stable" ]; then
- printf "\n\n\t!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
- printf "\t__WARNING: %s has status '%s'__\n" \
- "$board" "$status"
- printf "\t!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n"
- fi
-
- if [ -f "$targetdir/warn.txt" ] && [ "$listboards" != "y" ]; then
- printf "Regarding target '%s' (status '%s'):\n\n" \
- "$board" "$status"
- cat -u "$targetdir/warn.txt" || \
- $err "!cat $targetdir/warn.txt"
- fi
-
- [ "$lbmk_release" = "y" ] && [ "$release" = "n" ] && return 0
- [ "$lbmk_release" = "y" ] && [ "$status" != "broken" ] && return 1
- [ "$lbmk_status" = "y" ] || return 1
- [ "$status" = "stable" ] && return 1
-
- printf "\nTo disable this dialog when building, do:\n"
- printf "export LBMK_STATUS=n\n\n"
- while true; do
- printf "Board %s has status '%s'. Skip? [y/n] " \
- "$board" "$status"
- read -r skip
- [ "$skip" = "y" ] && return 0
- [ "$skip" = "n" ] && return 1; continue
- done
-}
-
build_payloads()
{
romdir="bin/${board}"