@samitouri / QOSamiQemu / commits / 936c783dab

target/tricore: Build 'gdbstub.c' once for system single binary

There is a single qemu-system-tricore 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-50-philmd@linaro.org>

Philippe Mathieu-Daudé committed Feb 18, 2026 at 09:53 UTC 936c783dab9240d6c000d387aaf620dfde4719be
1 file changed +7 -3
target/tricore/meson.build
+7 -3
@@ -5,11 +5,15 @@ tricore_ss.add(files(
5 'helper.c',
6 'op_helper.c',
7 'translate.c',
8 - 'gdbstub.c',
8 ))
9 tricore_ss.add(zlib)
10
12 -tricore_system_ss = ss.source_set()
11 +tricore_user_ss = ss.source_set()
12 +tricore_user_ss.add(files('gdbstub.c'))
13 +
14 +tricore_common_system_ss = ss.source_set()
15 +tricore_common_system_ss.add(files('gdbstub.c'))
16
17 target_arch += {'tricore': tricore_ss}
15 -target_common_system_arch += {'tricore': tricore_system_ss}
18 +target_user_arch += {'tricore': tricore_user_ss}
19 +target_common_system_arch += {'tricore': tricore_common_system_ss}