38 lines
996 B
CMake
38 lines
996 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_compile_options_ifdef(CONFIG_COVERAGE_GCOV
|
|
-ftest-coverage
|
|
-fprofile-arcs
|
|
-fno-inline
|
|
)
|
|
|
|
zephyr_library_sources(
|
|
exc_exit.S
|
|
swap.c
|
|
swap_helper.S
|
|
irq_manage.c
|
|
thread.c
|
|
cpu_idle.S
|
|
fault_s.S
|
|
fatal.c
|
|
nmi.c
|
|
nmi_on_reset.S
|
|
prep_c.c
|
|
)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_GEN_SW_ISR_TABLE isr_wrapper.S)
|
|
zephyr_library_sources_ifdef(CONFIG_CPLUSPLUS __aeabi_atexit.c)
|
|
zephyr_library_sources_ifdef(CONFIG_IRQ_OFFLOAD irq_offload.c)
|
|
zephyr_library_sources_ifdef(CONFIG_CPU_CORTEX_M0 irq_relay.S)
|
|
zephyr_library_sources_ifdef(CONFIG_USERSPACE userspace.S)
|
|
|
|
add_subdirectory_ifdef(CONFIG_CPU_CORTEX_M cortex_m)
|
|
add_subdirectory_ifdef(CONFIG_ARM_MPU cortex_m/mpu)
|
|
add_subdirectory_ifdef(CONFIG_CPU_CORTEX_M_HAS_CMSE cortex_m/cmse)
|
|
add_subdirectory_ifdef(CONFIG_ARM_SECURE_FIRMWARE cortex_m/tz)
|
|
add_subdirectory_ifdef(CONFIG_ARM_NONSECURE_FIRMWARE cortex_m/tz)
|
|
|
|
add_subdirectory_ifdef(CONFIG_CPU_CORTEX_R cortex_r)
|