mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-30 23:10:38 +00:00
310b3fe9e5
It is possible to specify the trace/ directory already in objs-y; there is no need to have a separate unnest-vars invocation. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
60 lines
2.0 KiB
Makefile
60 lines
2.0 KiB
Makefile
# -*- mode: makefile -*-
|
|
|
|
$(BUILD_DIR)/trace-events-all: $(trace-events-files)
|
|
$(call quiet-command,cat $^ > $@)
|
|
|
|
|
|
##################################################
|
|
# Translation level
|
|
|
|
$(obj)/generated-helpers-wrappers.h: $(obj)/generated-helpers-wrappers.h-timestamp
|
|
@cmp $< $@ >/dev/null 2>&1 || cp $< $@
|
|
$(obj)/generated-helpers-wrappers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
|
|
$(call quiet-command,$(TRACETOOL) \
|
|
--group=root \
|
|
--format=tcg-helper-wrapper-h \
|
|
--backend=$(TRACE_BACKENDS) \
|
|
$< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
|
|
|
|
$(obj)/generated-helpers.h: $(obj)/generated-helpers.h-timestamp
|
|
@cmp $< $@ >/dev/null 2>&1 || cp $< $@
|
|
$(obj)/generated-helpers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
|
|
$(call quiet-command,$(TRACETOOL) \
|
|
--group=root \
|
|
--format=tcg-helper-h \
|
|
--backend=$(TRACE_BACKENDS) \
|
|
$< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
|
|
|
|
$(obj)/generated-helpers.c: $(obj)/generated-helpers.c-timestamp
|
|
@cmp $< $@ >/dev/null 2>&1 || cp $< $@
|
|
$(obj)/generated-helpers.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
|
|
$(call quiet-command,$(TRACETOOL) \
|
|
--group=root \
|
|
--format=tcg-helper-c \
|
|
--backend=$(TRACE_BACKENDS) \
|
|
$< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
|
|
|
|
$(obj)/generated-helpers.o: $(obj)/generated-helpers.c
|
|
|
|
obj-y += generated-helpers.o
|
|
|
|
|
|
$(obj)/generated-tcg-tracers.h: $(obj)/generated-tcg-tracers.h-timestamp
|
|
@cmp $< $@ >/dev/null 2>&1 || cp $< $@
|
|
$(obj)/generated-tcg-tracers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
|
|
$(call quiet-command,$(TRACETOOL) \
|
|
--group=root \
|
|
--format=tcg-h \
|
|
--backend=$(TRACE_BACKENDS) \
|
|
$< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
|
|
|
|
|
|
######################################################################
|
|
# Backend code
|
|
|
|
util-obj-$(CONFIG_TRACE_SIMPLE) += simple.o
|
|
util-obj-$(CONFIG_TRACE_FTRACE) += ftrace.o
|
|
util-obj-y += control.o
|
|
obj-y += control-target.o
|
|
util-obj-y += qmp.o
|