forked from zephyrproject-rtos/hal_xtensa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
56 lines (47 loc) · 1.68 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
if(CONFIG_XTENSA_HAL)
zephyr_interface_library_named(XTENSA_HAL)
target_include_directories(XTENSA_HAL INTERFACE include)
if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/zephyr/soc/${SOC_NAME})
target_include_directories(XTENSA_HAL INTERFACE
${CMAKE_CURRENT_LIST_DIR}/zephyr/soc/${SOC_NAME}/)
elseif(EXISTS ${CMAKE_CURRENT_LIST_DIR}/zephyr/soc/${SOC_TOOLCHAIN_NAME})
target_include_directories(XTENSA_HAL INTERFACE
${CMAKE_CURRENT_LIST_DIR}/zephyr/soc/${SOC_TOOLCHAIN_NAME}/)
endif()
zephyr_library_named(modules_xtensa_hal)
zephyr_include_directories(
include
)
if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/zephyr/soc/${SOC_NAME})
zephyr_include_directories(XTENSA_HAL INTERFACE
${CMAKE_CURRENT_LIST_DIR}/zephyr/soc/${SOC_NAME}/)
elseif(EXISTS ${CMAKE_CURRENT_LIST_DIR}/zephyr/soc/${SOC_TOOLCHAIN_NAME})
zephyr_include_directories(XTENSA_HAL INTERFACE
${CMAKE_CURRENT_LIST_DIR}/zephyr/soc/${SOC_TOOLCHAIN_NAME}/)
endif()
zephyr_library_sources(
src/hal/attribute.c
src/hal/cache_asm.S
src/hal/cache.c
src/hal/clock.S
src/hal/coherence.c
src/hal/debug.c
src/hal/debug_hndlr.S
src/hal/disass.c
src/hal/int_asm.S
src/hal/interrupts.c
src/hal/memcopy.S
src/hal/mem_ecc_parity.S
src/hal/misc.c
src/hal/miscellaneous.S
src/hal/mmu.c
src/hal/mp_asm.S
src/hal/set_region_translate.c
src/hal/state_asm.S
src/hal/state.c
src/hal/syscache_asm.S
src/hal/windowspill_asm.S
)
zephyr_library_link_libraries(XTENSA_HAL)
target_link_libraries(XTENSA_HAL INTERFACE zephyr_interface)
endif()