vendor.sh: simplify defconfig check
re-use check_defconfig from option.sh Signed-off-by: Leah Rowe <leah@libreboot.org>20240612_branch
parent
f8e3ca3b22
commit
32923f5608
|
@ -46,10 +46,8 @@ vendor_download()
|
|||
|
||||
detect_firmware()
|
||||
{
|
||||
_cfg_exists="n"
|
||||
for _chk_file in "${boarddir}/config/"*; do
|
||||
[ -f "${_chk_file}" ] && _cfg_exists="y" && break
|
||||
done
|
||||
_cfg_exists="y"
|
||||
check_defconfig "$boarddir" && _cfg_exists="n"
|
||||
[ "${_cfg_exists}" = "n" ] && return 1
|
||||
|
||||
set -- "${boarddir}/config/"*
|
||||
|
|
Loading…
Reference in New Issue