mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-15 15:32:51 +00:00
meson: Allow building binary with no target-specific files in hw/
Allow building a qemu-system-foo binary with target-agnostic only HW models. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20231121203129.67999-1-philmd@linaro.org>
This commit is contained in:
parent
05470c3979
commit
bf964322d6
|
@ -3771,9 +3771,11 @@ foreach target : target_dirs
|
||||||
arch_deps += t.dependencies()
|
arch_deps += t.dependencies()
|
||||||
|
|
||||||
hw_dir = target_name == 'sparc64' ? 'sparc64' : target_base_arch
|
hw_dir = target_name == 'sparc64' ? 'sparc64' : target_base_arch
|
||||||
hw = hw_arch[hw_dir].apply(config_target, strict: false)
|
if hw_arch.has_key(hw_dir)
|
||||||
arch_srcs += hw.sources()
|
hw = hw_arch[hw_dir].apply(config_target, strict: false)
|
||||||
arch_deps += hw.dependencies()
|
arch_srcs += hw.sources()
|
||||||
|
arch_deps += hw.dependencies()
|
||||||
|
endif
|
||||||
|
|
||||||
arch_srcs += config_devices_h[target]
|
arch_srcs += config_devices_h[target]
|
||||||
link_args += ['@block.syms', '@qemu.syms']
|
link_args += ['@block.syms', '@qemu.syms']
|
||||||
|
|
Loading…
Reference in a new issue