| 1 | system_ss.add(files('intc.c')) |
| 2 | system_ss.add(when: 'CONFIG_ARM_GIC', if_true: files( |
| 3 | 'arm_gic.c', |
| 4 | 'arm_gic_common.c', |
| 5 | 'arm_gicv2m.c', |
| 6 | 'arm_gicv3_common.c', |
| 7 | 'arm_gicv3_its_common.c', |
| 8 | )) |
| 9 | system_ss.add(when: 'CONFIG_ARM_GICV3', if_true: files( |
| 10 | 'arm_gicv3.c', |
| 11 | 'arm_gicv3_dist.c', |
| 12 | 'arm_gicv3_its.c', |
| 13 | 'arm_gicv3_redist.c', |
| 14 | )) |
| 15 | system_ss.add(when: 'CONFIG_ARM_GICV5', if_true: files( |
| 16 | 'arm_gicv5_common.c', |
| 17 | 'arm_gicv5.c', |
| 18 | )) |
| 19 | system_ss.add(when: 'CONFIG_ALLWINNER_A10_PIC', if_true: files('allwinner-a10-pic.c')) |
| 20 | system_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_vic.c')) |
| 21 | system_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_intc.c')) |
| 22 | system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_gic.c', 'exynos4210_combiner.c')) |
| 23 | system_ss.add(when: 'CONFIG_GOLDFISH_PIC', if_true: files('goldfish_pic.c')) |
| 24 | system_ss.add(when: 'CONFIG_HEATHROW_PIC', if_true: files('heathrow_pic.c')) |
| 25 | system_ss.add(when: 'CONFIG_I8259', if_true: files('i8259_common.c', 'i8259.c')) |
| 26 | system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_avic.c', 'imx_gpcv2.c')) |
| 27 | system_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic_common.c'), if_false: files('ioapic-stub.c')) |
| 28 | system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_intc.c')) |
| 29 | system_ss.add(when: 'CONFIG_OPENPIC', if_true: files('openpic.c')) |
| 30 | system_ss.add(when: 'CONFIG_PL190', if_true: files('pl190.c')) |
| 31 | system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_ic.c', 'bcm2836_control.c')) |
| 32 | system_ss.add(when: 'CONFIG_REALVIEW', if_true: files('realview_gic.c')) |
| 33 | system_ss.add(when: 'CONFIG_SLAVIO', if_true: files('slavio_intctl.c')) |
| 34 | system_ss.add(when: 'CONFIG_XILINX', if_true: files('xilinx_intc.c')) |
| 35 | system_ss.add(when: 'CONFIG_XLNX_ZYNQMP', if_true: files('xlnx-zynqmp-ipi.c')) |
| 36 | system_ss.add(when: 'CONFIG_XLNX_ZYNQMP_PMU', if_true: files('xlnx-pmu-iomod-intc.c')) |
| 37 | |
| 38 | if config_all_devices.has_key('CONFIG_APIC') or \ |
| 39 | config_all_devices.has_key('CONFIG_I8259') or \ |
| 40 | config_all_devices.has_key('CONFIG_MC146818RTC') |
| 41 | system_ss.add(files('kvm_irqcount.c')) |
| 42 | endif |
| 43 | |
| 44 | specific_ss.add(when: 'CONFIG_APIC', if_true: files('apic.c', 'apic_common.c')) |
| 45 | arm_common_ss.add(when: 'CONFIG_ARM_GIC', if_true: files('arm_gicv3_cpuif_common.c')) |
| 46 | arm_common_ss.add(when: 'CONFIG_ARM_GICV3', if_true: files('arm_gicv3_cpuif.c')) |
| 47 | specific_ss.add(when: 'CONFIG_ARM_GIC_KVM', if_true: files('arm_gic_kvm.c')) |
| 48 | specific_ss.add(when: ['CONFIG_WHPX', 'CONFIG_ARM_GICV3'], if_true: files('arm_gicv3_whpx.c')) |
| 49 | specific_ss.add(when: ['CONFIG_HVF', 'CONFIG_ARM_GICV3'], if_true: files('arm_gicv3_hvf.c')) |
| 50 | stub_ss.add(files('arm_gicv3_hvf_stub.c')) |
| 51 | specific_ss.add(when: 'CONFIG_ARM_GIC_KVM', if_true: files('arm_gicv3_kvm.c', 'arm_gicv3_its_kvm.c')) |
| 52 | arm_common_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m_nvic.c')) |
| 53 | specific_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_irqmp.c')) |
| 54 | specific_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic.c')) |
| 55 | specific_ss.add(when: 'CONFIG_LOONGSON_LIOINTC', if_true: files('loongson_liointc.c')) |
| 56 | specific_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_gic.c')) |
| 57 | specific_ss.add(when: 'CONFIG_OMPIC', if_true: files('ompic.c')) |
| 58 | specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_OPENPIC'], |
| 59 | if_true: files('openpic_kvm.c')) |
| 60 | specific_ss.add(when: 'CONFIG_POWERNV', if_true: files('xics_pnv.c', 'pnv_xive.c', 'pnv_xive2.c')) |
| 61 | specific_ss.add(when: 'CONFIG_PPC_UIC', if_true: files('ppc-uic.c')) |
| 62 | specific_ss.add(when: 'CONFIG_RX_ICU', if_true: files('rx_icu.c')) |
| 63 | specific_ss.add(when: 'CONFIG_S390_FLIC', if_true: files('s390_flic.c')) |
| 64 | specific_ss.add(when: 'CONFIG_S390_FLIC_KVM', if_true: files('s390_flic_kvm.c')) |
| 65 | specific_ss.add(when: 'CONFIG_SH_INTC', if_true: files('sh_intc.c')) |
| 66 | specific_ss.add(when: 'CONFIG_RISCV_ACLINT', if_true: files('riscv_aclint.c')) |
| 67 | specific_ss.add(when: 'CONFIG_RISCV_APLIC', if_true: files('riscv_aplic.c')) |
| 68 | specific_ss.add(when: 'CONFIG_RISCV_IMSIC', if_true: files('riscv_imsic.c')) |
| 69 | specific_ss.add(when: 'CONFIG_SIFIVE_PLIC', if_true: files('sifive_plic.c')) |
| 70 | specific_ss.add(when: 'CONFIG_XICS', if_true: files('xics.c', 'xive2.c')) |
| 71 | specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_XICS'], |
| 72 | if_true: files('xics_kvm.c')) |
| 73 | specific_ss.add(when: 'CONFIG_PSERIES', if_true: files('xics_spapr.c', 'spapr_xive.c')) |
| 74 | specific_ss.add(when: 'CONFIG_XIVE', if_true: files('xive.c')) |
| 75 | specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_XIVE'], |
| 76 | if_true: files('spapr_xive_kvm.c')) |
| 77 | |
| 78 | specific_ss.add(when: 'CONFIG_HEX_L2VIC', if_true: files('hex-l2vic.c')) |
| 79 | specific_ss.add(when: 'CONFIG_M68K_IRQC', if_true: files('m68k_irqc.c')) |
| 80 | specific_ss.add(when: 'CONFIG_LOONGSON_IPI_COMMON', if_true: files('loongson_ipi_common.c')) |
| 81 | specific_ss.add(when: 'CONFIG_LOONGSON_IPI', if_true: files('loongson_ipi.c')) |
| 82 | specific_ss.add(when: 'CONFIG_LOONGARCH_IPI', if_true: files('loongarch_ipi.c')) |
| 83 | specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_LOONGARCH_IPI'], |
| 84 | if_true: files('loongarch_ipi_kvm.c')) |
| 85 | specific_ss.add(when: 'CONFIG_LOONGARCH_PCH_PIC', if_true: files('loongarch_pch_pic.c', 'loongarch_pic_common.c')) |
| 86 | specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_LOONGARCH_PCH_PIC'], |
| 87 | if_true: files('loongarch_pic_kvm.c')) |
| 88 | specific_ss.add(when: 'CONFIG_LOONGARCH_PCH_MSI', if_true: files('loongarch_pch_msi.c')) |
| 89 | specific_ss.add(when: 'CONFIG_LOONGARCH_EXTIOI', if_true: files('loongarch_extioi.c', 'loongarch_extioi_common.c')) |
| 90 | specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_LOONGARCH_EXTIOI'], |
| 91 | if_true: files('loongarch_extioi_kvm.c')) |
| 92 | specific_ss.add(when: 'CONFIG_LOONGARCH_DINTC', if_true: files('loongarch_dintc.c')) |
| 93 | specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_LOONGARCH_DINTC'], |
| 94 | if_true: files('loongarch_dintc_kvm.c')) |