summary refs log tree commit diff stats
path: root/hw/openrisc
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-05-07 12:22:31 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-05-10 15:45:15 +0200
commit727bb5b477e66b6cd8a558bf2cdf9a666b914f27 (patch)
tree92b015f15079ad29679d49a2a914232c0e78cdb4 /hw/openrisc
parent6bd92a7c62648eb37053ccc809c3cab7d7629584 (diff)
downloadfocaccia-qemu-727bb5b477e66b6cd8a558bf2cdf9a666b914f27.tar.gz
focaccia-qemu-727bb5b477e66b6cd8a558bf2cdf9a666b914f27.zip
meson: pick libfdt from common_ss when building target-specific files
Avoid having to list dependencies such as libfdt twice, both on common_ss
and specific_ss.  Instead, just take all the dependencies in common_ss
and allow the target-specific libqemu-*.fa library to use them.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/openrisc')
-rw-r--r--hw/openrisc/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/openrisc/meson.build b/hw/openrisc/meson.build
index 2dbc6365bb..82f1f0ef1c 100644
--- a/hw/openrisc/meson.build
+++ b/hw/openrisc/meson.build
@@ -1,7 +1,7 @@
 openrisc_ss = ss.source_set()
 openrisc_ss.add(files('cputimer.c'))
 openrisc_ss.add(files('boot.c'))
-openrisc_ss.add(when: 'CONFIG_OR1K_SIM', if_true: [files('openrisc_sim.c'), fdt])
-openrisc_ss.add(when: 'CONFIG_OR1K_VIRT', if_true: [files('virt.c'), fdt])
+openrisc_ss.add(when: 'CONFIG_OR1K_SIM', if_true: files('openrisc_sim.c'))
+openrisc_ss.add(when: 'CONFIG_OR1K_VIRT', if_true: files('virt.c'))
 
 hw_arch += {'openrisc': openrisc_ss}