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>
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='' ; \