vendor.sh: greatly simplified config handling
Signed-off-by: Leah Rowe <leah@libreboot.org>20240612_branch
parent
53b394f583
commit
8418ea9ab2
|
@ -122,7 +122,7 @@ EOF
|
|||
check_defconfig()
|
||||
{
|
||||
for x in "${1}"/config/*; do
|
||||
[ -f "${x}" ] && return 1
|
||||
[ -f "${x}" ] && printf "%s\n" "$x" && return 1
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -46,10 +46,7 @@ vendor_download()
|
|||
detect_firmware()
|
||||
{
|
||||
[ -d "$boarddir" ] || $err "Target '$board' not defined."
|
||||
check_defconfig "${boarddir}" && exit 0
|
||||
|
||||
set -- "${boarddir}/config/"*
|
||||
. "${1}" 2>/dev/null
|
||||
. "$(check_defconfig "${boarddir}")" 2>/dev/null || exit 0
|
||||
. "${boarddir}/target.cfg" 2>/dev/null
|
||||
|
||||
[ -z "$tree" ] && $err "detect_firmware $boarddir: tree undefined"
|
||||
|
|
Loading…
Reference in New Issue