]> git.ipfire.org Git - thirdparty/qemu.git/blame - hw/intc/meson.build
hw/intc/loongarch_ipi: Rename as loongson_ipi
[thirdparty/qemu.git] / hw / intc / meson.build
CommitLineData
de6cd759
PMD
1system_ss.add(files('intc.c'))
2system_ss.add(when: 'CONFIG_ARM_GIC', if_true: files(
bff065ad
MAL
3 'arm_gic.c',
4 'arm_gic_common.c',
5 'arm_gicv2m.c',
bff065ad 6 'arm_gicv3_common.c',
bff065ad 7 'arm_gicv3_its_common.c',
a8a55467 8))
de6cd759 9system_ss.add(when: 'CONFIG_ARM_GICV3_TCG', if_true: files(
a8a55467
PMD
10 'arm_gicv3.c',
11 'arm_gicv3_dist.c',
18f6290a 12 'arm_gicv3_its.c',
a8a55467 13 'arm_gicv3_redist.c',
bff065ad 14))
de6cd759
PMD
15system_ss.add(when: 'CONFIG_ALLWINNER_A10_PIC', if_true: files('allwinner-a10-pic.c'))
16system_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_vic.c'))
17system_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_pic.c'))
18system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_gic.c', 'exynos4210_combiner.c'))
19system_ss.add(when: 'CONFIG_GOLDFISH_PIC', if_true: files('goldfish_pic.c'))
20system_ss.add(when: 'CONFIG_HEATHROW_PIC', if_true: files('heathrow_pic.c'))
21system_ss.add(when: 'CONFIG_I8259', if_true: files('i8259_common.c', 'i8259.c'))
22system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_avic.c', 'imx_gpcv2.c'))
23system_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic_common.c'))
24system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_intc.c'))
25system_ss.add(when: 'CONFIG_OPENPIC', if_true: files('openpic.c'))
26system_ss.add(when: 'CONFIG_PL190', if_true: files('pl190.c'))
27system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_ic.c', 'bcm2836_control.c'))
28system_ss.add(when: 'CONFIG_REALVIEW', if_true: files('realview_gic.c'))
29system_ss.add(when: 'CONFIG_SLAVIO', if_true: files('slavio_intctl.c'))
30system_ss.add(when: 'CONFIG_XILINX', if_true: files('xilinx_intc.c'))
31system_ss.add(when: 'CONFIG_XLNX_ZYNQMP', if_true: files('xlnx-zynqmp-ipi.c'))
32system_ss.add(when: 'CONFIG_XLNX_ZYNQMP_PMU', if_true: files('xlnx-pmu-iomod-intc.c'))
bff065ad 33
2b85e0cd
TH
34if config_all_devices.has_key('CONFIG_APIC') or \
35 config_all_devices.has_key('CONFIG_I8259') or \
36 config_all_devices.has_key('CONFIG_MC146818RTC')
de6cd759 37 system_ss.add(files('kvm_irqcount.c'))
2b85e0cd
TH
38endif
39
bff065ad 40specific_ss.add(when: 'CONFIG_APIC', if_true: files('apic.c', 'apic_common.c'))
a1d742d8 41specific_ss.add(when: 'CONFIG_ARM_GIC', if_true: files('arm_gicv3_cpuif_common.c'))
16d91e06 42specific_ss.add(when: 'CONFIG_ARM_GICV3_TCG', if_true: files('arm_gicv3_cpuif.c'))
bff065ad
MAL
43specific_ss.add(when: 'CONFIG_ARM_GIC_KVM', if_true: files('arm_gic_kvm.c'))
44specific_ss.add(when: ['CONFIG_ARM_GIC_KVM', 'TARGET_AARCH64'], if_true: files('arm_gicv3_kvm.c', 'arm_gicv3_its_kvm.c'))
45specific_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m_nvic.c'))
bff065ad 46specific_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_irqmp.c'))
bff065ad
MAL
47specific_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic.c'))
48specific_ss.add(when: 'CONFIG_LOONGSON_LIOINTC', if_true: files('loongson_liointc.c'))
49specific_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_gic.c'))
bff065ad 50specific_ss.add(when: 'CONFIG_OMPIC', if_true: files('ompic.c'))
b040e591
GK
51specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_OPENPIC'],
52 if_true: files('openpic_kvm.c'))
da71b7e3 53specific_ss.add(when: 'CONFIG_POWERNV', if_true: files('xics_pnv.c', 'pnv_xive.c', 'pnv_xive2.c'))
34d0831f 54specific_ss.add(when: 'CONFIG_PPC_UIC', if_true: files('ppc-uic.c'))
bff065ad
MAL
55specific_ss.add(when: 'CONFIG_RX_ICU', if_true: files('rx_icu.c'))
56specific_ss.add(when: 'CONFIG_S390_FLIC', if_true: files('s390_flic.c'))
57specific_ss.add(when: 'CONFIG_S390_FLIC_KVM', if_true: files('s390_flic_kvm.c'))
5d07a698 58specific_ss.add(when: 'CONFIG_SH_INTC', if_true: files('sh_intc.c'))
cc63a182 59specific_ss.add(when: 'CONFIG_RISCV_ACLINT', if_true: files('riscv_aclint.c'))
e8f79343 60specific_ss.add(when: 'CONFIG_RISCV_APLIC', if_true: files('riscv_aplic.c'))
9746e583 61specific_ss.add(when: 'CONFIG_RISCV_IMSIC', if_true: files('riscv_imsic.c'))
84fcf3c1 62specific_ss.add(when: 'CONFIG_SIFIVE_PLIC', if_true: files('sifive_plic.c'))
f8a233de 63specific_ss.add(when: 'CONFIG_XICS', if_true: files('xics.c', 'xive2.c'))
b040e591
GK
64specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_XICS'],
65 if_true: files('xics_kvm.c'))
27d5caec 66specific_ss.add(when: 'CONFIG_PSERIES', if_true: files('xics_spapr.c', 'spapr_xive.c'))
bff065ad 67specific_ss.add(when: 'CONFIG_XIVE', if_true: files('xive.c'))
b040e591
GK
68specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_XIVE'],
69 if_true: files('spapr_xive_kvm.c'))
2fde99ee 70specific_ss.add(when: 'CONFIG_M68K_IRQC', if_true: files('m68k_irqc.c'))
b4a12dfc 71specific_ss.add(when: 'CONFIG_LOONGSON_IPI', if_true: files('loongson_ipi.c'))
0f4fcf18 72specific_ss.add(when: 'CONFIG_LOONGARCH_PCH_PIC', if_true: files('loongarch_pch_pic.c'))
249ad85a 73specific_ss.add(when: 'CONFIG_LOONGARCH_PCH_MSI', if_true: files('loongarch_pch_msi.c'))
cbff2db1 74specific_ss.add(when: 'CONFIG_LOONGARCH_EXTIOI', if_true: files('loongarch_extioi.c'))