1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_library()
4zephyr_library_property(ALLOW_EMPTY TRUE)
5zephyr_library_sources_ifdef(CONFIG_ARCV2_INTERRUPT_UNIT    intc_arcv2_irq_unit.c)
6zephyr_library_sources_ifdef(CONFIG_CAVS_ICTL               intc_cavs.c)
7zephyr_library_sources_ifdef(CONFIG_DW_ICTL                 intc_dw.c)
8zephyr_library_sources_ifdef(CONFIG_DW_ICTL_ACE             intc_dw_ace.c)
9zephyr_library_sources_ifdef(CONFIG_EXTI_STM32              intc_exti_stm32.c)
10zephyr_library_sources_ifdef(CONFIG_GD32_EXTI               intc_gd32_exti.c)
11zephyr_library_sources_ifdef(CONFIG_GIC_V1                  intc_gic.c)
12zephyr_library_sources_ifdef(CONFIG_GIC_V2                  intc_gic.c)
13zephyr_library_sources_ifdef(CONFIG_GIC_V3                  intc_gicv3.c)
14zephyr_library_sources_ifdef(CONFIG_GIC_V3_ITS              intc_gicv3_its.c)
15zephyr_library_sources_ifdef(CONFIG_INTEL_VTD_ICTL          intc_intel_vtd.c)
16zephyr_library_sources_ifdef(CONFIG_IOAPIC                  intc_ioapic.c)
17zephyr_library_sources_ifdef(CONFIG_ITE_IT8XXX2_INTC        intc_ite_it8xxx2.c)
18zephyr_library_sources_ifdef(CONFIG_ITE_IT8XXX2_INTC_V2     intc_ite_it8xxx2_v2.c)
19zephyr_library_sources_ifdef(CONFIG_ITE_IT8XXX2_WUC         wuc_ite_it8xxx2.c)
20zephyr_library_sources_ifdef(CONFIG_LEON_IRQMP              intc_irqmp.c)
21zephyr_library_sources_ifdef(CONFIG_LOAPIC                  intc_loapic.c intc_system_apic.c)
22zephyr_library_sources_ifdef(CONFIG_LOAPIC_SPURIOUS_VECTOR  intc_loapic_spurious.S)
23zephyr_library_sources_ifdef(CONFIG_MCHP_ECIA_XEC           intc_mchp_ecia_xec.c)
24zephyr_library_sources_ifdef(CONFIG_NPCX_MIWU               intc_miwu.c)
25zephyr_library_sources_ifdef(CONFIG_PLIC                    intc_plic.c)
26zephyr_library_sources_ifdef(CONFIG_RV32M1_INTMUX           intc_rv32m1_intmux.c)
27zephyr_library_sources_ifdef(CONFIG_SAM0_EIC                intc_sam0_eic.c)
28zephyr_library_sources_ifdef(CONFIG_SHARED_IRQ              intc_shared_irq.c)
29zephyr_library_sources_ifdef(CONFIG_INTC_ESP32              intc_esp32.c)
30zephyr_library_sources_ifdef(CONFIG_INTC_ESP32C3            intc_esp32c3.c)
31zephyr_library_sources_ifdef(CONFIG_SWERV_PIC               intc_swerv_pic.c)
32zephyr_library_sources_ifdef(CONFIG_VEXRISCV_LITEX_IRQ      intc_vexriscv_litex.c)
33zephyr_library_sources_ifdef(CONFIG_NUCLEI_ECLIC            intc_nuclei_eclic.c)
34zephyr_library_sources_ifdef(CONFIG_NXP_S32_EIRQ            intc_eirq_nxp_s32.c)
35zephyr_library_sources_ifdef(CONFIG_XMC4XXX_INTC            intc_xmc4xxx.c)
36zephyr_library_sources_ifdef(CONFIG_NXP_PINT                intc_nxp_pint.c)
37
38if(CONFIG_INTEL_VTD_ICTL)
39  zephyr_library_include_directories(${ZEPHYR_BASE}/arch/x86/include)
40endif()
41