diff mbox series

[1/4] trace: only include trace-event-subdirs when they are needed

Message ID 20190321124624.26131-2-lvivier@redhat.com
State New
Headers show
Series build: cleanup in Makefile.objs | expand

Commit Message

Laurent Vivier March 21, 2019, 12:46 p.m. UTC
Some directories are built only for softmmu targets,
and the related trace-event-subdirs must do the same

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
---
 Makefile.objs | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Comments

Stefan Hajnoczi March 26, 2019, 8:04 a.m. UTC | #1
On Thu, Mar 21, 2019 at 01:46:21PM +0100, Laurent Vivier wrote:
> Some directories are built only for softmmu targets,
> and the related trace-event-subdirs must do the same
> 
> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
> ---
>  Makefile.objs | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
diff mbox series

Patch

diff --git a/Makefile.objs b/Makefile.objs
index cf065de5ed44..d90123f1d0a3 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -127,11 +127,12 @@  rdmacm-mux-obj-y = contrib/rdmacm-mux/
 trace-events-subdirs =
 trace-events-subdirs += accel/kvm
 trace-events-subdirs += accel/tcg
-trace-events-subdirs += audio
 trace-events-subdirs += authz
 trace-events-subdirs += block
 trace-events-subdirs += chardev
 trace-events-subdirs += crypto
+ifeq ($(CONFIG_SOFTMMU),y)
+trace-events-subdirs += audio
 trace-events-subdirs += hw/9pfs
 trace-events-subdirs += hw/acpi
 trace-events-subdirs += hw/alpha
@@ -173,11 +174,13 @@  trace-events-subdirs += hw/virtio
 trace-events-subdirs += hw/watchdog
 trace-events-subdirs += hw/xen
 trace-events-subdirs += hw/gpio
+trace-events-subdirs += migration
+trace-events-subdirs += net
+trace-events-subdirs += ui
+endif
 trace-events-subdirs += io
 trace-events-subdirs += linux-user
-trace-events-subdirs += migration
 trace-events-subdirs += nbd
-trace-events-subdirs += net
 trace-events-subdirs += qapi
 trace-events-subdirs += qom
 trace-events-subdirs += scsi
@@ -189,7 +192,6 @@  trace-events-subdirs += target/ppc
 trace-events-subdirs += target/riscv
 trace-events-subdirs += target/s390x
 trace-events-subdirs += target/sparc
-trace-events-subdirs += ui
 trace-events-subdirs += util
 
 trace-events-files = $(SRC_PATH)/trace-events $(trace-events-subdirs:%=$(SRC_PATH)/%/trace-events)