]>
Commit | Line | Data |
---|---|---|
eac236ea LV |
1 | # -*- mode: makefile -*- |
2 | ||
cef517ca SH |
3 | ###################################################################### |
4 | # tracetool source files | |
5 | # Every rule that invokes tracetool must depend on this so code is regenerated | |
6 | # if tracetool itself changes. | |
7 | ||
8 | tracetool-y = $(SRC_PATH)/scripts/tracetool.py | |
9 | tracetool-y += $(shell find $(SRC_PATH)/scripts/tracetool -name "*.py") | |
10 | ||
0ab8ed18 | 11 | $(BUILD_DIR)/trace-events-all: $(trace-events-files) |
1412cf58 DB |
12 | $(call quiet-command,cat $^ > $@) |
13 | ||
eac236ea | 14 | |
707c8a98 LV |
15 | ################################################## |
16 | # Translation level | |
17 | ||
f4654226 | 18 | $(obj)/generated-helpers-wrappers.h: $(obj)/generated-helpers-wrappers.h-timestamp |
9967e4fe | 19 | @cmp $< $@ >/dev/null 2>&1 || cp $< $@ |
0ab8ed18 | 20 | $(obj)/generated-helpers-wrappers.h-timestamp: $(trace-events-files) $(BUILD_DIR)/config-host.mak $(tracetool-y) |
f4654226 | 21 | $(call quiet-command,$(TRACETOOL) \ |
2098c56a | 22 | --group=all \ |
f4654226 LV |
23 | --format=tcg-helper-wrapper-h \ |
24 | --backend=$(TRACE_BACKENDS) \ | |
0bc6484d | 25 | $< > $@,"GEN","$(patsubst %-timestamp,%,$@)") |
f4654226 | 26 | |
707c8a98 | 27 | $(obj)/generated-helpers.h: $(obj)/generated-helpers.h-timestamp |
9967e4fe | 28 | @cmp $< $@ >/dev/null 2>&1 || cp $< $@ |
0ab8ed18 | 29 | $(obj)/generated-helpers.h-timestamp: $(trace-events-files) $(BUILD_DIR)/config-host.mak $(tracetool-y) |
707c8a98 | 30 | $(call quiet-command,$(TRACETOOL) \ |
2098c56a | 31 | --group=all \ |
707c8a98 LV |
32 | --format=tcg-helper-h \ |
33 | --backend=$(TRACE_BACKENDS) \ | |
0bc6484d | 34 | $< > $@,"GEN","$(patsubst %-timestamp,%,$@)") |
707c8a98 | 35 | |
341ea691 | 36 | $(obj)/generated-helpers.c: $(obj)/generated-helpers.c-timestamp |
9967e4fe | 37 | @cmp $< $@ >/dev/null 2>&1 || cp $< $@ |
0ab8ed18 | 38 | $(obj)/generated-helpers.c-timestamp: $(trace-events-files) $(BUILD_DIR)/config-host.mak $(tracetool-y) |
341ea691 | 39 | $(call quiet-command,$(TRACETOOL) \ |
2098c56a | 40 | --group=all \ |
341ea691 LV |
41 | --format=tcg-helper-c \ |
42 | --backend=$(TRACE_BACKENDS) \ | |
0bc6484d | 43 | $< > $@,"GEN","$(patsubst %-timestamp,%,$@)") |
341ea691 LV |
44 | |
45 | $(obj)/generated-helpers.o: $(obj)/generated-helpers.c | |
46 | ||
47 | target-obj-y += generated-helpers.o | |
48 | ||
707c8a98 | 49 | |
465830fb | 50 | $(obj)/generated-tcg-tracers.h: $(obj)/generated-tcg-tracers.h-timestamp |
9967e4fe | 51 | @cmp $< $@ >/dev/null 2>&1 || cp $< $@ |
0ab8ed18 | 52 | $(obj)/generated-tcg-tracers.h-timestamp: $(trace-events-files) $(BUILD_DIR)/config-host.mak $(tracetool-y) |
465830fb | 53 | $(call quiet-command,$(TRACETOOL) \ |
2098c56a | 54 | --group=all \ |
465830fb LV |
55 | --format=tcg-h \ |
56 | --backend=$(TRACE_BACKENDS) \ | |
0bc6484d | 57 | $< > $@,"GEN","$(patsubst %-timestamp,%,$@)") |
465830fb LV |
58 | |
59 | ||
eac236ea LV |
60 | ###################################################################### |
61 | # Backend code | |
62 | ||
34770187 | 63 | util-obj-$(CONFIG_TRACE_SIMPLE) += simple.o |
781e9545 | 64 | util-obj-$(CONFIG_TRACE_FTRACE) += ftrace.o |
ff667e2e | 65 | util-obj-y += control.o |
48151859 | 66 | target-obj-y += control-target.o |
1dde0f48 | 67 | util-obj-y += qmp.o |