summaryrefslogtreecommitdiff
path: root/include/vendor.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-28 13:24:47 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-28 13:24:47 +0100
commita2f4eba581078887d402db91ed5372e25238e589 (patch)
tree682f086532ffc1d1992bb85cf6516f483d5a6e66 /include/vendor.sh
parent4afcbcb6414a035adcac14c244df4edffe84c554 (diff)
vendor.sh: simplify variable check in getcfg()
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/vendor.sh')
-rwxr-xr-xinclude/vendor.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index bd651703..7d1c4459 100755
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -38,15 +38,13 @@ vendor_download()
getcfg()
{
eval `setcfg "$boarddir/target.cfg"`
-
- [ -z "$vcfg" ] && printf "%s: vcfg unset\n" "$board" 1>&2 && return 1
+ chkvars vcfg tree
check_defconfig "$boarddir" 1>"$TMPDIR/vendorcfg.list" && return 1
while read -r cbcfgfile; do
set +u +e; . "$cbcfgfile" 2>/dev/null; set -u -e
done < "$TMPDIR/vendorcfg.list"
- [ -z "$tree" ] && $err "getcfg $boarddir: tree undefined"
cbdir="src/coreboot/$tree"
cbfstool="elf/cbfstool/$tree/cbfstool"