hw/loongarch/fw_cfg: Build in common_ss[]
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 27 Sep 2024 21:32:54 +0000 (23:32 +0200)
committerSong Gao <gaosong@loongson.cn>
Wed, 16 Oct 2024 08:06:07 +0000 (16:06 +0800)
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>
hw/loongarch/meson.build

index bce7ebac97e4c5c611b9354a95cc1cea9e0e0f7d..005f017e211db2338662b9074dd263fa032f0fc2 100644 (file)
@@ -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'))