From 7700b0106f981d16d3004494a1104257620512bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Wed, 18 Feb 2026 09:45:30 +0100 Subject: [PATCH] target/avr: Build 'gdbstub.c' once for system single binary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is a single qemu-system-avr binary, but by moving 'gdbstub.c' in the target_common_system_arch[] source set the resulting object can be linked into a single qemu-sytem binary. Reviewed-by: Pierrick Bouvier Signed-off-by: Philippe Mathieu-Daudé Message-ID: <20260219191955.83815-45-philmd@linaro.org> --- target/avr/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/target/avr/meson.build b/target/avr/meson.build index 3e172bde1c..af5e7d6374 100644 --- a/target/avr/meson.build +++ b/target/avr/meson.build @@ -11,10 +11,13 @@ avr_ss.add(files( 'translate.c', 'helper.c', 'cpu.c', - 'gdbstub.c', 'disas.c')) +avr_common_system_ss = ss.source_set() +avr_common_system_ss.add(files('gdbstub.c')) + avr_system_ss.add(files('machine.c')) target_arch += {'avr': avr_ss} target_system_arch += {'avr': avr_system_ss} +target_common_system_arch += {'avr': avr_common_system_ss}