vendor.sh: Don't error if vcfg is unset
It should return 1 instead, in readcfg(), because this is not an error condition; vcfg not being set means that the board doesn't use vendor files, which is perfectly normal and should not yield an error. This fixes a build error under certain conditions, found during release-build testing. This bug was exposed when I fixed double quoting issues as per shellcheck tests. Signed-off-by: Leah Rowe <leah@libreboot.org>20241206_branch
parent
432a1a5bca
commit
818f3d630c
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue