diff options
author | wuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-31 08:38:25 +0000 |
---|---|---|
committer | wuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-31 08:38:25 +0000 |
commit | 0719317158cadc33959fdce23537456bc6de66eb (patch) | |
tree | 0dca1efcfa83f1678f51dd6babaf6fa152e9f3bb /Tools/Source/GenBuild | |
parent | fb4645773d36b5527f31e18acaee70eac82c1061 (diff) | |
download | edk2-platforms-0719317158cadc33959fdce23537456bc6de66eb.tar.xz |
Remove stand-alone module judge when parse FPD file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1415 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/GenBuild')
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java | 2 | ||||
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java | 26 |
2 files changed, 5 insertions, 23 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java b/Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java index 9b4dfa3486..7ec12b0427 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java +++ b/Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java @@ -342,7 +342,7 @@ public class GenBuildTask extends Ant { //
FpdParserTask fpdParser = new FpdParserTask();
fpdParser.setProject(getProject());
- fpdParser.parseFpdFile(platformId.getFpdFile(), moduleId);
+ fpdParser.parseFpdFile(platformId.getFpdFile());
PropertyManager.setProperty("ARCH", fpdParser.getAllArchForModule(moduleId));
//
diff --git a/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java b/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java index 46fe580c76..4884515547 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java +++ b/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java @@ -305,21 +305,17 @@ public class FpdParserTask extends Task { @throws BuildException
FPD file is not valid.
**/
- public void parseFpdFile(File fpdFile, ModuleIdentification singleModuleId) throws BuildException {
+ public void parseFpdFile(File fpdFile) throws BuildException {
this.fpdFile = fpdFile;
- parseFpdFile(singleModuleId);
}
- private void parseFpdFile() throws BuildException {
- parseFpdFile(null);
- }
/**
Parse FPD file.
@throws BuildException
FPD file is not valid.
**/
- private void parseFpdFile(ModuleIdentification singleModuleId) throws BuildException {
+ private void parseFpdFile() throws BuildException {
try {
XmlObject doc = XmlObject.Factory.parse(fpdFile);
@@ -359,7 +355,7 @@ public class FpdParserTask extends Task { //
// Parse all list modules SA
//
- parseModuleSAFiles(singleModuleId);
+ parseModuleSAFiles();
//
// TBD. Deal PCD and BuildOption related Info
@@ -379,12 +375,10 @@ public class FpdParserTask extends Task { }
}
-
-
/**
Parse all modules listed in FPD file.
**/
- private void parseModuleSAFiles(ModuleIdentification singleModuleId) throws EdkException{
+ private void parseModuleSAFiles() throws EdkException{
Map<FpdModuleIdentification, Map<String, XmlObject>> moduleSAs = SurfaceAreaQuery.getFpdModules();
//
@@ -396,18 +390,6 @@ public class FpdParserTask extends Task { FpdModuleIdentification fpdModuleId = (FpdModuleIdentification) iter.next();
//
- // If is stand-alone module build, just parse this module, pass others
- //
- if (singleModuleId != null) {
- //
- // pass others modules
- //
- if ( ! fpdModuleId.getModule().equals(singleModuleId)) {
- continue ;
- }
- }
-
- //
// Judge if Module is existed?
// TBD
GlobalData.registerFpdModuleSA(fpdModuleId, moduleSAs.get(fpdModuleId));
|