samples: driver: ipm: esp32 sysbuild refactor

Make APP_CPU board name auto generated and remove the related config.
Remove the boards overlay and replace with a socs overlays.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
This commit is contained in:
Marek Matej 2024-11-19 15:33:43 +00:00 committed by Benjamin Cabé
parent c69ecabc7a
commit e1b4320722
5 changed files with 13 additions and 13 deletions

View File

@ -3,9 +3,3 @@
# SPDX-License-Identifier: Apache-2.0
source "share/sysbuild/Kconfig"
config IPM_REMOTE_BOARD
string
default "esp32_devkitc_wrover/esp32/appcpu" if $(BOARD) = "esp32_devkitc_wroom"
default "esp32_devkitc_wroom/esp32/appcpu" if $(BOARD) = "esp32_devkitc_wroom"
default "esp32s3_devkitm/esp32s3/appcpu" if $(BOARD) = "esp32s3_devkitm"

View File

@ -1,3 +0,0 @@
&ipm0 {
status = "okay";
};

View File

@ -1,3 +0,0 @@
&ipm0 {
status = "okay";
};

View File

@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#if defined(CONFIG_IPM) || defined(CONFIG_MBOX)
#include <stdlib.h>
#include <zephyr/device.h>
@ -57,3 +59,4 @@ SHELL_STATIC_SUBCMD_SET_CREATE(sub_amp,
);
SHELL_CMD_REGISTER(amp, &sub_amp, "AMP debug commands.", NULL);
#endif

View File

@ -2,11 +2,20 @@
#
# Copyright 2024 Espressif
# Prepare the full board name to be used for the remote target
string(REPLACE "procpu" "appcpu" REMOTE_CPU "${BOARD_QUALIFIERS}")
string(CONFIGURE "${BOARD}${REMOTE_CPU}" IPM_REMOTE_BOARD)
if(${REMOTE_CPU} STREQUAL ${BOARD_QUALIFIERS})
# Make sure the remote build is using different target than host CPU
message(FATAL_ERROR "BOARD_QUALIFIERS name error. Please check the target board name string.")
endif()
# Add external project
ExternalZephyrProject_Add(
APPLICATION ipm_esp32_remote
SOURCE_DIR ${APP_DIR}/remote
BOARD ${SB_CONFIG_IPM_REMOTE_BOARD}
BOARD ${IPM_REMOTE_BOARD}
)
# Add dependencies so that the remote sample will be built first