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