]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/GenBuild/org/tianocore/build/pcd/action/PCDAutoGenAction.java
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@250 6f19259b...
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / pcd / action / PCDAutoGenAction.java
index f3e5b17be8725a5820b9fbf5072dd62509126f29..3d1f1baf63595cdef1c6be28648cd3073c5270e6 100644 (file)
@@ -190,6 +190,14 @@ public class PCDAutoGenAction extends BuildAction {
             }\r
         }\r
 \r
+                               if (moduleName.equalsIgnoreCase("PcdPeim")) {\r
+                                               hAutoGenString += dbManager.PcdPeimHString;\r
+                                               cAutoGenString += dbManager.PcdPeimCString;\r
+                               } else if (moduleName.equalsIgnoreCase("PcdDxe")) {\r
+                                               hAutoGenString += dbManager.PcdDxeHString;\r
+                                               cAutoGenString += dbManager.PcdDxeCString;\r
+                               }\r
+\r
         ActionMessage.debug(this,\r
                             "Module " + moduleName + "'s PCD header file:\r\n" + hAutoGenString + "\r\n"\r
                            );\r
@@ -518,7 +526,9 @@ public class PCDAutoGenAction extends BuildAction {
       @param argv  paramter from command line\r
     **/\r
     public static void main(String argv[]) {\r
-        String logFilePath = "M:/tianocore/edk2/trunk/edk2/EdkNt32Pkg/Nt32.fpd";\r
+\r
+                               String WorkSpace = "G:/edk2";\r
+        String logFilePath = WorkSpace  + "/EdkNt32Pkg/Nt32.fpd";\r
 \r
         //\r
         // At first, CollectPCDAction should be invoked to collect\r
@@ -526,12 +536,12 @@ public class PCDAutoGenAction extends BuildAction {
         //\r
         CollectPCDAction collectionAction = new CollectPCDAction();\r
         GlobalData.initInfo("Tools" + File.separator + "Conf" + File.separator + "FrameworkDatabase.db",\r
-                            "M:/tianocore/edk2/trunk/edk2");\r
+                            WorkSpace);\r
 \r
         GlobalData.getPCDMemoryDBManager().setLogFileName(logFilePath + ".PCDMemroyDatabaseLog.txt");\r
 \r
         try {\r
-            collectionAction.perform("M:/tianocore/edk2/trunk/edk2"\r
+            collectionAction.perform(WorkSpace\r
                                      logFilePath,\r
                                      ActionMessage.MAX_MESSAGE_LEVEL);\r
         } catch(Exception e) {\r
@@ -541,10 +551,16 @@ public class PCDAutoGenAction extends BuildAction {
         //\r
         // Then execute the PCDAuotoGenAction to get generated Autogen.h and Autogen.c\r
         //\r
-        PCDAutoGenAction autogenAction = new PCDAutoGenAction("PcdEmulator",\r
-                                                              true\r
+        PCDAutoGenAction autogenAction = new PCDAutoGenAction("PcdDxe",\r
+                                                                                                                                                                                                                                                       false\r
                                                               );\r
-        autogenAction.execute();\r
+                               autogenAction.execute();\r
+\r
+                               System.out.println(autogenAction.OutputH());\r
+                               System.out.println("WQWQWQWQWQ");\r
+                               System.out.println(autogenAction.OutputC());\r
+\r
+\r
         System.out.println (autogenAction.hAutoGenString);\r
         System.out.println (autogenAction.cAutoGenString);\r
 \r