Debian Codegraph @

scripts/kconfig/tests/conditional_dep/Kconfig

raw
1 # SPDX-License-Identifier: GPL-2.0
2 # Test Kconfig file for conditional dependencies.
3
4 # Enable module support for tristate testing
5 config MODULES
6 bool "Enable loadable module support"
7 modules
8 default y
9
10 config FOO
11 bool "FOO symbol"
12
13 config BAR
14 bool "BAR symbol"
15
16 config TEST_BASIC
17 bool "Test basic conditional dependency"
18 depends on FOO if BAR
19 default y
20
21 config TEST_COMPLEX
22 bool "Test complex conditional dependency"
23 depends on (FOO && BAR) if (FOO || BAR)
24 default y
25
26 config BAZ
27 tristate "BAZ symbol"
28
29 config TEST_OPTIONAL
30 tristate "Test simple optional dependency"
31 depends on BAZ if BAZ
32 default y