xref: /linux/scripts/kconfig/tests/err_recursive_dep/Kconfig (revision 3eb66e91a25497065c5322b1268cbc3953642227)
1*5e8c5299SMasahiro Yamada# SPDX-License-Identifier: GPL-2.0
2*5e8c5299SMasahiro Yamada
3f1575595SMasahiro Yamada# depends on itself
4f1575595SMasahiro Yamada
5f1575595SMasahiro Yamadaconfig A
6f1575595SMasahiro Yamada	bool "A"
7f1575595SMasahiro Yamada	depends on A
8f1575595SMasahiro Yamada
9f1575595SMasahiro Yamada# select itself
10f1575595SMasahiro Yamada
11f1575595SMasahiro Yamadaconfig B
12f1575595SMasahiro Yamada	bool
13f1575595SMasahiro Yamada	select B
14f1575595SMasahiro Yamada
15f1575595SMasahiro Yamada# depends on each other
16f1575595SMasahiro Yamada
17f1575595SMasahiro Yamadaconfig C1
18f1575595SMasahiro Yamada	bool "C1"
19f1575595SMasahiro Yamada	depends on C2
20f1575595SMasahiro Yamada
21f1575595SMasahiro Yamadaconfig C2
22f1575595SMasahiro Yamada	bool "C2"
23f1575595SMasahiro Yamada	depends on C1
24f1575595SMasahiro Yamada
25f1575595SMasahiro Yamada# depends on and select
26f1575595SMasahiro Yamada
27f1575595SMasahiro Yamadaconfig D1
28f1575595SMasahiro Yamada	bool "D1"
29f1575595SMasahiro Yamada	depends on D2
30f1575595SMasahiro Yamada	select D2
31f1575595SMasahiro Yamada
32f1575595SMasahiro Yamadaconfig D2
33f1575595SMasahiro Yamada	bool
34f1575595SMasahiro Yamada
35f1575595SMasahiro Yamada# depends on and imply
36f1575595SMasahiro Yamada
37f1575595SMasahiro Yamadaconfig E1
38f1575595SMasahiro Yamada	bool "E1"
39f1575595SMasahiro Yamada	depends on E2
40f1575595SMasahiro Yamada	imply E2
41f1575595SMasahiro Yamada
42f1575595SMasahiro Yamadaconfig E2
43f1575595SMasahiro Yamada	bool "E2"
44f1575595SMasahiro Yamada
45f1575595SMasahiro Yamada# property
46f1575595SMasahiro Yamada
47f1575595SMasahiro Yamadaconfig F1
48f1575595SMasahiro Yamada	bool "F1"
49f1575595SMasahiro Yamada	default F2
50f1575595SMasahiro Yamada
51f1575595SMasahiro Yamadaconfig F2
52f1575595SMasahiro Yamada	bool "F2"
53f1575595SMasahiro Yamada	depends on F1
54f1575595SMasahiro Yamada
55f1575595SMasahiro Yamada# menu
56f1575595SMasahiro Yamada
57f1575595SMasahiro Yamadamenu "menu depending on its content"
58f1575595SMasahiro Yamada	depends on G
59f1575595SMasahiro Yamada
60f1575595SMasahiro Yamadaconfig G
61f1575595SMasahiro Yamada	bool "G"
62f1575595SMasahiro Yamada
63f1575595SMasahiro Yamadaendmenu
64