Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/ipc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -15,7 +16,6 @@ is_zephyr(it_is)
if(it_is) ### Zephyr ###

zephyr_library_sources(
${base_files}
dma-copy.c
)

Expand All @@ -29,10 +29,6 @@ endif()
else() ### Not Zephyr ###


add_local_sources(sof
${base_files}
)

if (CONFIG_TRACE)
add_local_sources(sof
dma-copy.c)
Expand Down
8 changes: 2 additions & 6 deletions src/ipc/ipc3/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
Expand Down
9 changes: 2 additions & 7 deletions src/ipc/ipc4/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
)
Expand All @@ -26,7 +22,6 @@ else() ### Not Zephyr ####


add_local_sources(sof
${common_files}
ams_helpers.c
)

Expand Down