From: Philippe Mathieu-Daudé Date: Fri, 27 Sep 2024 21:32:54 +0000 (+0200) Subject: hw/loongarch/fw_cfg: Build in common_ss[] X-Git-Tag: v9.2.0-rc0~45^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e376c2d87cbbad3483adcd5e827bdd144edb7d2c;p=thirdparty%2Fqemu.git hw/loongarch/fw_cfg: Build in common_ss[] Nothing in LoongArch fw_cfg.c requires target specific definitions. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Song Gao Reviewed-by: Thomas Huth Message-Id: <20240927213254.17552-3-philmd@linaro.org> Signed-off-by: Song Gao --- diff --git a/hw/loongarch/meson.build b/hw/loongarch/meson.build index bce7ebac97e..005f017e211 100644 --- a/hw/loongarch/meson.build +++ b/hw/loongarch/meson.build @@ -1,8 +1,8 @@ loongarch_ss = ss.source_set() loongarch_ss.add(files( - 'fw_cfg.c', 'boot.c', )) +common_ss.add(when: 'CONFIG_LOONGARCH_VIRT', if_true: files('fw_cfg.c')) loongarch_ss.add(when: 'CONFIG_LOONGARCH_VIRT', if_true: files('virt.c')) loongarch_ss.add(when: 'CONFIG_ACPI', if_true: files('acpi-build.c'))