mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
build: Use separate makefile for "trace/"
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> -- Changes in v2: * Do not depend on "qemu-timer-common.o". * Use "$(obj)" in rules to refer to the build sub-directory. * Remove dependencies against "$(GENERATED_HEADERS)". Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
6265e4ff32
commit
eac236ea7b
7 changed files with 97 additions and 76 deletions
|
@ -19,8 +19,8 @@ from tracetool import out
|
|||
def begin(events):
|
||||
out('/* This file is autogenerated by tracetool, do not edit. */',
|
||||
'',
|
||||
'#ifndef TRACE_H',
|
||||
'#define TRACE_H',
|
||||
'#ifndef TRACE__GENERATED_TRACERS_H',
|
||||
'#define TRACE__GENERATED_TRACERS_H',
|
||||
'',
|
||||
'#include "qemu-common.h"')
|
||||
|
||||
|
@ -32,7 +32,7 @@ def end(events):
|
|||
enabled = 1
|
||||
out('#define TRACE_%s_ENABLED %d' % (e.name.upper(), enabled))
|
||||
out('',
|
||||
'#endif /* TRACE_H */')
|
||||
'#endif /* TRACE__GENERATED_TRACERS_H */')
|
||||
|
||||
def nop(events):
|
||||
for e in events:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue