diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-04 14:32:27 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-04 14:32:27 +0000 |
commit | 7629edbc44625aa7c5e99c24afe8bc2f7506fbf6 (patch) | |
tree | 74c1af822c40b276f7f82f1b0dc7c2089a865f56 | |
parent | 25832ed3375c65b1b2763acbd7461710fde0543b (diff) | |
download | edk2-7629edbc44625aa7c5e99c24afe8bc2f7506fbf6.zip edk2-7629edbc44625aa7c5e99c24afe8bc2f7506fbf6.tar.gz edk2-7629edbc44625aa7c5e99c24afe8bc2f7506fbf6.tar.bz2 |
Move ant-related code from ParserFpd function to enable single module debug for PCD tools.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@747 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java | 9 | ||||
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java | 14 |
2 files changed, 14 insertions, 9 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java b/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java index 3788d23..ffbd919 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java +++ b/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java @@ -147,7 +147,11 @@ public class FpdParserTask extends Task { // Parse FPD file
//
parseFpdFile();
-
+
+ getProject().setProperty("PLATFORM", platformId.getName());
+ getProject().setProperty("PLATFORM_DIR", platformId.getFpdFile().getParent().replaceAll("(\\\\)", "/"));
+ getProject().setProperty("PLATFORM_RELATIVE_DIR", platformId.getPlatformRelativeDir().replaceAll("(\\\\)", "/"));
+
//
// Pcd Collection. Call CollectPCDAction to collect pcd info.
//
@@ -361,9 +365,6 @@ public class FpdParserTask extends Task { //
platformId = SurfaceAreaQuery.getFpdHeader();
platformId.setFpdFile(fpdFile);
- getProject().setProperty("PLATFORM", platformId.getName());
- getProject().setProperty("PLATFORM_DIR", platformId.getFpdFile().getParent().replaceAll("(\\\\)", "/"));
- getProject().setProperty("PLATFORM_RELATIVE_DIR", platformId.getPlatformRelativeDir().replaceAll("(\\\\)", "/"));
//
// Build mode. User-defined output dir.
diff --git a/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java b/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java index c576363..29819dd 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java +++ b/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java @@ -42,6 +42,7 @@ import org.tianocore.PcdBuildDefinitionDocument; import org.tianocore.ModuleSADocument;
import org.tianocore.PcdBuildDefinitionDocument.PcdBuildDefinition;
import org.tianocore.build.autogen.CommonDefinition;
+import org.tianocore.build.fpd.FpdParserTask;
import org.tianocore.build.global.GlobalData;
import org.tianocore.build.id.FpdModuleIdentification;
import org.tianocore.build.pcd.action.ActionMessage;
@@ -2768,11 +2769,14 @@ public class CollectPCDAction { **/
public static void main(String argv[]) throws EntityException {
CollectPCDAction ca = new CollectPCDAction();
- ca.setWorkspacePath("m:/tianocore/edk2");
- ca.setFPDFilePath("m:/tianocore/edk2/EdkNt32Pkg/Nt32.fpd");
+ ca.setWorkspacePath("f:/tianocore/edk2");
+ ca.setFPDFilePath("f:/tianocore/edk2/EdkNt32Pkg/Nt32.fpd");
ca.setActionMessageLevel(ActionMessage.MAX_MESSAGE_LEVEL);
-// GlobalData.initInfo("Tools" + File.separator + "Conf" + File.separator + "FrameworkDatabase.db",
-// "m:/tianocore/edk2");
-// ca.execute();
+ GlobalData.initInfo("Tools" + File.separator + "Conf" + File.separator + "FrameworkDatabase.db",
+ "f:/tianocore/edk2",
+ "tools_def.txt");
+ FpdParserTask fpt = new FpdParserTask();
+ fpt.parseFpdFile(new File("f:/tianocore/edk2/EdkNt32Pkg/Nt32.fpd"));
+ ca.execute();
}
}
|