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