summaryrefslogtreecommitdiff
path: root/include/defconfig.sh
blob: 7b2e4c120e46e0981a192783b22d2b601d0fe027 (plain)
1
2
3
4
5
6
7
8
9
10
11
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2023 Leah Rowe <leah@libreboot.org>

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}"
}