mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-15 17:58:46 +02:00
build: make coreboot building an else in "roms"
Otherwise, the current return prevents set -u -e after the case/switch block, which is a problem if set +u +e was done at any point before the return. Remove the return in the roms) section of the case/switch block, and make the building of coreboot images part of an else clause. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -47,10 +47,10 @@ main()
|
|||||||
roms)
|
roms)
|
||||||
if [ $# -gt 1 ] && [ "$2" = "serprog" ]; then
|
if [ $# -gt 1 ] && [ "$2" = "serprog" ]; then
|
||||||
mk -b stm32-vserprog pico-serprog
|
mk -b stm32-vserprog pico-serprog
|
||||||
return 0
|
else
|
||||||
fi
|
shift 1
|
||||||
shift 1
|
x_ ./mk -b coreboot "$@"
|
||||||
x_ ./mk -b coreboot "$@" ;;
|
fi ;;
|
||||||
*)
|
*)
|
||||||
[ -f "$spath" ] || $err "bad command"
|
[ -f "$spath" ] || $err "bad command"
|
||||||
$shcmd
|
$shcmd
|
||||||
|
|||||||
Reference in New Issue
Block a user