# HG changeset patch # User timothy.murphy@nokia.com # Date 1272669817 -3600 # Node ID b97b96f395b6af955220eac1cb998286f20dfd39 # Parent cd8318d5fb3a081d0fe0f38a75aa87850050f6d5 fix: calculate autogen header locations every time. diff -r cd8318d5fb3a -r b97b96f395b6 sbsv2/raptor/lib/flm/tracecompiler.mk --- a/sbsv2/raptor/lib/flm/tracecompiler.mk Sat May 01 00:09:59 2010 +0100 +++ b/sbsv2/raptor/lib/flm/tracecompiler.mk Sat May 01 00:23:37 2010 +0100 @@ -104,6 +104,7 @@ TCClass:=$(wildcard $(TRACE_COMPILER_PATH)/tracecompiler/com/nokia/tracecompiler/TraceCompilerMain.class) ifneq ($(TCClass),) #New Interface +TRACE_VER:=new TRACE_COMPILER_START:=-classpath $(TRACE_COMPILER_PATH)/tracecompiler com.nokia.tracecompiler.TraceCompilerMain define trace_compile $(TRACE_MARKER) : $(PROJECT_META) @@ -117,9 +118,6 @@ $(call endrule,tracecompile) endef - -TRACE_DICTIONARY:=$(EPOCROOT)/epoc32/ost_dictionaries/$(TRACE_PRJNAME_SANITISED)_0x$(UID_TC)_Dictionary.xml -AUTOGEN_HEADER:=$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/$(TRACE_PRJNAME_SANITISED)_0x$(UID_TC)_TraceDefinitions.h else # Old inteface TRACE_COMPILER_START:=-classpath $(TRACE_COMPILER_PATH)/tracecompiler com.nokia.tracecompiler.TraceCompiler # 1. Use pipe to send inputs to trace compiler to process @@ -137,10 +135,7 @@ $(GNUCAT) $(TRACE_SOURCE_LIST) ; true ; } \ $(call endrule,tracecompile) endef - - -TRACE_DICTIONARY:=$(EPOCROOT)/epoc32/ost_dictionaries/$(OLDTC_TRACE_PRJNAME_SANITISED)_0x$(UID_TC)_Dictionary.xml -AUTOGEN_HEADER:=$(EPOCROOT)/epoc32/include/internal/symbiantraces/autogen/$(OLDTC_TRACE_PRJNAME_SANITISED)_0x$(UID_TC)_TraceDefinitions.h +TRACE_VER:=old # End - new/old trace compiler endif @@ -148,6 +143,13 @@ # End - tracecompile is defined endif +ifeq ($(TRACE_VER),new) +TRACE_DICTIONARY:=$(EPOCROOT)/epoc32/ost_dictionaries/$(TRACE_PRJNAME_SANITISED)_0x$(UID_TC)_Dictionary.xml +AUTOGEN_HEADER:=$(EPOCROOT)/epoc32/include/platform/symbiantraces/autogen/$(TRACE_PRJNAME_SANITISED)_0x$(UID_TC)_TraceDefinitions.h +else +TRACE_DICTIONARY:=$(EPOCROOT)/epoc32/ost_dictionaries/$(OLDTC_TRACE_PRJNAME_SANITISED)_0x$(UID_TC)_Dictionary.xml +AUTOGEN_HEADER:=$(EPOCROOT)/epoc32/include/internal/symbiantraces/autogen/$(OLDTC_TRACE_PRJNAME_SANITISED)_0x$(UID_TC)_TraceDefinitions.h +endif $(eval $(trace_compile)) diff -r cd8318d5fb3a -r b97b96f395b6 sbsv2/raptor/test/smoke_suite/tracecompiler_variants.py --- a/sbsv2/raptor/test/smoke_suite/tracecompiler_variants.py Sat May 01 00:09:59 2010 +0100 +++ b/sbsv2/raptor/test/smoke_suite/tracecompiler_variants.py Sat May 01 00:23:37 2010 +0100 @@ -54,7 +54,7 @@ "invariant_source_/winscw/udeb/inv_source.o.d", "invariant_source_/winscw/urel/inv_source.o", "invariant_source_/winscw/urel/inv_source.o.d", - "invariant_source_/tracecompile_invariant_source_10000002.done", + "invariant_source_/tracecompile_invariant_source_exe_10000002.done", "variant_source_/armv5/udeb/var_source1.o", "variant_source_/armv5/udeb/var_source1.o.d", "variant_source_/armv5/udeb/var_source2.o", @@ -71,7 +71,7 @@ "variant_source_/winscw/urel/var_source1.o.d", "variant_source_/winscw/urel/var_source2.o", "variant_source_/winscw/urel/var_source2.o.d", - "variant_source_/tracecompile_variant_source_10000003.done" + "variant_source_/tracecompile_variant_source_exe_10000003.done" ]) t.antitargets = [ "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/variant_source/traces/var_source3Traces.h" @@ -117,7 +117,7 @@ "invariant_source_/winscw/udeb/inv_source.o.d", "invariant_source_/winscw/urel/inv_source.o", "invariant_source_/winscw/urel/inv_source.o.d", - "invariant_source_/tracecompile_invariant_source_10000002.done", + "invariant_source_/tracecompile_invariant_source_exe_10000002.done", "variant_source_/armv5/udeb/var_source1.o", "variant_source_/armv5/udeb/var_source1.o.d", "variant_source_/armv5/udeb/var_source3.o", @@ -134,7 +134,7 @@ "variant_source_/winscw/urel/var_source1.o.d", "variant_source_/winscw/urel/var_source3.o", "variant_source_/winscw/urel/var_source3.o.d", - "variant_source_/tracecompile_variant_source_10000003.done" + "variant_source_/tracecompile_variant_source_exe_10000003.done" ]) t.run() @@ -174,7 +174,7 @@ "tc_variants_/armv5.phone3/udeb/tc_c.o", "tc_variants_/armv5.phone3/urel/tc_main.o", "tc_variants_/armv5.phone3/urel/tc_c.o", - "tc_variants_/tracecompile_tc_variants_10000004.done" + "tc_variants_/tracecompile_tc_variants_exe_10000004.done" ]) t.run()