2018-03-28 18:00:20 +08:00
|
|
|
zephyr_library()
|
|
|
|
|
2018-05-02 13:09:31 +08:00
|
|
|
if (CMAKE_LANG_COMPILER_ID STREQUAL "Clang")
|
2017-10-27 21:43:34 +08:00
|
|
|
# We rely on GAS for assembling, so don't use the integrated assembler
|
|
|
|
zephyr_compile_options_ifndef(CONFIG_X86_IAMCU $<$<COMPILE_LANGUAGE:ASM>:-no-integrated-as>)
|
2018-05-02 13:09:31 +08:00
|
|
|
elseif(CMAKE_LANG_COMPILER_ID STREQUAL "GNU")
|
|
|
|
zephyr_compile_options($<$<COMPILE_LANGUAGE:ASM>:-Wa,--divide>)
|
2017-10-27 21:43:34 +08:00
|
|
|
endif()
|
|
|
|
|
2018-03-28 18:00:20 +08:00
|
|
|
zephyr_library_sources(
|
2017-10-27 21:43:34 +08:00
|
|
|
cache.c
|
|
|
|
cache_s.S
|
|
|
|
cpuhalt.c
|
|
|
|
crt0.S
|
|
|
|
excstub.S
|
|
|
|
intstub.S
|
|
|
|
irq_manage.c
|
|
|
|
swap.S
|
|
|
|
sys_fatal_error_handler.c
|
|
|
|
thread.c
|
|
|
|
)
|
|
|
|
|
2018-03-28 18:00:20 +08:00
|
|
|
zephyr_library_sources_if_kconfig( irq_offload.c)
|
|
|
|
zephyr_library_sources_if_kconfig( x86_mmu.c)
|
|
|
|
zephyr_library_sources_if_kconfig( reboot_rst_cnt.c)
|
2018-05-22 08:47:47 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_DISABLE_SSBD spec_ctrl.c)
|
2018-03-28 18:00:20 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_FP_SHARING float.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_X86_USERSPACE userspace.S)
|
2017-10-27 21:43:34 +08:00
|
|
|
|
|
|
|
# Last since we declare default exception handlers here
|
2018-03-28 18:00:20 +08:00
|
|
|
zephyr_library_sources(fatal.c)
|