Kconfig 649 B

123456789101112131415161718192021222324
  1. # SPDX-License-Identifier: GPL-2.0+
  2. # Copyright 2022 Google LLC
  3. config TEST_KCONFIG
  4. bool "Enable detection of Kconfig macro errors"
  5. depends on SANDBOX
  6. help
  7. This is used to test that the IF_ENABLED_INT() macro causes a build error
  8. if the value is used when the CONFIG is not enabled.
  9. if TEST_KCONFIG
  10. config TEST_KCONFIG_ENABLE
  11. bool "Provide a value for the Kconfig test"
  12. help
  13. This is the option that controls whether the value is present.
  14. config TEST_KCONFIG_VALUE
  15. int "Value used in Kconfig test"
  16. depends on TEST_KCONFIG_ENABLE
  17. help
  18. This is the value which is present if TEST_KCONFIG_ENABLE is enabled.
  19. endif # TEST_KCONFIG