summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vendor.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index 15d4e5cb..7fc283b8 100644
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -407,7 +407,9 @@ readcfg()
[ "$board" = "serprog_pico" ]; then
return 1
fi; boarddir="$cbcfgsdir/$board"
- eval "`setcfg "$boarddir/target.cfg"`"; chkvars vcfg tree
+ eval "`setcfg "$boarddir/target.cfg"`"
+ [ -z "$vcfg" ] && return 1
+ chkvars tree
cbdir="src/coreboot/$tree"
cbfstool="elf/cbfstool/$tree/cbfstool"