xref: /openbmc/qemu/hw/mips/meson.build (revision 7c032bfbe838c24dcbdc8f9c452553b24f20daad)
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'))
5*7c032bfbSPhilippe Mathieu-Daudémips_ss.add(when: 'CONFIG_MALTA', if_true: files('malta.c'))
6*7c032bfbSPhilippe Mathieu-Daudémips_ss.add(when: 'CONFIG_GT64120', if_true: files('gt64xxx_pci.c'))
72c44220dSMarc-André Lureaumips_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('cps.c'))
82c44220dSMarc-André Lureau
9db6b6f4dSPhilippe Mathieu-Daudéif 'CONFIG_TCG' in config_all
10db6b6f4dSPhilippe Mathieu-Daudémips_ss.add(when: 'CONFIG_JAZZ', if_true: files('jazz.c'))
11db6b6f4dSPhilippe Mathieu-Daudémips_ss.add(when: 'CONFIG_MIPSSIM', if_true: files('mipssim.c'))
12db6b6f4dSPhilippe Mathieu-Daudémips_ss.add(when: 'CONFIG_FULOONG', if_true: files('fuloong2e.c'))
13db6b6f4dSPhilippe Mathieu-Daudémips_ss.add(when: 'CONFIG_MIPS_BOSTON', if_true: [files('boston.c'), fdt])
14db6b6f4dSPhilippe Mathieu-Daudéendif
15db6b6f4dSPhilippe Mathieu-Daudé
162c44220dSMarc-André Lureauhw_arch += {'mips': mips_ss}
17