git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1415
6f19259b-4bc3-4df7-8a09-
765794883524
//\r
FpdParserTask fpdParser = new FpdParserTask();\r
fpdParser.setProject(getProject());\r
//\r
FpdParserTask fpdParser = new FpdParserTask();\r
fpdParser.setProject(getProject());\r
- fpdParser.parseFpdFile(platformId.getFpdFile(), moduleId);\r
+ fpdParser.parseFpdFile(platformId.getFpdFile());\r
PropertyManager.setProperty("ARCH", fpdParser.getAllArchForModule(moduleId));\r
\r
//\r
PropertyManager.setProperty("ARCH", fpdParser.getAllArchForModule(moduleId));\r
\r
//\r
@throws BuildException\r
FPD file is not valid.\r
**/\r
@throws BuildException\r
FPD file is not valid.\r
**/\r
- public void parseFpdFile(File fpdFile, ModuleIdentification singleModuleId) throws BuildException {\r
+ public void parseFpdFile(File fpdFile) throws BuildException {\r
this.fpdFile = fpdFile;\r
this.fpdFile = fpdFile;\r
- parseFpdFile(singleModuleId);\r
- private void parseFpdFile() throws BuildException {\r
- parseFpdFile(null);\r
- }\r
/**\r
Parse FPD file.\r
\r
@throws BuildException\r
FPD file is not valid.\r
**/\r
/**\r
Parse FPD file.\r
\r
@throws BuildException\r
FPD file is not valid.\r
**/\r
- private void parseFpdFile(ModuleIdentification singleModuleId) throws BuildException {\r
+ private void parseFpdFile() throws BuildException {\r
try {\r
XmlObject doc = XmlObject.Factory.parse(fpdFile);\r
\r
try {\r
XmlObject doc = XmlObject.Factory.parse(fpdFile);\r
\r
//\r
// Parse all list modules SA\r
//\r
//\r
// Parse all list modules SA\r
//\r
- parseModuleSAFiles(singleModuleId);\r
+ parseModuleSAFiles();\r
\r
//\r
// TBD. Deal PCD and BuildOption related Info\r
\r
//\r
// TBD. Deal PCD and BuildOption related Info\r
/**\r
Parse all modules listed in FPD file.\r
**/\r
/**\r
Parse all modules listed in FPD file.\r
**/\r
- private void parseModuleSAFiles(ModuleIdentification singleModuleId) throws EdkException{\r
+ private void parseModuleSAFiles() throws EdkException{\r
Map<FpdModuleIdentification, Map<String, XmlObject>> moduleSAs = SurfaceAreaQuery.getFpdModules();\r
\r
//\r
Map<FpdModuleIdentification, Map<String, XmlObject>> moduleSAs = SurfaceAreaQuery.getFpdModules();\r
\r
//\r
while (iter.hasNext()) {\r
FpdModuleIdentification fpdModuleId = (FpdModuleIdentification) iter.next();\r
\r
while (iter.hasNext()) {\r
FpdModuleIdentification fpdModuleId = (FpdModuleIdentification) iter.next();\r
\r
- //\r
- // If is stand-alone module build, just parse this module, pass others\r
- //\r
- if (singleModuleId != null) {\r
- //\r
- // pass others modules\r
- //\r
- if ( ! fpdModuleId.getModule().equals(singleModuleId)) {\r
- continue ;\r
- }\r
- }\r
- \r
//\r
// Judge if Module is existed?\r
// TBD\r
//\r
// Judge if Module is existed?\r
// TBD\r