2012-12-14 19:13:09 +00:00
|
|
|
# -*- mode: makefile -*-
|
|
|
|
|
2017-01-25 16:14:15 +00:00
|
|
|
$(BUILD_DIR)/trace-events-all: $(trace-events-files)
|
2016-06-16 08:39:47 +00:00
|
|
|
$(call quiet-command,cat $^ > $@)
|
|
|
|
|
2012-12-14 19:13:09 +00:00
|
|
|
|
2014-05-30 12:11:50 +00:00
|
|
|
##################################################
|
|
|
|
# Translation level
|
|
|
|
|
2014-05-30 12:12:01 +00:00
|
|
|
$(obj)/generated-helpers-wrappers.h: $(obj)/generated-helpers-wrappers.h-timestamp
|
2015-10-28 14:45:10 +00:00
|
|
|
@cmp $< $@ >/dev/null 2>&1 || cp $< $@
|
2017-03-27 13:17:18 +00:00
|
|
|
$(obj)/generated-helpers-wrappers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
|
2014-05-30 12:12:01 +00:00
|
|
|
$(call quiet-command,$(TRACETOOL) \
|
2017-03-27 13:17:18 +00:00
|
|
|
--group=root \
|
2014-05-30 12:12:01 +00:00
|
|
|
--format=tcg-helper-wrapper-h \
|
|
|
|
--backend=$(TRACE_BACKENDS) \
|
2016-10-04 13:35:58 +00:00
|
|
|
$< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
|
2014-05-30 12:12:01 +00:00
|
|
|
|
2014-05-30 12:11:50 +00:00
|
|
|
$(obj)/generated-helpers.h: $(obj)/generated-helpers.h-timestamp
|
2015-10-28 14:45:10 +00:00
|
|
|
@cmp $< $@ >/dev/null 2>&1 || cp $< $@
|
2017-03-27 13:17:18 +00:00
|
|
|
$(obj)/generated-helpers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
|
2014-05-30 12:11:50 +00:00
|
|
|
$(call quiet-command,$(TRACETOOL) \
|
2017-03-27 13:17:18 +00:00
|
|
|
--group=root \
|
2014-05-30 12:11:50 +00:00
|
|
|
--format=tcg-helper-h \
|
|
|
|
--backend=$(TRACE_BACKENDS) \
|
2016-10-04 13:35:58 +00:00
|
|
|
$< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
|
2014-05-30 12:11:50 +00:00
|
|
|
|
2014-05-30 12:11:56 +00:00
|
|
|
$(obj)/generated-helpers.c: $(obj)/generated-helpers.c-timestamp
|
2015-10-28 14:45:10 +00:00
|
|
|
@cmp $< $@ >/dev/null 2>&1 || cp $< $@
|
2017-03-27 13:17:18 +00:00
|
|
|
$(obj)/generated-helpers.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
|
2014-05-30 12:11:56 +00:00
|
|
|
$(call quiet-command,$(TRACETOOL) \
|
2017-03-27 13:17:18 +00:00
|
|
|
--group=root \
|
2014-05-30 12:11:56 +00:00
|
|
|
--format=tcg-helper-c \
|
|
|
|
--backend=$(TRACE_BACKENDS) \
|
2016-10-04 13:35:58 +00:00
|
|
|
$< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
|
2014-05-30 12:11:56 +00:00
|
|
|
|
|
|
|
$(obj)/generated-helpers.o: $(obj)/generated-helpers.c
|
|
|
|
|
|
|
|
target-obj-y += generated-helpers.o
|
|
|
|
|
2014-05-30 12:11:50 +00:00
|
|
|
|
2014-05-30 12:12:13 +00:00
|
|
|
$(obj)/generated-tcg-tracers.h: $(obj)/generated-tcg-tracers.h-timestamp
|
2015-10-28 14:45:10 +00:00
|
|
|
@cmp $< $@ >/dev/null 2>&1 || cp $< $@
|
2017-03-27 13:17:18 +00:00
|
|
|
$(obj)/generated-tcg-tracers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
|
2014-05-30 12:12:13 +00:00
|
|
|
$(call quiet-command,$(TRACETOOL) \
|
2017-03-27 13:17:18 +00:00
|
|
|
--group=root \
|
2014-05-30 12:12:13 +00:00
|
|
|
--format=tcg-h \
|
|
|
|
--backend=$(TRACE_BACKENDS) \
|
2016-10-04 13:35:58 +00:00
|
|
|
$< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
|
2014-05-30 12:12:13 +00:00
|
|
|
|
|
|
|
|
2012-12-14 19:13:09 +00:00
|
|
|
######################################################################
|
|
|
|
# Backend code
|
|
|
|
|
2016-10-04 13:35:55 +00:00
|
|
|
util-obj-$(CONFIG_TRACE_SIMPLE) += simple.o
|
2013-04-11 11:25:15 +00:00
|
|
|
util-obj-$(CONFIG_TRACE_FTRACE) += ftrace.o
|
2012-12-21 08:45:20 +00:00
|
|
|
util-obj-y += control.o
|
2016-07-11 10:53:41 +00:00
|
|
|
target-obj-y += control-target.o
|
2014-08-25 11:19:57 +00:00
|
|
|
util-obj-y += qmp.o
|