2022-08-01 13:57:59 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
# Copyright 2022 Google LLC
|
|
|
|
|
|
|
|
config TEST_KCONFIG
|
|
|
|
bool "Enable detection of Kconfig macro errors"
|
2023-04-03 10:04:39 +00:00
|
|
|
depends on SANDBOX
|
2022-08-01 13:57:59 +00:00
|
|
|
help
|
|
|
|
This is used to test that the IF_ENABLED_INT() macro causes a build error
|
2023-04-03 10:04:39 +00:00
|
|
|
if the value is used when the CONFIG is not enabled.
|
|
|
|
|
|
|
|
if TEST_KCONFIG
|
2022-08-01 13:57:59 +00:00
|
|
|
|
|
|
|
config TEST_KCONFIG_ENABLE
|
2023-04-03 10:04:39 +00:00
|
|
|
bool "Provide a value for the Kconfig test"
|
2022-08-01 13:57:59 +00:00
|
|
|
help
|
|
|
|
This is the option that controls whether the value is present.
|
|
|
|
|
|
|
|
config TEST_KCONFIG_VALUE
|
2023-04-03 10:04:39 +00:00
|
|
|
int "Value used in Kconfig test"
|
2022-08-01 13:57:59 +00:00
|
|
|
depends on TEST_KCONFIG_ENABLE
|
|
|
|
help
|
2023-04-03 10:04:39 +00:00
|
|
|
This is the value which is present if TEST_KCONFIG_ENABLE is enabled.
|
2022-08-01 13:57:59 +00:00
|
|
|
|
2023-04-03 10:04:39 +00:00
|
|
|
endif # TEST_KCONFIG
|