mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-26 22:09:03 +02:00
include/blobutil: simplify check_defconfig()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -47,11 +47,10 @@ eval "${setvars}"
|
||||
|
||||
check_defconfig()
|
||||
{
|
||||
no_config="printf \"No target defconfig in %s\\n\" ${1} 1>&2; return 1"
|
||||
for x in "${1}"/config/*; do
|
||||
[ -f "${x}" ] && no_config=""
|
||||
[ -f "${x}" ] && return 0
|
||||
done
|
||||
eval "${no_config}"
|
||||
return 1
|
||||
}
|
||||
|
||||
fetch()
|
||||
|
||||
@@ -171,7 +171,8 @@ patch_rom()
|
||||
[ -f "${rom%_nomicrocode.rom}.rom" ] && \
|
||||
[ "${release_archive}" = "y" ] && return 0
|
||||
|
||||
check_defconfig "${boarddir}" || exit 1
|
||||
check_defconfig "${boarddir}" || err "patch_rom ${rom}: no defconfig"
|
||||
|
||||
set -- "${boarddir}/config/"*
|
||||
. "${1}" 2>/dev/null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user