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:
Krzysztof Chruscinski 2021-04-14 13:40:25 +02:00 committed by Carles Cufí
commit b85250108c

View file

@ -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