From a65f19e5a6869a1d2e725b8b7d069c9ce7d648e3 Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Wed, 25 Sep 2024 12:15:19 +0300 Subject: [PATCH] zephyr: CMakeLists.txt: include required sources for imx95 Include required sources for the imx95 platform. Signed-off-by: Laurentiu Mihalcea --- zephyr/CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 36c6126f4..90bdf710d 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -391,6 +391,28 @@ if (CONFIG_SOC_MIMX9352_A55) set(PLATFORM "imx93_a55") endif() +if (CONFIG_SOC_MIMX9596_M7) + + zephyr_library_sources( + ${SOF_PLATFORM_PATH}/imx95/platform.c + ${SOF_PLATFORM_PATH}/imx95/lib/clk.c + lib/dma.c + ) + + zephyr_library_sources( + ${SOF_DRIVERS_PATH}/imx/ipc.c + ) + + zephyr_library_sources( + ${SOF_SRC_PATH}/schedule/zephyr_ll.c + ) + + # SOF-specific linker script additions + zephyr_linker_sources(DATA_SECTIONS ${sof_top_dir}/src/platform/imx95/linker/data-sections.ld) + + set(PLATFORM "imx95") +endif() + # Building for native_posix-based whole-OS host emulator zephyr_library_sources_ifdef(CONFIG_ZEPHYR_POSIX ${SOF_SRC_PATH}/schedule/zephyr_ll.c