1 # -*- mode: makefile -*-
3 $(BUILD_DIR)/trace-events-all: $(trace-events-files)
4 $(call quiet-command,cat $^ > $@)
7 ##################################################
10 $(obj)/generated-helpers-wrappers.h: $(obj)/generated-helpers-wrappers.h-timestamp
11 @cmp $< $@ >/dev/null 2>&1 || cp $< $@
12 $(obj)/generated-helpers-wrappers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
13 $(call quiet-command,$(TRACETOOL) \
15 --format=tcg-helper-wrapper-h \
16 --backend=$(TRACE_BACKENDS) \
17 $< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
19 $(obj)/generated-helpers.h: $(obj)/generated-helpers.h-timestamp
20 @cmp $< $@ >/dev/null 2>&1 || cp $< $@
21 $(obj)/generated-helpers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
22 $(call quiet-command,$(TRACETOOL) \
24 --format=tcg-helper-h \
25 --backend=$(TRACE_BACKENDS) \
26 $< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
28 $(obj)/generated-helpers.c: $(obj)/generated-helpers.c-timestamp
29 @cmp $< $@ >/dev/null 2>&1 || cp $< $@
30 $(obj)/generated-helpers.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
31 $(call quiet-command,$(TRACETOOL) \
33 --format=tcg-helper-c \
34 --backend=$(TRACE_BACKENDS) \
35 $< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
37 $(obj)/generated-helpers.o: $(obj)/generated-helpers.c
39 obj-y += generated-helpers.o
42 $(obj)/generated-tcg-tracers.h: $(obj)/generated-tcg-tracers.h-timestamp
43 @cmp $< $@ >/dev/null 2>&1 || cp $< $@
44 $(obj)/generated-tcg-tracers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak $(tracetool-y)
45 $(call quiet-command,$(TRACETOOL) \
48 --backend=$(TRACE_BACKENDS) \
49 $< > $@,"GEN","$(patsubst %-timestamp,%,$@)")
52 ######################################################################
55 util-obj-$(CONFIG_TRACE_SIMPLE) += simple.o
56 util-obj-$(CONFIG_TRACE_FTRACE) += ftrace.o
57 util-obj-y += control.o
58 obj-y += control-target.o