* [PATCH-for-9.0] meson: Allow building binary with no target-specific files in hw/
@ 2023-11-21 20:31 Philippe Mathieu-Daudé
2023-12-13 17:38 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 2+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-11-21 20:31 UTC (permalink / raw)
To: qemu-devel
Cc: Philippe Mathieu-Daudé, Paolo Bonzini, Alex Bennée,
Marc-André Lureau, Thomas Huth, Daniel P. Berrangé,
Mark Cave-Ayland
Allow building a qemu-system-foo binary with target-agnostic
only HW models.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
Although this is for 9.0, I wanted to post it today to celebrate :)
Once reviewed I plan to queue it via my heterogenenous-cpus tree.
---
meson.build | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/meson.build b/meson.build
index ec01f8b138..9ccfb091e7 100644
--- a/meson.build
+++ b/meson.build
@@ -3772,9 +3772,11 @@ foreach target : target_dirs
arch_deps += t.dependencies()
hw_dir = target_name == 'sparc64' ? 'sparc64' : target_base_arch
- hw = hw_arch[hw_dir].apply(config_target, strict: false)
- arch_srcs += hw.sources()
- arch_deps += hw.dependencies()
+ if hw_arch.has_key(hw_dir)
+ hw = hw_arch[hw_dir].apply(config_target, strict: false)
+ arch_srcs += hw.sources()
+ arch_deps += hw.dependencies()
+ endif
arch_srcs += config_devices_h[target]
link_args += ['@block.syms', '@qemu.syms']
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH-for-9.0] meson: Allow building binary with no target-specific files in hw/
2023-11-21 20:31 [PATCH-for-9.0] meson: Allow building binary with no target-specific files in hw/ Philippe Mathieu-Daudé
@ 2023-12-13 17:38 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-12-13 17:38 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Alex Bennée, Marc-André Lureau,
Thomas Huth, Daniel P. Berrangé, Mark Cave-Ayland
Hi Paolo,
No objection if I queue this patch?
On 21/11/23 21:31, Philippe Mathieu-Daudé wrote:
> Allow building a qemu-system-foo binary with target-agnostic
> only HW models.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Although this is for 9.0, I wanted to post it today to celebrate :)
>
> Once reviewed I plan to queue it via my heterogenenous-cpus tree.
> ---
> meson.build | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index ec01f8b138..9ccfb091e7 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -3772,9 +3772,11 @@ foreach target : target_dirs
> arch_deps += t.dependencies()
>
> hw_dir = target_name == 'sparc64' ? 'sparc64' : target_base_arch
> - hw = hw_arch[hw_dir].apply(config_target, strict: false)
> - arch_srcs += hw.sources()
> - arch_deps += hw.dependencies()
> + if hw_arch.has_key(hw_dir)
> + hw = hw_arch[hw_dir].apply(config_target, strict: false)
> + arch_srcs += hw.sources()
> + arch_deps += hw.dependencies()
> + endif
>
> arch_srcs += config_devices_h[target]
> link_args += ['@block.syms', '@qemu.syms']
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-13 17:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-21 20:31 [PATCH-for-9.0] meson: Allow building binary with no target-specific files in hw/ Philippe Mathieu-Daudé
2023-12-13 17:38 ` Philippe Mathieu-Daudé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).