2019-08-17 12:55:58 +03:00
|
|
|
riscv_ss = ss.source_set()
|
2024-05-07 13:22:31 +03:00
|
|
|
riscv_ss.add(files('boot.c'))
|
2021-05-13 09:07:56 +03:00
|
|
|
riscv_ss.add(when: 'CONFIG_RISCV_NUMA', if_true: files('numa.c'))
|
2020-09-03 13:40:21 +03:00
|
|
|
riscv_ss.add(files('riscv_hart.c'))
|
2019-08-17 12:55:58 +03:00
|
|
|
riscv_ss.add(when: 'CONFIG_OPENTITAN', if_true: files('opentitan.c'))
|
|
|
|
riscv_ss.add(when: 'CONFIG_RISCV_VIRT', if_true: files('virt.c'))
|
2021-04-01 21:14:55 +03:00
|
|
|
riscv_ss.add(when: 'CONFIG_SHAKTI_C', if_true: files('shakti_c.c'))
|
2019-08-17 12:55:58 +03:00
|
|
|
riscv_ss.add(when: 'CONFIG_SIFIVE_E', if_true: files('sifive_e.c'))
|
|
|
|
riscv_ss.add(when: 'CONFIG_SIFIVE_U', if_true: files('sifive_u.c'))
|
|
|
|
riscv_ss.add(when: 'CONFIG_SPIKE', if_true: files('spike.c'))
|
2020-09-01 04:38:59 +03:00
|
|
|
riscv_ss.add(when: 'CONFIG_MICROCHIP_PFSOC', if_true: files('microchip_pfsoc.c'))
|
2023-03-02 12:12:08 +03:00
|
|
|
riscv_ss.add(when: 'CONFIG_ACPI', if_true: files('virt-acpi-build.c'))
|
2024-10-16 23:40:29 +03:00
|
|
|
riscv_ss.add(when: 'CONFIG_RISCV_IOMMU', if_true: files('riscv-iommu.c', 'riscv-iommu-pci.c'))
|
2019-08-17 12:55:58 +03:00
|
|
|
|
|
|
|
hw_arch += {'riscv': riscv_ss}
|