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