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