2019-11-11 00:17:19 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
zephyr_library()
|
|
|
|
|
|
|
|
zephyr_library_sources(
|
2021-02-05 22:53:55 +08:00
|
|
|
cpu_idle.S
|
2019-11-11 00:17:19 +08:00
|
|
|
fatal.c
|
2020-02-11 17:08:28 +08:00
|
|
|
irq_init.c
|
2019-11-11 00:17:19 +08:00
|
|
|
irq_manage.c
|
|
|
|
prep_c.c
|
|
|
|
reset.S
|
2021-02-12 21:44:18 +08:00
|
|
|
reset.c
|
2020-08-04 18:52:16 +08:00
|
|
|
switch.S
|
2019-11-11 00:17:19 +08:00
|
|
|
thread.c
|
|
|
|
vector_table.S
|
|
|
|
)
|
|
|
|
|
2021-04-08 11:31:44 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_FPU_SHARING fpu.c fpu.S)
|
2021-04-01 00:29:52 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ARM_MMU mmu.c mmu.S)
|
2021-07-15 16:34:02 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ARM_MPU cortex_r/arm_mpu.c)
|
2020-11-25 21:44:21 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_USERSPACE userspace.S)
|
2019-11-11 00:17:19 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_GEN_SW_ISR_TABLE isr_wrapper.S)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_IRQ_OFFLOAD irq_offload.c)
|
2021-03-25 18:56:15 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_THREAD_LOCAL_STORAGE tls.c)
|
2021-02-03 18:14:39 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_HAS_ARM_SMCCC smccc-call.S)
|
2020-11-20 04:42:40 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_AARCH64_IMAGE_HEADER header.S)
|
2020-11-09 15:43:13 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_CACHE_MANAGEMENT cache.c)
|
2020-11-09 15:58:15 +08:00
|
|
|
if ((CONFIG_MP_NUM_CPUS GREATER 1) OR (CONFIG_SMP))
|
|
|
|
zephyr_library_sources(smp.c)
|
|
|
|
endif ()
|
2020-12-04 17:54:23 +08:00
|
|
|
|
|
|
|
zephyr_cc_option_ifdef(CONFIG_USERSPACE -mno-outline-atomics)
|
2021-07-02 15:26:29 +08:00
|
|
|
|
|
|
|
add_subdirectory_ifdef(CONFIG_SOC_XENVM xen)
|