Skip to content

Commit 671625c

Browse files
de-nordiccarlescufi
authored andcommitted
mgmt/mcumgr: Add Kconfig option naming notes
The commit adds Kconfig option naming notes to Kconfig files of MCUmgr subsystem. Signed-off-by: Dominik Ermel <[email protected]>
1 parent c7378d0 commit 671625c

File tree

13 files changed

+111
-0
lines changed

13 files changed

+111
-0
lines changed

subsys/mgmt/mcumgr/grp/fs_mgmt/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
# Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

5+
# The Kconfig file is dedicated to File System management group of
6+
# of MCUmgr subsystem and provides Kconfig options to configure
7+
# group commands behaviour and other aspects.
8+
#
9+
# Options defined in this file should be prefixed:
10+
# MCUMGR_GRP_FS_ -- general group options;
11+
#
12+
# When adding Kconfig options, that control the same feature,
13+
# try to group them together by the same stem after prefix.
14+
515
menuconfig MCUMGR_GRP_FS
616
bool "Mcumgr handlers for file management (insecure)"
717
depends on FILE_SYSTEM

subsys/mgmt/mcumgr/grp/img_mgmt/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
# Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

5+
# The Kconfig file is dedicated to Application Image management group of
6+
# of MCUmgr subsystem and provides Kconfig options to configure
7+
# group commands behaviour and other aspects.
8+
#
9+
# Options defined in this file should be prefixed:
10+
# MCUMGR_GRP_IMG_ -- general group options;
11+
#
12+
# When adding Kconfig options, that control the same feature,
13+
# try to group them together by the same stem after prefix.
14+
515
menuconfig MCUMGR_GRP_IMG
616
bool "Mcumgr handlers for image management"
717
select FLASH

subsys/mgmt/mcumgr/grp/os_mgmt/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
# Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

5+
# The Kconfig file is dedicated to OS management group of
6+
# of MCUmgr subsystem and provides Kconfig options to configure
7+
# group commands behaviour and other aspects.
8+
#
9+
# Options defined in this file should be prefixed:
10+
# MCUMGR_GRP_OS_ -- general group options;
11+
#
12+
# When adding Kconfig options, that control the same feature,
13+
# try to group them together by the same stem after prefix.
14+
515
menuconfig MCUMGR_GRP_OS
616
bool "Mcumgr handlers for OS management"
717
select REBOOT

subsys/mgmt/mcumgr/grp/shell_mgmt/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
# Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

5+
# The Kconfig file is dedicated to Shell management group of
6+
# of MCUmgr subsystem and provides Kconfig options to configure
7+
# group commands behaviour and other aspects.
8+
#
9+
# Options defined in this file should be prefixed:
10+
# MCUMGR_GRP_SHELL_ -- general group options;
11+
#
12+
# When adding Kconfig options, that control the same feature,
13+
# try to group them together by the same stem after prefix.
14+
515
menuconfig MCUMGR_GRP_SHELL
616
bool "Mcumgr handlers for shell management"
717
depends on SHELL

subsys/mgmt/mcumgr/grp/stat_mgmt/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
# Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

5+
# The Kconfig file is dedicated to Stat management group of
6+
# of MCUmgr subsystem and provides Kconfig options to configure
7+
# group commands behaviour and other aspects.
8+
#
9+
# Options defined in this file should be prefixed:
10+
# MCUMGR_GRP_STAT_ -- general group options;
11+
#
12+
# When adding Kconfig options, that control the same feature,
13+
# try to group them together by the same stem after prefix.
14+
515
menuconfig MCUMGR_GRP_STAT
616
bool "Mcumgr handlers for statistics management"
717
depends on STATS

subsys/mgmt/mcumgr/mgmt/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
# Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

5+
# The Kconfig is dedicated to mgmt subsystem of MCUmgr. Kconfig options defined
6+
# here affect behaviour of services provided by source code of mcumgr/mgmt/
7+
# directory, like management group registration or overall hooks support.
8+
#
9+
# All Kconfig options defined with this file should begin with prefix:
10+
# MCUMGR_MGMT_
11+
512
config MCUMGR_MGMT_NOTIFICATION_HOOKS
613
bool "MCUmgr notification hook support"
714
help

subsys/mgmt/mcumgr/smp/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
# Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

5+
# The Kconfig file is dedicated to smp subdirectory of MCUmgr
6+
# subsystem and provides Kconfig options to control aspects of
7+
# Simple Management Protocol (SMP) processing source code provided
8+
# under the subdirectory.
9+
#
10+
# Options defined in this file should be prefixed:
11+
# MCUMGR_SMP_ -- for general SMP options;
12+
# MCUMGR_SMP_CBOR -- for CBOR encoding specific options;
13+
514
config MCUMGR_SMP_CBOR_MAX_MAIN_MAP_ENTRIES
615
int "Number of predicted maximum entries to main response map"
716
default 15

subsys/mgmt/mcumgr/transport/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
# Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

5+
# The Kconfig file is dedicated to transport subdirectory of MCUmgr
6+
# subsystem and provides Kconfig options to control aspects of
7+
# transport, in general, that are not otherwise controlled by
8+
# options belonging to transport specifically.
9+
#
10+
# Options defined in this file should be prefixed:
11+
# MCUMGR_TRANSPORT_ -- general transport options;
12+
# MCUMGR_TRANSPORT_WORKQUEUE -- for workqueue configuration;
13+
# MCUMGR_TRANSPORT_NETBUF -- for Net Buf related configuration.
14+
515
config MCUMGR_TRANSPORT_WORKQUEUE_STACK_SIZE
616
int "MCUmgr transport workqueue stack size"
717
default 2048

subsys/mgmt/mcumgr/transport/Kconfig.bluetooth

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
# Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

5+
# The Kconfig file is dedicated to Bluetooth transport of MCUmgr
6+
# subsystem and provides Kconfig options to control aspects of
7+
# the transport.
8+
#
9+
# Options defined in this file should be prefixed:
10+
# MCUMGR_TRANSPORT_BT_
11+
512
menuconfig MCUMGR_TRANSPORT_BT
613
bool "Bluetooth mcumgr SMP transport"
714
select BT

subsys/mgmt/mcumgr/transport/Kconfig.dummy

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
# Copyright Nordic Semiconductor ASA 2022. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

5+
# The Kconfig file is dedicated to Dummy transport of MCUmgr
6+
# subsystem and provides Kconfig options to control aspects of
7+
# the transport.
8+
#
9+
# Options defined in this file should be prefixed:
10+
# MCUMGR_TRANSPORT_DUMMY_
11+
512
menuconfig MCUMGR_TRANSPORT_DUMMY
613
bool "Dummy SMP backend"
714
select BASE64

0 commit comments

Comments
 (0)