qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v2] meson: Only generate trace files for selected targets
@ 2021-02-24 21:35 Philippe Mathieu-Daudé
  2021-03-08 16:46 ` Stefan Hajnoczi
  0 siblings, 1 reply; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-02-24 21:35 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Philippe Mathieu-Daudé, Stefan Hajnoczi,
	Paolo Bonzini

We don't need to generate trace files for targets we
are not building. Restrict the the ones selected.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 meson.build | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/meson.build b/meson.build
index 05a67c20d93..8503aa1b628 100644
--- a/meson.build
+++ b/meson.build
@@ -1826,16 +1826,16 @@
   trace_events_subdirs += [
     'accel/tcg',
     'hw/core',
-    'target/arm',
-    'target/hppa',
-    'target/i386',
     'target/i386/kvm',
-    'target/mips',
-    'target/ppc',
-    'target/riscv',
-    'target/s390x',
-    'target/sparc',
   ]
+  foreach target : target_dirs
+    arch = config_target_mak[target]['TARGET_BASE_ARCH']
+    target_trace_events_subdir = 'target' / arch
+    if fs.exists(meson.current_source_dir() / target_trace_events_subdir / 'trace-events') and \
+        target_trace_events_subdir not in trace_events_subdirs
+      trace_events_subdirs += [target_trace_events_subdir]
+    endif
+  endforeach
 endif
 
 vhost_user = not_found
-- 
2.26.2



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-03-09 11:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-24 21:35 [RFC PATCH v2] meson: Only generate trace files for selected targets Philippe Mathieu-Daudé
2021-03-08 16:46 ` Stefan Hajnoczi
2021-03-08 17:48   ` Philippe Mathieu-Daudé
2021-03-09  8:41     ` Claudio Fontana
2021-03-09  9:21       ` Philippe Mathieu-Daudé
2021-03-09 10:26       ` Paolo Bonzini
2021-03-09 10:46         ` Claudio Fontana
2021-03-09 10:54         ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).