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
parent
b9662fbe36
commit
98f30b6dbe
|
@ -43,8 +43,10 @@ main()
|
||||||
|
|
||||||
build_for_mainboard() {
|
build_for_mainboard() {
|
||||||
board="${1}"
|
board="${1}"
|
||||||
[ -d "resources/coreboot/${board}" ] || continue
|
[ -d "resources/coreboot/${board}" ] || \
|
||||||
[ -f "resources/coreboot/${board}/target.cfg" ] || continue
|
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"
|
tree="undefined"
|
||||||
. "resources/coreboot/${board}/target.cfg" # source
|
. "resources/coreboot/${board}/target.cfg" # source
|
||||||
[ "${tree}" = "undefined" ] && \
|
[ "${tree}" = "undefined" ] && \
|
||||||
|
|
Loading…
Reference in New Issue