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 | |
Simon Glass | 29784d6 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 4 | config TEST_KCONFIG |
| 5 | bool "Enable detection of Kconfig macro errors" |
Heinrich Schuchardt | 0b8b7d4 | 2023-04-03 12:04:39 +0200 | [diff] [blame] | 6 | depends on SANDBOX |
Simon Glass | 29784d6 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 7 | help |
| 8 | This is used to test that the IF_ENABLED_INT() macro causes a build error |
Heinrich Schuchardt | 0b8b7d4 | 2023-04-03 12:04:39 +0200 | [diff] [blame] | 9 | if the value is used when the CONFIG is not enabled. |
| 10 | |
| 11 | if TEST_KCONFIG |
Simon Glass | 29784d6 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 12 | |
| 13 | config TEST_KCONFIG_ENABLE |
Heinrich Schuchardt | 0b8b7d4 | 2023-04-03 12:04:39 +0200 | [diff] [blame] | 14 | bool "Provide a value for the Kconfig test" |
Simon Glass | 29784d6 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 15 | help |
| 16 | This is the option that controls whether the value is present. |
| 17 | |
| 18 | config TEST_KCONFIG_VALUE |
Heinrich Schuchardt | 0b8b7d4 | 2023-04-03 12:04:39 +0200 | [diff] [blame] | 19 | int "Value used in Kconfig test" |
Simon Glass | 29784d6 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 20 | depends on TEST_KCONFIG_ENABLE |
| 21 | help |
Heinrich Schuchardt | 0b8b7d4 | 2023-04-03 12:04:39 +0200 | [diff] [blame] | 22 | This is the value which is present if TEST_KCONFIG_ENABLE is enabled. |
Simon Glass | 29784d6 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 23 | |
Heinrich Schuchardt | 0b8b7d4 | 2023-04-03 12:04:39 +0200 | [diff] [blame] | 24 | endif # TEST_KCONFIG |