Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sysbuild: sdp: Use Kconfig to specify FLPR image path #20063

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions sysbuild/Kconfig.sdp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ endchoice

endif # SDP_GPIO

config SDP_IMAGE_PATH
string
default "${ZEPHYR_NRF_MODULE_DIR}/applications/sdp/gpio" if SDP_GPIO
default "${ZEPHYR_NRF_MODULE_DIR}/applications/sdp/mspi" if SDP_MSPI
help
Source directory of SDP image.

endif # SDP

endmenu
12 changes: 1 addition & 11 deletions sysbuild/sdp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,12 @@ if(SB_CONFIG_SDP)
set(board_target_flpr "${BOARD}/${target_soc}/cpuflpr")
set(target_soc)

# Select the SDP application
if(SB_CONFIG_SDP_GPIO)
set(sdp_app_dir "${ZEPHYR_NRF_MODULE_DIR}/applications/sdp/gpio")
elseif(SB_CONFIG_SDP_MSPI)
set(sdp_app_dir "${ZEPHYR_NRF_MODULE_DIR}/applications/sdp/mspi")
else()
message(FATAL_ERROR "Unknown SDP application type")
endif()

# Include the SDP application in the build
ExternalZephyrProject_Add(
APPLICATION sdp
SOURCE_DIR ${sdp_app_dir}
SOURCE_DIR ${SB_CONFIG_SDP_IMAGE_PATH}
BOARD ${board_target_flpr}
BOARD_REVISION ${BOARD_REVISION}
)
set(sdp_app_dir)
set(board_target_flpr)
endif()