]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/GenBuild/org/tianocore/build/pcd/entity/MemoryDatabaseManager.java
Support putting unreference DYNAMIC_EX PCD into Pcd runtime database.
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / pcd / entity / MemoryDatabaseManager.java
index 0439c11d7ce60cde711b981ada79eb92871daba2..2e29106323e22d13798b59462021160ccb14029d 100644 (file)
@@ -197,11 +197,15 @@ public class MemoryDatabaseManager {
                 }\r
                 \r
                 if (!found) {\r
-                    //\r
-                    // We only support Dynamice(EX) type for PEI and DXE phase.\r
-                    // If it is not referenced in either PEI or DXE, throw exception now.\r
-                    //\r
-                    throw new EntityException("Dynamic(EX) PCD Entries are referenced in module that is not in PEI phase nor in DXE phase.");\r
+                    if (token.isDynamicPCD && token.consumers.size() == 0) {\r
+                        dxe.add(token);\r
+                    } else {\r
+                        //\r
+                        // We only support Dynamice(EX) type for PEI and DXE phase.\r
+                        // If it is not referenced in either PEI or DXE, throw exception now.\r
+                        //\r
+                        throw new EntityException("Dynamic(EX) PCD Entries are referenced in module that is not in PEI phase nor in DXE phase.");\r
+                    }\r
                 }\r
             }\r
         }\r