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