Simon Glass | 29784d6 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
| 2 | # Copyright 2022 Google LLC |
| 3 | |
| 4 | if SANDBOX |
| 5 | |
| 6 | config TEST_KCONFIG |
| 7 | bool "Enable detection of Kconfig macro errors" |
| 8 | help |
| 9 | This is used to test that the IF_ENABLED_INT() macro causes a build error |
| 10 | if the value is used when the CONFIG Is not enabled. |
| 11 | |
| 12 | config TEST_KCONFIG_ENABLE |
| 13 | bool "Option to enable" |
| 14 | help |
| 15 | This is the option that controls whether the value is present. |
| 16 | |
| 17 | config TEST_KCONFIG_VALUE |
| 18 | int "Value associated with the option" |
| 19 | depends on TEST_KCONFIG_ENABLE |
| 20 | help |
| 21 | This is the value whgch is present if TEST_KCONFIG_ENABLE is enabled. |
| 22 | |
| 23 | endif # SANDBOX |