tools: configure correct trace backend for QEMU
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 9 May 2016 16:43:14 +0000 (17:43 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 11 May 2016 09:03:54 +0000 (10:03 +0100)
Newer versions of the QEMU source have replaced the 'stderr' trace
backend with 'log'. This patch adjusts the tools Makefile to test for
the 'log' backend and specify it if it is available.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/Makefile

index 3f45fb94296e26680c5c8c73c91b2bc1872b2e6f..6440dec46102c2a2a0496370fe87192f17d877ff 100644 (file)
@@ -240,7 +240,9 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
                source=.; \
        fi; \
        cd qemu-xen-dir; \
-       if $$source/scripts/tracetool.py --check-backend --backend stderr ; then \
+       if $$source/scripts/tracetool.py --check-backend --backend log ; then \
+               enable_trace_backend='--enable-trace-backend=log'; \
+       elif $$source/scripts/tracetool.py --check-backend --backend stderr ; then \
                enable_trace_backend='--enable-trace-backend=stderr'; \
        else \
                enable_trace_backend='' ; \