diff options
author | Leah Rowe <leah@libreboot.org> | 2023-09-04 16:16:53 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-09-04 16:16:53 +0100 |
commit | 2cbc7eea9533c6da7a4b1cbc3408066aaef85f5a (patch) | |
tree | 8c46c2fb7fc253fe991f498c0068d73fe693bee5 /include/defconfig.sh | |
parent | 52677309c529c6cbaad5cc76b39f2b9598488ed7 (diff) |
update/blobs/*: unify checking of defconfig files
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/defconfig.sh')
-rwxr-xr-x | include/defconfig.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 <leah@libreboot.org> +# 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}" +} |