diff options
author | qouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-06-30 19:56:10 +0000 |
---|---|---|
committer | qouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-06-30 19:56:10 +0000 |
commit | 136adffc5cd7efb21a38a980ff361edaa29629b3 (patch) | |
tree | d739587ce2c697ba0c645ef9625d82e5f4e923e5 /Tools/Source/GenBuild/org/tianocore/build/fpd | |
parent | 1ea046d4c4a07e1fbffa43eb46fd7004ed8aed16 (diff) | |
download | edk2-136adffc5cd7efb21a38a980ff361edaa29629b3.zip edk2-136adffc5cd7efb21a38a980ff361edaa29629b3.tar.gz edk2-136adffc5cd7efb21a38a980ff361edaa29629b3.tar.bz2 |
New tool.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@692 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/GenBuild/org/tianocore/build/fpd')
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java b/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java index 59bb47f..5d829c9 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java +++ b/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java @@ -33,16 +33,19 @@ import org.apache.tools.ant.taskdefs.Ant; import org.apache.tools.ant.taskdefs.Property;
import org.apache.xmlbeans.XmlObject;
-import org.tianocore.build.exception.EdkException;
import org.tianocore.build.global.GlobalData;
import org.tianocore.build.global.OutputManager;
import org.tianocore.build.global.SurfaceAreaQuery;
import org.tianocore.build.id.FpdModuleIdentification;
import org.tianocore.build.id.ModuleIdentification;
import org.tianocore.build.id.PlatformIdentification;
+import org.tianocore.build.pcd.action.ActionMessage;
+import org.tianocore.build.pcd.action.CollectPCDAction;
+import org.tianocore.build.pcd.exception.EntityException;
import org.tianocore.build.toolchain.ToolChainAttribute;
import org.tianocore.build.toolchain.ToolChainElement;
import org.tianocore.build.toolchain.ToolChainMap;
+import org.tianocore.exception.EdkException;
/**
<code>FpdParserTask</code> is an ANT task. The main function is parsing Framework
@@ -146,6 +149,18 @@ public class FpdParserTask extends Task { parseFpdFile();
//
+ // Pcd Collection. Call CollectPCDAction to collect pcd info.
+ //
+ try {
+ System.out.println("Begin PCD collecttion!");
+ CollectPCDAction ca = new CollectPCDAction();
+ ca.perform(GlobalData.getWorkspacePath(),platformId.getFpdFile().getPath(),ActionMessage.NULL_MESSAGE_LEVEL);
+ System.out.println("End PCD collection!");
+ } catch (Exception e){
+ throw new BuildException(e.getMessage());
+ }
+
+ //
// Prepare BUILD_DIR
//
isUnified = OutputManager.getInstance().prepareBuildDir(getProject());
@@ -187,6 +202,7 @@ public class FpdParserTask extends Task { //
// Ant call ${PLATFORM}_build.xml
//
+
Ant ant = new Ant();
ant.setProject(getProject());
ant.setAntfile(platformId.getFpdFile().getParent() + File.separatorChar + platformId.getName() + "_build.xml");
@@ -391,7 +407,7 @@ public class FpdParserTask extends Task { **/
private void parseModuleSAFiles() throws EdkException{
Map<FpdModuleIdentification, Map<String, XmlObject>> moduleSAs = SurfaceAreaQuery.getFpdModules();
- System.out.println("Nubmer: ##" + moduleSAs.size());
+
//
// For every Module lists in FPD file.
//
|