blob: ae0aa2ff7ace8e38e636056c15651b5bccc1c3b3 [file] [log] [blame]
Simon Glass29784d62022-08-01 07:57:59 -06001# SPDX-License-Identifier: GPL-2.0+
2# Copyright 2022 Google LLC
3
Simon Glass29784d62022-08-01 07:57:59 -06004config TEST_KCONFIG
5 bool "Enable detection of Kconfig macro errors"
Heinrich Schuchardt0b8b7d42023-04-03 12:04:39 +02006 depends on SANDBOX
Simon Glass29784d62022-08-01 07:57:59 -06007 help
8 This is used to test that the IF_ENABLED_INT() macro causes a build error
Heinrich Schuchardt0b8b7d42023-04-03 12:04:39 +02009 if the value is used when the CONFIG is not enabled.
10
11if TEST_KCONFIG
Simon Glass29784d62022-08-01 07:57:59 -060012
13config TEST_KCONFIG_ENABLE
Heinrich Schuchardt0b8b7d42023-04-03 12:04:39 +020014 bool "Provide a value for the Kconfig test"
Simon Glass29784d62022-08-01 07:57:59 -060015 help
16 This is the option that controls whether the value is present.
17
18config TEST_KCONFIG_VALUE
Heinrich Schuchardt0b8b7d42023-04-03 12:04:39 +020019 int "Value used in Kconfig test"
Simon Glass29784d62022-08-01 07:57:59 -060020 depends on TEST_KCONFIG_ENABLE
21 help
Heinrich Schuchardt0b8b7d42023-04-03 12:04:39 +020022 This is the value which is present if TEST_KCONFIG_ENABLE is enabled.
Simon Glass29784d62022-08-01 07:57:59 -060023
Heinrich Schuchardt0b8b7d42023-04-03 12:04:39 +020024endif # TEST_KCONFIG