git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@211 7335b...
authorhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 27 Jun 2007 05:21:53 +0000 (05:21 +0000)
committerhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 27 Jun 2007 05:21:53 +0000 (05:21 +0000)
Source/Python/EdkIIWorkspaceBuild.py

index 7e141c7..469f81a 100644 (file)
@@ -125,6 +125,7 @@ class PlatformBuildClassObject(object):
         self.Guid                    = ''\r
         self.Version                 = ''\r
         self.OutputDirectory         = ''\r
+        self.FlashDefinition         = ''\r
         \r
         self.Modules                 = []       #[ InfFileName, ... ]\r
         self.LibraryClasses          = {}       #{ (LibraryClassName, ModuleType) : LibraryClassInfFile }\r
@@ -218,6 +219,7 @@ class WorkspaceBuild(object):
                 pb.Guid = dscObj.Defines.DefinesDictionary[DataType.TAB_DSC_DEFINES_PLATFORM_GUID][0]\r
                 pb.Version = dscObj.Defines.DefinesDictionary[DataType.TAB_DSC_DEFINES_PLATFORM_VERSION][0]\r
                 pb.OutputDirectory = NormPath(dscObj.Defines.DefinesDictionary[DataType.TAB_DSC_DEFINES_OUTPUT_DIRECTORY][0])\r
+                pb.FlashDefinition = NormPath(dscObj.Defines.DefinesDictionary[DataType.TAB_DSC_DEFINES_FLASH_DEFINITION][0])\r
             \r
                 #Module\r
                 for index in range(len(dscObj.Contents[key].Components)):\r
@@ -566,6 +568,7 @@ if __name__ == '__main__':
             print 'Guid = ', p.Guid                     \r
             print 'Version = ', p.Version\r
             print 'OutputDirectory = ', p.OutputDirectory                \r
+            print 'FlashDefinition = ', p.FlashDefinition\r
             print 'Modules = ', p.Modules                \r
             print 'LibraryClasses = ', p.LibraryClasses \r
             print 'Pcds = ', p.Pcds                     \r