Browse Source

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>
master
Philippe Mathieu-Daudé 6 months ago
parent
commit
7700b0106f
  1. 5
      target/avr/meson.build

5
target/avr/meson.build

@ -11,10 +11,13 @@ avr_ss.add(files(
'translate.c', 'translate.c',
'helper.c', 'helper.c',
'cpu.c', 'cpu.c',
'gdbstub.c',
'disas.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')) avr_system_ss.add(files('machine.c'))
target_arch += {'avr': avr_ss} target_arch += {'avr': avr_ss}
target_system_arch += {'avr': avr_system_ss} target_system_arch += {'avr': avr_system_ss}
target_common_system_arch += {'avr': avr_common_system_ss}

Loading…
Cancel
Save