There is a single qemu-system-m68k 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.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
 target/m68k/meson.build | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/target/m68k/meson.build b/target/m68k/meson.build
index 4d213daaf67..c36d817134b 100644
--- a/target/m68k/meson.build
+++ b/target/m68k/meson.build
@@ -2,13 +2,18 @@ m68k_ss = ss.source_set()
 m68k_ss.add(files(
   'cpu.c',
   'fpu_helper.c',
-  'gdbstub.c',
   'helper.c',
   'op_helper.c',
   'softfloat.c',
   'translate.c',
 ))
 
+m68k_user_ss = ss.source_set()
+m68k_user_ss.add(files('gdbstub.c'))
+
+m68k_common_system_ss = ss.source_set()
+m68k_common_system_ss.add(files('gdbstub.c'))
+
 m68k_system_ss = ss.source_set()
 m68k_system_ss.add(files(
   'monitor.c'
@@ -19,4 +24,6 @@ m68k_system_ss.add(when: ['CONFIG_SEMIHOSTING'],
 )
 
 target_arch += {'m68k': m68k_ss}
+target_user_arch += {'m68k': m68k_user_ss}
 target_system_arch += {'m68k': m68k_system_ss}
+target_common_system_arch += {'m68k': m68k_common_system_ss}
-- 
2.52.0


Reply via email to