diff --git a/xtos/include/sof/lib/mm_heap.h b/xtos/include/sof/lib/mm_heap.h index 7bdab176eb5f..931a66ed0cea 100644 --- a/xtos/include/sof/lib/mm_heap.h +++ b/xtos/include/sof/lib/mm_heap.h @@ -9,6 +9,10 @@ #ifndef __SOF_LIB_MM_HEAP_H__ #define __SOF_LIB_MM_HEAP_H__ +#ifdef __ZEPHYR__ +#error "Please use zephyr/include/sof/lib/mm_heap.h instead" +#endif + #include #include #include diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 80c055e90fb1..1263ba6917f4 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -312,7 +312,6 @@ if (CONFIG_SOC_MIMX8QM6_ADSP OR CONFIG_SOC_MIMX8QX6_ADSP) zephyr_library_sources( ${SOF_PLATFORM_PATH}/imx8/platform.c ${SOF_PLATFORM_PATH}/imx8/lib/clk.c - ${SOF_PLATFORM_PATH}/imx8/lib/memory.c ) # SOF core infrastructure - runs on top of Zephyr @@ -339,7 +338,6 @@ if (CONFIG_SOC_MIMX8ML8_ADSP) zephyr_library_sources( ${SOF_PLATFORM_PATH}/imx8m/platform.c ${SOF_PLATFORM_PATH}/imx8m/lib/clk.c - ${SOF_PLATFORM_PATH}/imx8m/lib/memory.c ${SOF_PLATFORM_PATH}/imx8m/lib/dai.c ${SOF_PLATFORM_PATH}/imx8m/lib/dma.c ) @@ -363,7 +361,6 @@ if (CONFIG_SOC_MIMX8UD7_ADSP) zephyr_library_sources( ${SOF_PLATFORM_PATH}/imx8ulp/platform.c ${SOF_PLATFORM_PATH}/imx8ulp/lib/clk.c - ${SOF_PLATFORM_PATH}/imx8ulp/lib/memory.c ) # SOF core infrastructure - runs on top of Zephyr diff --git a/zephyr/include/sof/lib/mm_heap.h b/zephyr/include/sof/lib/mm_heap.h new file mode 100644 index 000000000000..634b336d9e40 --- /dev/null +++ b/zephyr/include/sof/lib/mm_heap.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * + * Copyright(c) 2024 Intel Corporation. + */ + +#ifndef __SOF_LIB_MM_HEAP_H__ +#define __SOF_LIB_MM_HEAP_H__ + +/* no-op on Zephyr */ + +#endif /* __SOF_LIB_MM_HEAP_H__ */