Enhance peirebase tool to get base address from the corresponding fv.inf file, which don't need one base address parameter for this tool any longer. We can reduce base address duplicated definition in fv.inf and fpd file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1986 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2006-11-20 09:29:14 +00:00
parent e5d3db39cb
commit 4c50c88544
4 changed files with 90 additions and 8 deletions

View File

@ -50,7 +50,11 @@ public class PeiReBaseTask extends Task implements EfiDefine {
//
private ToolArg baseAddr = new ToolArg();
//
// Fv.inf file
//
private FileArg fvinfFile = new FileArg();
//
// map file
//
private FileArg mapFile = new FileArg();
//
@ -99,7 +103,7 @@ public class PeiReBaseTask extends Task implements EfiDefine {
if (mapFile.getValue().length() == 0) {
mapFile.setArg(" -M ", outputFile.getValue() + ".map");
}
argument = "" + inputFile + outputFile + baseAddr + mapFile;
argument = "" + inputFile + outputFile + baseAddr + fvinfFile + mapFile;
//
// return value of fwimage execution
@ -234,6 +238,24 @@ public class PeiReBaseTask extends Task implements EfiDefine {
this.arch = arch;
}
/**
Get the value of fv.inf file
@return String The fv.inf file path
**/
public String getFvInfFile() {
return fvinfFile.getValue();
}
/**
Set "-F FvinfFile" argument
@param fvinfFile The path of fv.inf file
**/
public void setFvInfFile(String fvinfFile) {
this.fvinfFile.setArg(" -F ", fvinfFile);
}
/**
Get the value of map file