diff -r df89378e9223 -r 7b7f0409fc00 sbsv2/raptor/python/raptor_make.py --- a/sbsv2/raptor/python/raptor_make.py Tue Nov 30 13:59:58 2010 +0800 +++ b/sbsv2/raptor/python/raptor_make.py Tue Nov 30 14:05:41 2010 +0800 @@ -76,6 +76,8 @@ inOutput = False buildid = "" + duration = "unknown" + availability = "unknown" for line in af: line = line.rstrip("\n\r") @@ -186,16 +188,19 @@ # console output is lost. The annotation file has a copy of this # output in the "parse" job and it turns out to be uncorrupted. self.copyLogFromAnnoFile = (evaluator.Get("copylogfromannofile") == "true") - self.annoFileName = None + self.emakeCm = (len([opt for opt in self.raptor.makeOptions if opt.startswith("--emake-cm")]) > 0) + self.annoFileName = None # store the anno file name if self.copyLogFromAnnoFile: - for o in self.raptor.makeOptions: - self.annoFileName = string_following("--emake-annofile=", o) - if self.annoFileName: - self.raptor.Info("annofile: " + o) - - if not self.annoFileName: - self.raptor.Info("Cannot copy log from annotation file as no annotation filename was specified via the option --mo=--emake-annofile=") + try: + self.annoFileName = string_following("--emake-annofile=", [opt for opt in self.raptor.makeOptions if opt.startswith("--emake-annofile")][0]) + self.raptor.Info("annofile: " + self.annoFileName) + except IndexError, bad_index: + cannot_use_anno_msg = "Cannot copy log from annotation file as no annotation filename was specified via the option --mo=--emake-annofile=" + if self.emakeCm: + self.raptor.Error(cannot_use_anno_msg) # Only an error if requested use of cm + else: + self.raptor.Info(cannot_use_anno_msg) self.copyLogFromAnnoFile = False # buffering @@ -284,6 +289,7 @@ HOSTPLATFORM:=%s HOSTPLATFORM_DIR:=%s +HOSTPLATFORM32_DIR:=%s OSTYPE:=%s FLMHOME:=%s SHELL:=%s @@ -298,6 +304,7 @@ """ % ( raptor.name, raptor_version.fullversion(), " ".join(raptor.hostplatform), raptor.hostplatform_dir, + raptor.hostplatform32_dir, self.raptor.filesystem, str(self.raptor.systemFLM), self.shellpath, @@ -482,7 +489,7 @@ guard = "guard_" + hash # generate the call to the FLM - if iface is not None: + if iface is not None and not dupe: makefileset.addCall(spec.name, config.name, iface.name, useAllInterfaces, iface.GetFLMIncludePath(self.raptor.cache), parameters, guard) # recursive includes