summaryrefslogtreecommitdiff
path: root/script/randconfig
blob: 7a4ec823d23626907bec8951ddbc88f189927627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#
# Copyright 2020 Daniel Friesel
#
# SPDX-License-Identifier: BSD-2-Clause

# randconfig occasionally generates invalid configs which lack an application.
# Try generating a valid config up to ten times.

for i in $(seq 1 10); do
	kconfig-conf --randconfig Kconfig
	if grep -F -q CONFIG_app= .config; then
		exit 0
	fi
done

exit 1