blob: dd0101ad4d832be71a4a82c0b8bc865e1114d675 [file] [log] [blame]
Marc-André Lureau2c442202019-08-17 13:55:58 +04001mips_ss = ss.source_set()
Jiaxun Yang3ebbf862021-01-27 14:54:21 +08002mips_ss.add(files('bootloader.c', 'mips_int.c'))
Huacai Chen313d1e92020-09-22 10:49:25 +08003mips_ss.add(when: 'CONFIG_FW_CFG_MIPS', if_true: files('fw_cfg.c'))
Huacai Chenc76b4092020-04-27 17:33:14 +08004mips_ss.add(when: 'CONFIG_LOONGSON3V', if_true: files('loongson3_bootp.c', 'loongson3_virt.c'))
Marc-André Lureau2c442202019-08-17 13:55:58 +04005mips_ss.add(when: 'CONFIG_MALTA', if_true: files('gt64xxx_pci.c', 'malta.c'))
Marc-André Lureau2c442202019-08-17 13:55:58 +04006mips_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('cps.c'))
Marc-André Lureau2c442202019-08-17 13:55:58 +04007
Philippe Mathieu-Daudédb6b6f42021-04-12 00:11:07 +02008if 'CONFIG_TCG' in config_all
9mips_ss.add(when: 'CONFIG_JAZZ', if_true: files('jazz.c'))
10mips_ss.add(when: 'CONFIG_MIPSSIM', if_true: files('mipssim.c'))
11mips_ss.add(when: 'CONFIG_FULOONG', if_true: files('fuloong2e.c'))
12mips_ss.add(when: 'CONFIG_MIPS_BOSTON', if_true: [files('boston.c'), fdt])
13endif
14
Marc-André Lureau2c442202019-08-17 13:55:58 +040015hw_arch += {'mips': mips_ss}