Kconfig 614 B

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