build/coreboot/utils: exit 1 if target.cfg missing

it was previously trying to "continue", despite not being
inside a loop. the correct instruction would have
been "return 0", but then I thought it'd be better to
err here

Signed-off-by: Leah Rowe <leah@libreboot.org>
btrfsvols
Leah Rowe 2023-09-01 08:46:24 +01:00
parent b9662fbe36
commit 98f30b6dbe
1 changed files with 4 additions and 2 deletions

View File

@ -43,8 +43,10 @@ main()
build_for_mainboard() {
board="${1}"
[ -d "resources/coreboot/${board}" ] || continue
[ -f "resources/coreboot/${board}/target.cfg" ] || continue
[ -d "resources/coreboot/${board}" ] || \
err "build_for_mainboard ${board}: boarddir does not exist"
[ -f "resources/coreboot/${board}/target.cfg" ] || \
err "build_for_mainboard ${board}: target.cfg does not exist"
tree="undefined"
. "resources/coreboot/${board}/target.cfg" # source
[ "${tree}" = "undefined" ] && \