]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/AutoGen/GenPcdDb.py
BaseTools: Replace PCD type strings with predefined constant
[mirror_edk2.git] / BaseTools / Source / Python / AutoGen / GenPcdDb.py
index e0d1918e98054277a1fccd2e04d2ae1ae3ab09e5..b48ddcd59ec8a89ba8c7b4bfe6a353712bf11b2d 100644 (file)
@@ -1217,7 +1217,7 @@ def CreatePcdDatabasePhaseSpecificAutoGen (Platform, DynamicPcdList, Phase):
         Pcd.InitString = 'UNINIT'\r
 \r
         if Pcd.DatumType == TAB_VOID:\r
-            if Pcd.Type not in ["DynamicVpd", "DynamicExVpd"]:\r
+            if Pcd.Type not in [TAB_PCDS_DYNAMIC_VPD, TAB_PCDS_DYNAMIC_EX_VPD]:\r
                 Pcd.TokenTypeList = ['PCD_TYPE_STRING']\r
             else:\r
                 Pcd.TokenTypeList = []\r