2019-08-17 17:55:58 +08:00
|
|
|
i386_kvm_ss = ss.source_set()
|
|
|
|
i386_kvm_ss.add(files('clock.c'))
|
|
|
|
i386_kvm_ss.add(when: 'CONFIG_APIC', if_true: files('apic.c'))
|
|
|
|
i386_kvm_ss.add(when: 'CONFIG_I8254', if_true: files('i8254.c'))
|
|
|
|
i386_kvm_ss.add(when: 'CONFIG_I8259', if_true: files('i8259.c'))
|
|
|
|
i386_kvm_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic.c'))
|
2022-12-16 22:02:29 +08:00
|
|
|
i386_kvm_ss.add(when: 'CONFIG_XEN_EMU', if_true: files(
|
|
|
|
'xen_overlay.c',
|
|
|
|
'xen_evtchn.c',
|
2022-12-16 23:50:26 +08:00
|
|
|
'xen_gnttab.c',
|
2022-12-24 01:39:23 +08:00
|
|
|
'xen_xenstore.c',
|
2023-01-19 02:55:47 +08:00
|
|
|
'xenstore_impl.c',
|
2022-12-16 22:02:29 +08:00
|
|
|
))
|
2019-08-17 17:55:58 +08:00
|
|
|
|
|
|
|
i386_ss.add_all(when: 'CONFIG_KVM', if_true: i386_kvm_ss)
|
2018-08-22 00:16:19 +08:00
|
|
|
|
|
|
|
xen_stubs_ss = ss.source_set()
|
|
|
|
xen_stubs_ss.add(when: 'CONFIG_XEN_EMU', if_false: files(
|
|
|
|
'xen-stubs.c',
|
|
|
|
))
|
|
|
|
|
2023-06-13 21:33:46 +08:00
|
|
|
specific_ss.add_all(when: 'CONFIG_SYSTEM_ONLY', if_true: xen_stubs_ss)
|