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

index 80688ef..43866a5 100644 (file)
@@ -146,7 +146,7 @@ class ItemBuild(object):
         self.ModuleDatabase          = {}        #{ [InfFileName] : ModuleBuildClassObject, ...}\r
         \r
 class WorkspaceBuild(object):\r
-    def __init__(self):\r
+    def __init__(self, ActivePlatform = None):\r
         self.Workspace               = EdkIIWorkspace()\r
         self.PrintRunTime            = True\r
         self.PlatformBuild           = True\r
@@ -165,6 +165,9 @@ class WorkspaceBuild(object):
         self.TargetTxt.LoadTargetTxtFile(self.Workspace.WorkspaceFile('Conf/target.txt'))\r
         self.ToolDef.LoadToolDefFile(self.Workspace.WorkspaceFile('Conf/tools_def.txt'))\r
         \r
+        if ActivePlatform != None:\r
+            self.TargetTxt.TargetTxtDictionary[DataType.TAB_TAT_DEFINES_ACTIVE_PLATFORM][0] = ActivePlatform\r
+        \r
         #get active platform\r
         dscFileName = NormPath(self.TargetTxt.TargetTxtDictionary[DataType.TAB_TAT_DEFINES_ACTIVE_PLATFORM][0])\r
         file = self.Workspace.WorkspaceFile(dscFileName)\r