summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-18 11:25:28 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-18 11:25:28 +0100
commitbb7255c34ba807955b6f64cacb1e1dced4bea4bd (patch)
tree8440da49e2678925ef727dbd0d32ec4f8936e179 /include
parent3f73f3d0b4faa50ff5cf02c2c7dbb113722fe9d7 (diff)
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>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/vendor.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index af441449..8992995f 100755
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -36,6 +36,8 @@ vendor_download()
boarddir="${cbcfgsdir}/${board}"
_b="${board%%_*mb}" # shorthand (no duplication per rom size)
+ [ -d "$boarddir" ] || $err "Target '$board' not defined."
+
check_defconfig "${boarddir}" && exit 0
detect_firmware && exit 0
scan_config "${_b}" "config/vendor"