kernel: Limit kernel files when CONFIG_MULTITHREADING=n
Avoid fetching files which use scheduler. By explicitly avoiding including RTOS specific files we ensure that it is not fetched accidently. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
1ba23ca92b
commit
b85250108c
1 changed files with 12 additions and 7 deletions
|
@ -4,29 +4,34 @@
|
||||||
# should not be --whole-archive'd
|
# should not be --whole-archive'd
|
||||||
|
|
||||||
list(APPEND kernel_files
|
list(APPEND kernel_files
|
||||||
|
banner.c
|
||||||
device.c
|
device.c
|
||||||
errno.c
|
errno.c
|
||||||
fatal.c
|
fatal.c
|
||||||
idle.c
|
|
||||||
init.c
|
init.c
|
||||||
kheap.c
|
kheap.c
|
||||||
mailbox.c
|
|
||||||
mem_slab.c
|
mem_slab.c
|
||||||
|
thread.c
|
||||||
|
version.c
|
||||||
|
)
|
||||||
|
|
||||||
|
if(CONFIG_MULTITHREADING)
|
||||||
|
list(APPEND kernel_files
|
||||||
|
idle.c
|
||||||
|
mailbox.c
|
||||||
msg_q.c
|
msg_q.c
|
||||||
mutex.c
|
mutex.c
|
||||||
pipes.c
|
pipes.c
|
||||||
queue.c
|
queue.c
|
||||||
sched.c
|
|
||||||
sem.c
|
sem.c
|
||||||
stack.c
|
stack.c
|
||||||
system_work_q.c
|
system_work_q.c
|
||||||
thread.c
|
|
||||||
version.c
|
|
||||||
condvar.c
|
|
||||||
work.c
|
work.c
|
||||||
smp.c
|
smp.c
|
||||||
banner.c
|
sched.c
|
||||||
|
condvar.c
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(CONFIG_XIP)
|
if(CONFIG_XIP)
|
||||||
list(APPEND kernel_files
|
list(APPEND kernel_files
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue