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 --- include/defconfig.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 include/defconfig.sh (limited to 'include') diff --git a/include/defconfig.sh b/include/defconfig.sh new file mode 100755 index 00000000..f022937a --- /dev/null +++ b/include/defconfig.sh @@ -0,0 +1,11 @@ +# Copyright (c) 2023 Leah Rowe +# SPDX-License-Identifier: MIT + +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="" + done + eval "${no_config}" +} -- cgit v1.2.1