target/avr: Build 'gdbstub.c' once for system single binary
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 <pierrick.bouvier@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20260219191955.83815-45-philmd@linaro.org>
Philippe Mathieu-Daudé committed
Feb 18, 2026 at 09:45 UTC
7700b0106f981d16d3004494a1104257620512bb
1 file changed
+4
-1
target/avr/meson.build
+4
-1
@@ -11,10 +11,13 @@ avr_ss.add(files(
11
'translate.c',
12
'helper.c',
13
'cpu.c',
14
- 'gdbstub.c',
14
'disas.c'))
15
16
+avr_common_system_ss = ss.source_set()
17
+avr_common_system_ss.add(files('gdbstub.c'))
18
+
19
avr_system_ss.add(files('machine.c'))
20
21
target_arch += {'avr': avr_ss}
22
target_system_arch += {'avr': avr_system_ss}
23
+target_common_system_arch += {'avr': avr_common_system_ss}