mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 08:40:14 +02:00
vendor.sh: print an error upon ill-defined target
previously, it was attempting to load the configs and silently failing. we must provide feedback to the user. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -36,6 +36,8 @@ vendor_download()
|
|||||||
boarddir="${cbcfgsdir}/${board}"
|
boarddir="${cbcfgsdir}/${board}"
|
||||||
_b="${board%%_*mb}" # shorthand (no duplication per rom size)
|
_b="${board%%_*mb}" # shorthand (no duplication per rom size)
|
||||||
|
|
||||||
|
[ -d "$boarddir" ] || $err "Target '$board' not defined."
|
||||||
|
|
||||||
check_defconfig "${boarddir}" && exit 0
|
check_defconfig "${boarddir}" && exit 0
|
||||||
detect_firmware && exit 0
|
detect_firmware && exit 0
|
||||||
scan_config "${_b}" "config/vendor"
|
scan_config "${_b}" "config/vendor"
|
||||||
|
|||||||
Reference in New Issue
Block a user