summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-09-27 23:32:54 +0200
committerSong Gao <gaosong@loongson.cn>2024-10-16 16:06:07 +0800
commite376c2d87cbbad3483adcd5e827bdd144edb7d2c (patch)
tree8016519237f33de1c60d0c9e938283610410b857
parent25d92888b201d34de6fd12ed8df85eb74ddcde90 (diff)
downloadfocaccia-qemu-e376c2d87cbbad3483adcd5e827bdd144edb7d2c.tar.gz
focaccia-qemu-e376c2d87cbbad3483adcd5e827bdd144edb7d2c.zip
hw/loongarch/fw_cfg: Build in common_ss[]
Nothing in LoongArch fw_cfg.c requires target specific definitions.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20240927213254.17552-3-philmd@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
-rw-r--r--hw/loongarch/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/loongarch/meson.build b/hw/loongarch/meson.build
index bce7ebac97..005f017e21 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'))