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