Skip to content

Commit 2f8c198

Browse files
masz-nordicrlubos
authored andcommitted
sysbuild: sdp: enforce namespacing in Kconfigs
They should start with `SDP_GPIO`. Signed-off-by: Marcin Szymczyk <[email protected]>
1 parent 3bd5ce1 commit 2f8c198

File tree

2 files changed

+19
-25
lines changed

2 files changed

+19
-25
lines changed

sysbuild/Kconfig.sdp

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,33 @@ menuconfig SDP
99

1010
if SDP
1111

12-
config EGPIO_FLPR_APPLICATION
13-
bool "SDP GPIO FLPR application"
14-
help
15-
Include FLPR side SDP GPIO application in build.
16-
FLPR SDP GPIO application is an SDP GPIO driver built for an FLPR core that receives commands
17-
from the app core and controls the pin states based on them.
18-
19-
choice EGPIO_BACKEND
20-
prompt "SDP GPIO driver backend type"
21-
depends on EGPIO_FLPR_APPLICATION
22-
default EGPIO_BACKEND_ICMSG
12+
config SDP_GPIO
13+
bool "SDP GPIO application"
14+
15+
if SDP_GPIO
16+
17+
choice SDP_GPIO_BACKEND
18+
prompt "SDP GPIO backend type"
19+
default SDP_GPIO_BACKEND_ICMSG
2320
help
24-
Select the backend type for the SDP GPIO driver and application.
21+
Select the backend type for SDP.
2522

26-
config EGPIO_BACKEND_MBOX
27-
bool "MBOX backend for SDP GPIO"
23+
config SDP_GPIO_BACKEND_MBOX
24+
bool "MBOX backend"
2825
help
29-
Use MBOX backend driver for SDP GPIO.
3026
The MBOX version is more resource-efficient than the ICMSG backend,
3127
but needs to have a shared structure defined as a communication channel.
3228

33-
config EGPIO_BACKEND_ICMSG
34-
bool "ICMSG backend for SDP GPIO"
35-
help
36-
Use ICMSG backend driver for SDP GPIO.
29+
config SDP_GPIO_BACKEND_ICMSG
30+
bool "ICMSG backend"
3731

38-
config EGPIO_BACKEND_ICBMSG
39-
bool "ICBMSG backend for SDP GPIO"
40-
help
41-
Use ICBMSG backend driver for SDP GPIO.
32+
config SDP_GPIO_BACKEND_ICBMSG
33+
bool "ICBMSG backend"
4234

4335
endchoice
4436

37+
endif # SDP_GPIO
38+
4539
endif # SDP
4640

4741
endmenu

sysbuild/sdp.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
44

5-
# If it is enabled, include the SDP GPIO FLPR application in the build
6-
if(SB_CONFIG_EGPIO_FLPR_APPLICATION)
5+
# If it is enabled, include the SDP GPIO application in the build
6+
if(SB_CONFIG_SDP_GPIO)
77
# Extract SoC name from related variables
88
string(REPLACE "/" ";" split_board_qualifiers "${BOARD_QUALIFIERS}")
99
list(GET split_board_qualifiers 1 target_soc)

0 commit comments

Comments
 (0)