forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
57 lines (48 loc) · 1.09 KB
/
CMakeLists.txt
File metadata and controls
57 lines (48 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# SPDX-License-Identifier: BSD-3-Clause
set(base_files
schedule.c
)
if(CONFIG_SCHEDULE_DMA_MULTI_CHANNEL AND NOT(CONFIG_DMA_DOMAIN))
list(APPEND base_files dma_multi_chan_domain.c)
endif()
if(CONFIG_SCHEDULE_DMA_SINGLE_CHANNEL AND NOT(CONFIG_DMA_DOMAIN))
list(APPEND base_files dma_single_chan_domain.c)
endif()
is_zephyr(zephyr)
if(zephyr) ### Zephyr ###
zephyr_library_sources(
${base_files}
zephyr_domain.c
)
if (CONFIG_SOC_ACP_6_0)
# Zephyr DMA domain should only be used with zephyr_ll
if (CONFIG_DMA_DOMAIN)
zephyr_library_sources(
zephyr_ll.c
zephyr_dma_domain.c
)
else()
zephyr_library_sources(
ll_schedule.c
)
endif()
else()
zephyr_library_sources(
zephyr_ll.c
)
endif()
if (CONFIG_SOF_USERSPACE_PROXY OR NOT CONFIG_USERSPACE)
zephyr_library_sources_ifdef(CONFIG_ZEPHYR_DP_SCHEDULER
zephyr_dp_schedule.c
zephyr_dp_schedule_thread.c
)
else()
zephyr_library_sources_ifdef(CONFIG_ZEPHYR_DP_SCHEDULER
zephyr_dp_schedule.c
zephyr_dp_schedule_application.c
)
endif()
zephyr_library_sources_ifdef(CONFIG_ZEPHYR_TWB_SCHEDULER
zephyr_twb_schedule.c
)
endif()