summaryrefslogtreecommitdiff
path: root/scripts/kconfig/tests/conditional_dep/Kconfig
blob: 2015dfbce2b15875a58ac1f7f363a7edf29e3bfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-License-Identifier: GPL-2.0
# Test Kconfig file for conditional dependencies.

# Enable module support for tristate testing
config MODULES
	bool "Enable loadable module support"
	modules
	default y

config FOO
	bool "FOO symbol"

config BAR
	bool "BAR symbol"

config TEST_BASIC
	bool "Test basic conditional dependency"
	depends on FOO if BAR
	default y

config TEST_COMPLEX
	bool "Test complex conditional dependency"
	depends on (FOO && BAR) if (FOO || BAR)
	default y

config BAZ
	tristate "BAZ symbol"

config TEST_OPTIONAL
	tristate "Test simple optional dependency"
	depends on BAZ if BAZ
	default y