Add Package-Guid Map.
[mirror_edk2.git] / Tools / Java / Source / MigrationTools / org / tianocore / migration / MsaWriter.java
index af8646f792d0de4b946f7d3a7ffe22021da535c2..a8e26c573f590814dbfd06a0639dd4e768ddcf76 100644 (file)
@@ -120,9 +120,13 @@ public class MsaWriter {
         md.setSupportedArchitectures(arch);\r
         md.setBinaryModule(false);\r
         md.setOutputFileBasename(mi.modulename);\r
         md.setSupportedArchitectures(arch);\r
         md.setBinaryModule(false);\r
         md.setOutputFileBasename(mi.modulename);\r
-        \r
-        pd.addNewPackage().setPackageGuid("5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec");\r
-        pd.addNewPackage().setPackageGuid("68169ab0-d41b-4009-9060-292c253ac43d");\r
+        //\r
+        // For now, simply add all package guids in the database. \r
+        // \r
+        it = MigrationTool.db.dumpAllPkgGuid();\r
+        while (it.hasNext()) {\r
+            pd.addNewPackage().setPackageGuid(it.next());\r
+        }\r
         externs.addNewSpecification().setStringValue("EFI_SPECIFICATION_VERSION 0x00020000");\r
         externs.addNewSpecification().setStringValue("EDK_RELEASE_VERSION 0x00020000");\r
         if (mi.entrypoint != null) {\r
         externs.addNewSpecification().setStringValue("EFI_SPECIFICATION_VERSION 0x00020000");\r
         externs.addNewSpecification().setStringValue("EDK_RELEASE_VERSION 0x00020000");\r
         if (mi.entrypoint != null) {\r