1if(CONFIG_XTENSA_HAL)
2
3  zephyr_interface_library_named(XTENSA_HAL)
4
5  target_include_directories(XTENSA_HAL INTERFACE include)
6  target_include_directories(XTENSA_HAL INTERFACE zephyr/soc/${SOC_NAME}/)
7
8  zephyr_library_named(modules_xtensa_hal)
9
10  zephyr_include_directories(
11    include
12    zephyr/soc/${SOC_NAME}/
13    )
14
15  zephyr_library_sources(
16    src/hal/attribute.c
17    src/hal/cache_asm.S
18    src/hal/cache.c
19    src/hal/clock.S
20    src/hal/coherence.c
21    src/hal/debug.c
22    src/hal/debug_hndlr.S
23    src/hal/disass.c
24    src/hal/int_asm.S
25    src/hal/interrupts.c
26    src/hal/memcopy.S
27    src/hal/mem_ecc_parity.S
28    src/hal/misc.c
29    src/hal/miscellaneous.S
30    src/hal/mmu.c
31    src/hal/mp_asm.S
32    src/hal/set_region_translate.c
33    src/hal/state_asm.S
34    src/hal/state.c
35    src/hal/syscache_asm.S
36    src/hal/windowspill_asm.S
37    )
38
39  zephyr_library_link_libraries(XTENSA_HAL)
40  target_link_libraries(XTENSA_HAL INTERFACE zephyr_interface)
41
42endif()
43