Skip to contentSkip to conversation

trace: Use GENERATED_HEADERS dependencies

PATCH New Stefan Hajnoczi 1 participant 1 message Jun 29, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trace: Use GENERATED_HEADERS dependencies

Generated header files including trace.h and config-host.h are required for building trace code. Instead of explictly specifying these files, use the GENERATED_HEADERS variable that is also used elsewhere.

---
This patch applies against the tracing branch:

http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/tracing

 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
index de9b175..8831174 100644
@@ -138,9 +138,9 @@ trace.h: $(SRC_PATH)/trace-events
 trace.c: $(SRC_PATH)/trace-events
 	$(call quiet-command,sh $(SRC_PATH)/tracetool --$(TRACE_BACKEND) -c < $< > $@,"  GEN   $@")
 
-trace.o: trace.c trace.h
+trace.o: trace.c $(GENERATED_HEADERS)
 
-simpletrace.o: simpletrace.c trace.h
+simpletrace.o: simpletrace.c $(GENERATED_HEADERS)
 
 ######################################################################
 
Signature · 1 line
1.7.1