Bluetooth: Mesh: Move mesh shell Kconfig options to a separate file

Move mesh shell related options to a new file to avoid cluttering of
the main Bluetooth Mesh Kconfig file when extending it with new options.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
Pavel Vasilyev 2022-10-10 14:24:28 +02:00 committed by Carles Cufí
commit f9c4872ce4
2 changed files with 34 additions and 28 deletions

View file

@ -880,34 +880,7 @@ config BT_MESH_HEALTH_CLI_TIMEOUT
endif # BT_MESH_HEALTH_CLI
config BT_MESH_SHELL
bool "Bluetooth mesh shell"
select SHELL
help
Activate shell module that provides Bluetooth mesh commands to
the console.
if BT_MESH_SHELL
config BT_MESH_SHELL_HEALTH_SRV_INSTANCE
bool "Support for Shell Health Server model instance"
help
This option enables Health Server model instance in the
Bluetooth mesh shell module together with fault controlling
shell commands. To use the model instance, add bt_mesh_shell_health_srv
to the device composition data. Use BT_MESH_SHELL_HEALTH_PUB_DEFINE to
instantiate publication context.
config BT_MESH_SHELL_PROV_CTX_INSTANCE
bool "Support for Shell provisioning context instance"
help
This option enables the provisioning context instance in the
Bluetooth mesh shell module together with several provisioning
commands and target utility features. To use the provisioning
context instance, use bt_mesh_shell_prov in the
initialization of mesh.
endif # BT_MESH_SHELL
rsource "shell/Kconfig"
config BT_MESH_MODEL_EXTENSIONS
bool "Support for Model extensions"

View file

@ -0,0 +1,33 @@
# Bluetooth mesh shell configuration options
# Copyright (c) 2022 Nordic Semiconductor
# SPDX-License-Identifier: Apache-2.0
menuconfig BT_MESH_SHELL
bool "Bluetooth mesh shell"
select SHELL
help
Activate shell module that provides Bluetooth mesh commands to
the console.
if BT_MESH_SHELL
config BT_MESH_SHELL_HEALTH_SRV_INSTANCE
bool "Support for Shell Health Server model instance"
help
This option enables Health Server model instance in the
Bluetooth mesh shell module together with fault controlling
shell commands. To use the model instance, add bt_mesh_shell_health_srv
to the device composition data. Use BT_MESH_SHELL_HEALTH_PUB_DEFINE to
instantiate publication context.
config BT_MESH_SHELL_PROV_CTX_INSTANCE
bool "Support for Shell provisioning context instance"
help
This option enables the provisioning context instance in the
Bluetooth mesh shell module together with several provisioning
commands and target utility features. To use the provisioning
context instance, use bt_mesh_shell_prov in the
initialization of mesh.
endif # BT_MESH_SHELL