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
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