# This module contains the functionality to generate build report after\r
# build all target completes successfully.\r
#\r
-# Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
\r
## Import Modules\r
#\r
-import os\r
+import Common.LongFilePathOs as os\r
import re\r
import platform\r
import textwrap\r
from Common.DataType import TAB_BRG_PCD\r
from Common.DataType import TAB_BRG_LIBRARY\r
from Common.DataType import TAB_BACK_SLASH\r
+from Common.LongFilePathSupport import OpenLongFilePath as open\r
+from Common.MultipleWorkspace import MultipleWorkspace as mws\r
\r
## Pattern to extract contents in EDK DXS files\r
gDxsDependencyPattern = re.compile(r"DEPENDENCY_START(.+)DEPENDENCY_END", re.DOTALL)\r
DecDefaultValue = Package.Pcds[TokenCName, TokenSpaceGuidCName, DecType].DefaultValue\r
PlatformPcds[(TokenCName, TokenSpaceGuidCName)] = DecDefaultValue\r
#\r
- # Collect PCDs defined in DSC common section\r
+ # Collect PCDs defined in DSC file\r
#\r
- for Platform in Wa.BuildDatabase.WorkspaceDb.PlatformList:\r
+ for arch in Wa.ArchList:\r
+ Platform = Wa.BuildDatabase[Wa.MetaFile, arch]\r
for (TokenCName, TokenSpaceGuidCName) in Platform.Pcds:\r
DscDefaultValue = Platform.Pcds[(TokenCName, TokenSpaceGuidCName)].DefaultValue\r
PlatformPcds[(TokenCName, TokenSpaceGuidCName)] = DscDefaultValue\r
for Pa in Wa.AutoGenObjectList:\r
for ModuleKey in Pa.Platform.Modules:\r
M = Pa.Platform.Modules[ModuleKey].M\r
- InfPath = os.path.join(Wa.WorkspaceDir, M.MetaFile.File)\r
+ InfPath = mws.join(Wa.WorkspaceDir, M.MetaFile.File)\r
self._GuidsDb[M.Guid.upper()] = "%s (%s)" % (M.Module.BaseName, InfPath)\r
\r
#\r
Guid = GuidStructureByteArrayToGuidString(GuidValue).upper()\r
for Section in Ffs.SectionList:\r
try:\r
- ModuleSectFile = os.path.join(Wa.WorkspaceDir, Section.SectFileName)\r
+ ModuleSectFile = mws.join(Wa.WorkspaceDir, Section.SectFileName)\r
self._GuidsDb[Guid] = ModuleSectFile\r
except AttributeError:\r
pass\r