Skip to content

Commit c6e2fd6

Browse files
nordicjmmbolivar-nordic
authored andcommitted
[nrf fromtree] mgmt: mcumgr: Change transport select to depends on
This changes some of the MCUmgr transport CMake select statements to depends on, this is to align with other in-tree symbols that do not pull in whole subsystems and instead only allow selection if those subsystems are already enabled. [nrf] Adapted to use pre-MCUmgr revamp Kconfig names. Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit 571273b) (cherry picked from commit 4279d1f)
1 parent b01e887 commit c6e2fd6

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

subsys/mgmt/mcumgr/transport/Kconfig.bluetooth

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
menuconfig MCUMGR_SMP_BT
66
bool "Bluetooth mcumgr SMP transport"
7-
select BT
8-
select BT_PERIPHERAL
7+
depends on BT_PERIPHERAL
98
select BT_GATT_DYNAMIC_DB
109
help
1110
Enables handling of SMP commands received over Bluetooth.

subsys/mgmt/mcumgr/transport/Kconfig.shell

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
menuconfig MCUMGR_SMP_SHELL
66
bool "Shell mcumgr SMP transport"
7-
select SHELL
8-
select SHELL_BACKEND_SERIAL
7+
depends on SHELL
98
select BASE64
109
help
1110
Enables handling of SMP commands received over shell. This allows

subsys/mgmt/mcumgr/transport/Kconfig.uart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
menuconfig MCUMGR_SMP_UART
66
bool "UART mcumgr SMP transport"
7+
depends on CONSOLE
78
select UART_MCUMGR
89
select BASE64
910
help
@@ -12,7 +13,9 @@ menuconfig MCUMGR_SMP_UART
1213
commands to be received over UART without requiring an additional
1314
thread.
1415

15-
if UART_ASYNC_API && MCUMGR_SMP_UART
16+
if MCUMGR_SMP_UART
17+
18+
if UART_ASYNC_API
1619

1720
menuconfig MCUMGR_SMP_UART_ASYNC
1821
bool "Use async UART API when available"
@@ -44,8 +47,9 @@ endif # UART_ASYNC_API
4447
config MCUMGR_SMP_UART_MTU
4548
int "UART SMP MTU"
4649
default 256
47-
depends on MCUMGR_SMP_UART
4850
help
4951
Maximum size of SMP frames sent and received over UART, in bytes.
5052
This value must satisfy the following relation:
5153
MCUMGR_SMP_UART_MTU <= MCUMGR_BUF_SIZE + 2
54+
55+
endif # MCUMGR_SMP_UART

subsys/mgmt/mcumgr/transport/Kconfig.udp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
menuconfig MCUMGR_SMP_UDP
66
bool "UDP mcumgr SMP transport"
7-
select NETWORKING
8-
select NET_UDP
7+
depends on NET_UDP
98
select NET_SOCKETS
109
select NET_SOCKETS_POSIX_NAMES if !POSIX_API
1110
help

0 commit comments

Comments
 (0)