}\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
@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
//\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
//\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