// / Input file\r
// /\r
private String inputFile = "";\r
-\r
+ private String inputFileName = "";\r
// /\r
// / Output file\r
// /\r
File file = new File(outputFile);\r
if (!file.isAbsolute() && (!this.outputDir.equalsIgnoreCase(""))) {\r
argument = inputFile + " " + "-O " + outputDir + File.separatorChar\r
- + outputFile + " " + this.baseAddr;\r
+ + outputFile + " " + this.baseAddr + " "\r
+ + "-M " + outputDir + + File.separatorChar + outputFile + ".map";\r
} else {\r
- argument = inputFile + " " + "-O " + outputFile + " " + this.baseAddr;\r
+ argument = inputFile + " " + "-O " + outputFile + " " + this.baseAddr+ " " + "-M " + outputFile + ".map";\r
}\r
\r
//\r
//\r
// Set debug log information.\r
//\r
- EdkLog.log(EdkLog.EDK_INFO, Commandline.toString(cmdline.getCommandline()));\r
+ EdkLog.log(EdkLog.EDK_VERBOSE, Commandline.toString(cmdline.getCommandline()));\r
+ EdkLog.log(EdkLog.EDK_INFO, this.inputFileName);\r
\r
revl = runner.execute();\r
\r
//\r
// command execution success\r
//\r
- EdkLog.log(EdkLog.EDK_INFO,"PeiBase succeeded!");\r
+ EdkLog.log(EdkLog.EDK_VERBOSE, "PeiReBase succeeded!");\r
} else {\r
//\r
// command execution fail\r
//\r
- EdkLog.log(EdkLog.EDK_ERROR, "PeiBase failed. (error="\r
- + Integer.toHexString(revl) + ")");\r
- throw new BuildException("PeiBase failed. (error="\r
- + Integer.toHexString(revl) + ")");\r
-\r
+ EdkLog.log(EdkLog.EDK_INFO, "ERROR = " + Integer.toHexString(revl));\r
+ throw new BuildException("PeiReBase failed!");\r
}\r
} catch (Exception e) {\r
throw new BuildException(e.getMessage());\r
* string of input file name.\r
*/\r
public void setInputFile(String inputFile) {\r
+ this.inputFileName = (new File(inputFile)).getName();\r
this.inputFile = "-I " + inputFile;\r
}\r
\r