Skip to contentSkip to conversation

hw/mips: Build fw_cfg.c once

PATCH In review Philippe Mathieu-Daudé 2 participants 2 messages Sep 30, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/mips: Build fw_cfg.c once

Nothing in fw_cfg.c requires target-specific knowledge, build it once for the 4 MIPS variants.

---
 hw/mips/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/mips/meson.build +1 -1
index ca37c42d90..fcbee53bb3 100644
@@ -1,6 +1,6 @@
 mips_ss = ss.source_set()
 mips_ss.add(files('bootloader.c', 'mips_int.c'))
-mips_ss.add(when: 'CONFIG_FW_CFG_MIPS', if_true: files('fw_cfg.c'))
+common_ss.add(when: 'CONFIG_FW_CFG_MIPS', if_true: files('fw_cfg.c'))
 mips_ss.add(when: 'CONFIG_LOONGSON3V', if_true: files('loongson3_bootp.c', 'loongson3_virt.c'))
 mips_ss.add(when: 'CONFIG_MALTA', if_true: files('malta.c'))
 mips_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('cps.c'))
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Philippe Mathieu-Daudé

Nothing in fw_cfg.c requires target-specific knowledge, build it once for the 4 MIPS variants.

---
  hw/mips/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/mips/meson.build +0 -0
index ca37c42d90..fcbee53bb3 100644

hw/mips/meson.build line 6

Quoted 7 lines
hw/mips/meson.build +1 -1
@@ -1,6 +1,6 @@
  mips_ss = ss.source_set()
  mips_ss.add(files('bootloader.c', 'mips_int.c'))
-mips_ss.add(when: 'CONFIG_FW_CFG_MIPS', if_true: files('fw_cfg.c'))
+common_ss.add(when: 'CONFIG_FW_CFG_MIPS', if_true: files('fw_cfg.c'))
  mips_ss.add(when: 'CONFIG_LOONGSON3V', if_true: files('loongson3_bootp.c', 'loongson3_virt.c'))
  mips_ss.add(when: 'CONFIG_MALTA', if_true: files('malta.c'))
  mips_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('cps.c'))