From 2cbc7eea9533c6da7a4b1cbc3408066aaef85f5a Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 4 Sep 2023 16:16:53 +0100 Subject: update/blobs/*: unify checking of defconfig files Signed-off-by: Leah Rowe --- script/update/blobs/inject | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'script/update/blobs/inject') diff --git a/script/update/blobs/inject b/script/update/blobs/inject index 8eec544a..9d3d4678 100755 --- a/script/update/blobs/inject +++ b/script/update/blobs/inject @@ -6,6 +6,7 @@ # SPDX-License-Identifier: GPL-3.0-only . "include/err.sh" +. "include/defconfig.sh" sname="" archive="" @@ -179,12 +180,7 @@ patch_rom() { rom="${1}" - no_config="printf \"No configs on target, %s\\n\" ${board} 1>&2; exit 1" - for x in "${boarddir}"/config/*; do - [ -f "${x}" ] && no_config="" - done - eval "${no_config}" - + check_defconfig "${boarddir}" || exit 1 set -- "${boarddir}/config/"* . "${1}" 2>/dev/null -- cgit v1.2.1