Commented out the unnecessary code to override the PCD type with type in DSC file...
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 6 Dec 2007 09:44:05 +0000 (09:44 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 6 Dec 2007 09:44:05 +0000 (09:44 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@908 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/AutoGen/GenC.py

index 392d2fa..fba6b21 100644 (file)
@@ -926,10 +926,10 @@ def CreateLibraryPcdCode(Info, AutoGenC, AutoGenH, Pcd):
     AutoGenH.Append('#define _PCD_TOKEN_%s  %d\n' % (TokenCName, TokenNumber))\r
 \r
     PcdItemType = Pcd.Type\r
-    if PcdItemType in gDynamicPcd:\r
-        PcdItemType = TAB_PCDS_FIXED_AT_BUILD\r
-        if (TokenCName, TokenSpaceGuidCName) in Info.PlatformInfo.Platform.Pcds:\r
-            PcdItemType  = Info.PlatformInfo.Platform.Pcds[TokenCName, TokenSpaceGuidCName].Type\r
+    #if PcdItemType in gDynamicPcd:\r
+    #    PcdItemType = TAB_PCDS_FIXED_AT_BUILD\r
+    #    if (TokenCName, TokenSpaceGuidCName) in Info.PlatformInfo.Platform.Pcds:\r
+    #        PcdItemType  = Info.PlatformInfo.Platform.Pcds[TokenCName, TokenSpaceGuidCName].Type\r
     if PcdItemType in gDynamicExPcd:\r
         PcdTokenName = '_PCD_TOKEN_' + TokenCName\r
         AutoGenH.Append('#define %s  LibPcdGetEx%s(&%s, %s)\n' % (GetModeName, DatumSizeLib, TokenSpaceGuidCName, PcdTokenName))\r