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
|
||||
|
||||
list(APPEND kernel_files
|
||||
banner.c
|
||||
device.c
|
||||
errno.c
|
||||
fatal.c
|
||||
idle.c
|
||||
init.c
|
||||
kheap.c
|
||||
mailbox.c
|
||||
mem_slab.c
|
||||
thread.c
|
||||
version.c
|
||||
)
|
||||
|
||||
if(CONFIG_MULTITHREADING)
|
||||
list(APPEND kernel_files
|
||||
idle.c
|
||||
mailbox.c
|
||||
msg_q.c
|
||||
mutex.c
|
||||
pipes.c
|
||||
queue.c
|
||||
sched.c
|
||||
sem.c
|
||||
stack.c
|
||||
system_work_q.c
|
||||
thread.c
|
||||
version.c
|
||||
condvar.c
|
||||
work.c
|
||||
smp.c
|
||||
banner.c
|
||||
sched.c
|
||||
condvar.c
|
||||
)
|
||||
endif()
|
||||
|
||||
if(CONFIG_XIP)
|
||||
list(APPEND kernel_files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue