Skip to content

Commit

Permalink
sysbuild: sdp: enforce namespacing in Kconfigs
Browse files Browse the repository at this point in the history
They should start with `SDP_GPIO`.

Signed-off-by: Marcin Szymczyk <[email protected]>
  • Loading branch information
masz-nordic authored and rlubos committed Nov 13, 2024
1 parent 3bd5ce1 commit 2f8c198
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 25 deletions.
40 changes: 17 additions & 23 deletions sysbuild/Kconfig.sdp
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,33 @@ menuconfig SDP

if SDP

config EGPIO_FLPR_APPLICATION
bool "SDP GPIO FLPR application"
help
Include FLPR side SDP GPIO application in build.
FLPR SDP GPIO application is an SDP GPIO driver built for an FLPR core that receives commands
from the app core and controls the pin states based on them.

choice EGPIO_BACKEND
prompt "SDP GPIO driver backend type"
depends on EGPIO_FLPR_APPLICATION
default EGPIO_BACKEND_ICMSG
config SDP_GPIO
bool "SDP GPIO application"

if SDP_GPIO

choice SDP_GPIO_BACKEND
prompt "SDP GPIO backend type"
default SDP_GPIO_BACKEND_ICMSG
help
Select the backend type for the SDP GPIO driver and application.
Select the backend type for SDP.

config EGPIO_BACKEND_MBOX
bool "MBOX backend for SDP GPIO"
config SDP_GPIO_BACKEND_MBOX
bool "MBOX backend"
help
Use MBOX backend driver for SDP GPIO.
The MBOX version is more resource-efficient than the ICMSG backend,
but needs to have a shared structure defined as a communication channel.

config EGPIO_BACKEND_ICMSG
bool "ICMSG backend for SDP GPIO"
help
Use ICMSG backend driver for SDP GPIO.
config SDP_GPIO_BACKEND_ICMSG
bool "ICMSG backend"

config EGPIO_BACKEND_ICBMSG
bool "ICBMSG backend for SDP GPIO"
help
Use ICBMSG backend driver for SDP GPIO.
config SDP_GPIO_BACKEND_ICBMSG
bool "ICBMSG backend"

endchoice

endif # SDP_GPIO

endif # SDP

endmenu
4 changes: 2 additions & 2 deletions sysbuild/sdp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

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

0 comments on commit 2f8c198

Please sign in to comment.