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