summaryrefslogtreecommitdiff
path: root/include/defconfig.sh
blob: f022937aba840f1ffb9c3a1398b093503f6b4674 (plain)
1
2
3
4
5
6
7
8
9
10
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}"
}