zephyr: CMakeLists.txt: include required sources for imx95

Include required sources for the imx95 platform.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
This commit is contained in:
Laurentiu Mihalcea 2024-09-25 12:15:19 +03:00 committed by Daniel Baluta
parent 4d374ece70
commit a65f19e5a6
1 changed files with 22 additions and 0 deletions

View File

@ -391,6 +391,28 @@ if (CONFIG_SOC_MIMX9352_A55)
set(PLATFORM "imx93_a55") set(PLATFORM "imx93_a55")
endif() 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 # Building for native_posix-based whole-OS host emulator
zephyr_library_sources_ifdef(CONFIG_ZEPHYR_POSIX zephyr_library_sources_ifdef(CONFIG_ZEPHYR_POSIX
${SOF_SRC_PATH}/schedule/zephyr_ll.c ${SOF_SRC_PATH}/schedule/zephyr_ll.c