Added "DEFAULT" SkuId to dynamic PCD not found in DSC file
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 7 Dec 2007 03:35:55 +0000 (03:35 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 7 Dec 2007 03:35:55 +0000 (03:35 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@910 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Common/EdkIIWorkspaceBuild.py

index e5192f5..9037201 100755 (executable)
@@ -1382,9 +1382,14 @@ class WorkspaceBuild(object):
         # Not found in any platform and fdf\r
         #\r
         if not IsFoundInDsc:\r
+            if NewType.startswith("Dynamic") and SkuInfoList == {}:\r
+                SkuIds = self.Build[Arch].PlatformDatabase.values()[0].SkuIds\r
+                SkuInfoList['DEFAULT'] = SkuInfoClass(SkuIdName='DEFAULT', SkuId=SkuIds['DEFAULT'], DefaultValue=0)\r
             Value = Pcd.DefaultValue\r
             Token = Pcd.TokenValue\r
             self.UnFoundPcdInDsc[(Guid, Name, NewType, Arch)] = FoundInDecFile\r
+        #elif Type != '' and NewType.startswith("Dynamic"):\r
+        #    NewType = Pcd.Type\r
         DatumType = Pcd.DatumType\r
 \r
         return PcdClassObject(Name, Guid, NewType, DatumType, Value, Token, MaxDatumSize, SkuInfoList, IsOverrided)\r