]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/GenBuild/org/tianocore/build/pcd/action/PCDAutoGenAction.java
Change Workspace to X:
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / pcd / action / PCDAutoGenAction.java
index f3e5b17be8725a5820b9fbf5072dd62509126f29..63698b1473b0c8a8b1322b9b85dfb9669762d1e4 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 = "X:/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
+\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