vendor.sh: simplify defconfig check

re-use check_defconfig from option.sh

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2024-05-18 11:14:39 +01:00
parent f8e3ca3b22
commit 32923f5608
+2 -4
View File
@@ -46,10 +46,8 @@ vendor_download()
detect_firmware() detect_firmware()
{ {
_cfg_exists="n" _cfg_exists="y"
for _chk_file in "${boarddir}/config/"*; do check_defconfig "$boarddir" && _cfg_exists="n"
[ -f "${_chk_file}" ] && _cfg_exists="y" && break
done
[ "${_cfg_exists}" = "n" ] && return 1 [ "${_cfg_exists}" = "n" ] && return 1
set -- "${boarddir}/config/"* set -- "${boarddir}/config/"*