summaryrefslogtreecommitdiff
path: root/test/lib/Kconfig
blob: dbb03e4a36fdf894ba22f36ecd3ed7cc7de8600f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# SPDX-License-Identifier: GPL-2.0+
# Copyright 2022 Google LLC

if SANDBOX

config TEST_KCONFIG
	bool "Enable detection of Kconfig macro errors"
	help
	  This is used to test that the IF_ENABLED_INT() macro causes a build error
	  if the value is used when the CONFIG Is not enabled.

config TEST_KCONFIG_ENABLE
	bool "Option to enable"
	help
	  This is the option that controls whether the value is present.

config TEST_KCONFIG_VALUE
	int "Value associated with the option"
	depends on TEST_KCONFIG_ENABLE
	help
	  This is the value whgch is present if TEST_KCONFIG_ENABLE is enabled.

endif # SANDBOX