diff --git a/src/ipc/CMakeLists.txt b/src/ipc/CMakeLists.txt index 1859baa7a3ee..8fc26acb7e3f 100644 --- a/src/ipc/CMakeLists.txt +++ b/src/ipc/CMakeLists.txt @@ -6,7 +6,8 @@ elseif (CONFIG_IPC_MAJOR_4) add_subdirectory(ipc4) endif() -set(base_files +# Common to Zephyr and XTOS +add_local_sources(sof ipc-common.c ipc-helper.c ) @@ -15,7 +16,6 @@ is_zephyr(it_is) if(it_is) ### Zephyr ### zephyr_library_sources( - ${base_files} dma-copy.c ) @@ -29,10 +29,6 @@ endif() else() ### Not Zephyr ### -add_local_sources(sof - ${base_files} -) - if (CONFIG_TRACE) add_local_sources(sof dma-copy.c) diff --git a/src/ipc/ipc3/CMakeLists.txt b/src/ipc/ipc3/CMakeLists.txt index eb791d1836a6..db1e6825085c 100644 --- a/src/ipc/ipc3/CMakeLists.txt +++ b/src/ipc/ipc3/CMakeLists.txt @@ -1,6 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause -set(common_files +# Files common to Zephyr and XTOS +add_local_sources(sof handler.c helper.c dai.c @@ -10,16 +11,11 @@ is_zephyr(it_is) if(it_is) ### Zephyr ### zephyr_library_sources( - ${common_files} host-page-table.c ) else() ### Not Zephyr ### -add_local_sources(sof - ${common_files} -) - if (CONFIG_HOST_PTABLE) add_local_sources(sof host-page-table.c) diff --git a/src/ipc/ipc4/CMakeLists.txt b/src/ipc/ipc4/CMakeLists.txt index c977d498619a..5a4d271e7f13 100644 --- a/src/ipc/ipc4/CMakeLists.txt +++ b/src/ipc/ipc4/CMakeLists.txt @@ -1,6 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause -set(common_files +# Files common to Zephyr and XTOS +add_local_sources(sof dai.c handler.c helper.c @@ -12,11 +13,6 @@ set(common_files is_zephyr(it_is) if(it_is) ### Zephyr ### - -zephyr_library_sources( - ${common_files} -) - zephyr_library_sources_ifdef(CONFIG_AMS ams_helpers.c ) @@ -26,7 +22,6 @@ else() ### Not Zephyr #### add_local_sources(sof - ${common_files} ams_helpers.c )