xref: /openbmc/qemu/hw/mips/meson.build (revision db6b6f4dbfb395c4fdc4f6e601315151dbbe0190)
12c44220dSMarc-André Lureaumips_ss = ss.source_set()
23ebbf861SJiaxun Yangmips_ss.add(files('bootloader.c', 'mips_int.c'))
3313d1e91SHuacai Chenmips_ss.add(when: 'CONFIG_FW_CFG_MIPS', if_true: files('fw_cfg.c'))
4c76b409fSHuacai Chenmips_ss.add(when: 'CONFIG_LOONGSON3V', if_true: files('loongson3_bootp.c', 'loongson3_virt.c'))
52c44220dSMarc-André Lureaumips_ss.add(when: 'CONFIG_MALTA', if_true: files('gt64xxx_pci.c', 'malta.c'))
62c44220dSMarc-André Lureaumips_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('cps.c'))
72c44220dSMarc-André Lureau
8*db6b6f4dSPhilippe Mathieu-Daudéif 'CONFIG_TCG' in config_all
9*db6b6f4dSPhilippe Mathieu-Daudémips_ss.add(when: 'CONFIG_JAZZ', if_true: files('jazz.c'))
10*db6b6f4dSPhilippe Mathieu-Daudémips_ss.add(when: 'CONFIG_MIPSSIM', if_true: files('mipssim.c'))
11*db6b6f4dSPhilippe Mathieu-Daudémips_ss.add(when: 'CONFIG_FULOONG', if_true: files('fuloong2e.c'))
12*db6b6f4dSPhilippe Mathieu-Daudémips_ss.add(when: 'CONFIG_MIPS_BOSTON', if_true: [files('boston.c'), fdt])
13*db6b6f4dSPhilippe Mathieu-Daudéendif
14*db6b6f4dSPhilippe Mathieu-Daudé
152c44220dSMarc-André Lureauhw_arch += {'mips': mips_ss}
16