/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Xml/ |
D | XmlParser.py | 133 for Item in self.DistP.Tools.GetFileList(): 135 CheckDict = {'FileName':Item.GetURI(), } 150 for Item in self.DistP.MiscellaneousFiles.GetFileList(): 152 CheckDict = {'FileName':Item.GetURI(), } 158 for Item in self.DistP.UserExtensions: 160 CheckDict = {'UserId':Item.GetUserID(), } 182 for Item in XmlList(self.Pkg, '/DistributionPackage/PackageSurfaceArea'): 184 Package = Psa.FromXml(Item, 'PackageSurfaceArea') 192 for Item in XmlList(self.Pkg, '/DistributionPackage/ModuleSurfaceArea'): 194 Module = Msa.FromXml(Item, 'ModuleSurfaceArea', True) [all …]
|
D | ModuleSurfaceAreaXml.py | 80 def FromXml(self, Item, Key): argument 86 for SubItem in XmlList(Item, '%s/Filename' % Key): 97 for AsBuiltItem in XmlList(Item, '%s/AsBuilt' % Key): 113 for SubItem in XmlList(Item, '%s/AsBuilt/LibraryInstances/GUID' % Key): 120 if XmlList(Item, '%s/AsBuilt/LibraryInstances' % Key) and not LibraryList: 124 for SubItem in XmlList(Item, '%s/AsBuilt/BuildFlags' % Key): 173 for Item in BuildFlag.GetAsBuildList(): 175 Elem = CreateXmlElement('BuildFlags', ''.join(Item), [], []) 188 for Item in self.FileNames: 189 Str = Str + '\n\t' + str(Item) [all …]
|
D | PackageSurfaceAreaXml.py | 49 def FromXml(self, Item, Key): argument 50 self.HeaderFile = XmlElement(Item, '%s/HeaderFile' % Key) 51 for HelpTextItem in XmlList(Item, '%s/HelpText' % Key): 75 for Item in self.HelpText: 76 Str = Str + "\n\t" + str(Item) 87 def FromXml(self, Item, Key): argument 88 self.HeaderFile = XmlElement(Item, '%s/HeaderFile' % Key) 89 self.CommonDefines.FromXml(XmlNode(Item, '%s/HeaderFile' % Key), 'HeaderFile') 90 for HelpTextItem in XmlList(Item, '%s/HelpText' % Key): 113 for Item in PackageIncludeHeader.GetHelpTextList(): [all …]
|
D | PcdXml.py | 53 def FromXml(self, Item, Key): argument 54 self.ValidValueList = XmlElement(Item, '%s/ValidValueList' % Key) 56 XmlAttribute(XmlNode(Item, '%s/ValidValueList' % Key), 'Lang') 57 …self.ValidValueRange = self.TransferValidEpxr2ValidRange(XmlElement(Item, '%s/ValidValueRange' % K… 58 self.Expression = XmlElement(Item, '%s/Expression' % Key) 59 self.ErrorNumber = XmlElement(Item, '%s/ErrorNumber' % Key) 60 for ErrMsg in XmlList(Item, '%s/ErrorMessage' % Key): 98 for Item in PcdError.GetErrorMessageList(): 100 CreateXmlElement('ErrorMessage', Item[1], [], [['Lang', Item[0]]]) 279 def FromXml(self, Item, Key): argument [all …]
|
D | CommonXml.py | 55 def FromXml(self, Item, Key): argument 56 self.GUID = XmlElement(Item, '%s/GUID' % Key) 57 self.Version = XmlAttribute(XmlNode(Item, '%s/GUID' % Key), 'Version') 89 def FromXml(self, Item, Key): argument 92 self.Usage = XmlAttribute(Item, 'Usage') 94 …[Arch for Arch in GetSplitValueList(XmlAttribute(Item, 'SupArchList'), DataType.TAB_SPACE_SPLIT) i… 96 …[Mod for Mod in GetSplitValueList(XmlAttribute(Item, 'SupModList'), DataType.TAB_SPACE_SPLIT) if M… 97 self.FeatureFlag = ConvertNOTEQToNE(XmlAttribute(Item, 'FeatureFlag')) 114 def FromXml(self, Item, Key): argument 117 self.Prompt = XmlElement2(Item, 'Prompt') [all …]
|
D | GuidProtocolPpiXml.py | 60 def FromXml(self, Item, Key): argument 61 self.UiName = XmlAttribute(XmlNode(Item, '%s' % Key), 'UiName') 62 self.GuidType = XmlAttribute(XmlNode(Item, '%s' % Key), 'GuidType') 63 self.Notify = XmlAttribute(XmlNode(Item, '%s' % Key), 'Notify') 64 self.CName = XmlElement(Item, '%s/CName' % Key) 65 self.GuidValue = XmlElement(Item, '%s/GuidValue' % Key) 66 self.VariableName = XmlElement(Item, '%s/VariableName' % Key) 67 self.CommonDefines.FromXml(XmlNode(Item, '%s' % Key), Key) 68 for HelpTextItem in XmlList(Item, '%s/HelpText' % Key): 99 for Item in GuidProtocolPpi.GetHelpTextList(): [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Object/Parser/ |
D | InfSoucesObject.py | 36 def GenSourceInstance(Item, CurrentLineOfItem, ItemObj): argument 40 if len(Item) < 6 and len(Item) >= 1: 44 if len(Item) == 5: 48 if Item[4].strip() == '': 58 FeatureFlagRtv = IsValidFeatureFlagExp(Item[4].strip()) 66 ItemObj.SetFeatureFlagExp(Item[4]) 67 if len(Item) >= 4: 68 if Item[3].strip() == '': 69 ItemObj.SetToolCode(Item[3]) 73 ST.ERR_INF_PARSER_TOOLCODE_NOT_PERMITTED%(Item[2]), [all …]
|
D | InfProtocolObject.py | 210 for Item in ProtocolContent: 215 if len(Item) == 3: 216 CommentsList = Item[1] 217 CurrentLineOfItem = Item[2] 219 Item = Item[0] 221 if len(Item) >= 1 and len(Item) <= 2: 225 if not IsValidCVariableName(Item[0]): 226 ErrorInInf(ST.ERR_INF_PARSER_INVALID_CNAME%(Item[0]), 228 if (Item[0] != ''): 229 InfProtocolItemObj.SetName(Item[0]) [all …]
|
D | InfPpiObject.py | 220 for Item in PpiList: 225 if len(Item) == 3: 226 CommentsList = Item[1] 227 CurrentLineOfItem = Item[2] 228 Item = Item[0] 230 if len(Item) >= 1 and len(Item) <= 2: 234 if not IsValidCVariableName(Item[0]): 237 ST.ERR_INF_PARSER_INVALID_CNAME%(Item[0]), 241 if (Item[0] != ''): 242 InfPpiItemObj.SetName(Item[0]) [all …]
|
D | InfGuidObject.py | 244 for Item in GuidList: 249 if len(Item) == 3: 250 CommentsList = Item[1] 251 CurrentLineOfItem = Item[2] 252 Item = Item[0] 254 if len(Item) >= 1 and len(Item) <= 2: 258 if not IsValidCVariableName(Item[0]): 261 ST.ERR_INF_PARSER_INVALID_CNAME%(Item[0]), 265 if (Item[0] != ''): 266 InfGuidItemObj.SetName(Item[0]) [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/ |
D | EdkIIWorkspaceBuild.py | 82 for Item in self.SkuInfoList.values(): 83 Rtn = Rtn + 'SkuId=' + Item.SkuId + ', ' + 'SkuIdName=' + Item.SkuIdName 483 for Item in Platform.Header[Arch].SupArchList: 484 Tmp.add(Item) 488 for Item in Platform.Header[Arch].BuildTargets: 489 Tmp.add(Item) 498 for Item in Platform.LibraryClasses.LibraryList: 499 for Arch in Item.SupArchList: 500 self.AddToInfDatabase(Item.FilePath) 502 for Item in Platform.Libraries.LibraryList: [all …]
|
D | Parsing.py | 48 for Item in RecordSets[Key]: 49 Item[0] = ReplaceMacro(Item[0], Macros) 139 for Item in Items: 140 RetVal.append(Item) 252 def GetLibraryClass(Item, ContainerFile, WorkspaceDir, LineNo = -1): argument 253 List = GetSplitValueList(Item[0]) 256 …RaiseParserError(Item[0], 'LibraryClasses', ContainerFile, '<LibraryClassKeyWord>|<LibraryInstance… 258 CheckFileType(List[1], '.Inf', ContainerFile, 'library class instance', Item[0], LineNo) 259 CheckFileExist(WorkspaceDir, List[1], ContainerFile, 'LibraryClasses', Item[0], LineNo) 260 if Item[1] != '': [all …]
|
/device/linaro/bootloader/edk2/IntelFsp2Pkg/Tools/ |
D | GenCfgOpt.py | 727 for Item in self._CfgItemList: 728 if len(Item['subreg']) == 0: 731 if Item['value'][0] == '{': 732 binlist = Item['value'][1:-1].split(',') 741 if Item['value'].startswith('0x'): 742 value = int(Item['value'], 16) 744 value = int(Item['value']) 746 while idx < Item['length']: 750 for SubItem in Item['subreg']: 792 for Item in self._CfgItemList: [all …]
|
/device/linaro/bootloader/edk2/IntelFspPkg/Tools/ |
D | GenCfgOpt.py | 692 for Item in self._CfgItemList: 693 if len(Item['subreg']) == 0: 696 if Item['value'][0] == '{': 697 binlist = Item['value'][1:-1].split(',') 706 if Item['value'].startswith('0x'): 707 value = int(Item['value'], 16) 709 value = int(Item['value']) 711 while idx < Item['length']: 715 for SubItem in Item['subreg']: 763 for Item in self._CfgItemList: [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/UnitTest/ |
D | InfBinarySectionTest.py | 261 for Item in SectionString: 262 ValueList = Item[0].split('|') 277 CurrentLine.SetLineString(Item[0]) 278 CurrentLine.SetLineNo(Item[1]) 308 for Item in UiStringList: 309 Ui = PrepareTest(Item) 310 if Item == SectionStringsUiItem4 or Item == SectionStringsUiItem5: 333 for Item in VerStringList: 334 Ver = PrepareTest(Item) 335 if Item == SectionStringsVerItem1 or \ [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Ecc/ |
D | Exception.py | 27 def FromXml(self, Item, Key): argument 28 self.KeyWord = XmlElement(Item, '%s/KeyWord' % Key) 29 self.ErrorID = XmlElement(Item, '%s/ErrorID' % Key) 30 self.FilePath = os.path.normpath(XmlElement(Item, '%s/FilePath' % Key)) 42 for Item in XmlList(XmlContent, '/ExceptionList/Exception'): 44 Exp.FromXml(Item, 'Exception') 49 for Item in self.List: 51 RtnList.append((Item.ErrorID, Item.KeyWord)) 58 for Item in self.List: 59 RtnStr = RtnStr + str(Item) + '\n'
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/PomAdapter/ |
D | DecPomAlignment.py | 201 for Item in UEList: 202 if not Item.UserString: 205 UserId = Item.UserId 209 Identifier = Item.IdString 216 self.GenMiscFiles(Item.UserString) 218 UserExtension.SetStatement(Item.UserString) 220 Item.ArchAndModuleType 272 for Item in DefObj.GetDefines(): 279 if Item.Key in SkipItemList: 281 DefinesDict['%s = %s' % (Item.Key, Item.Value)] = TAB_ARCH_COMMON [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Parser/ |
D | InfLibrarySectionParser.py | 89 for Item in LibHeaderComments: 90 LineCommentContent += Item[0] + DT.END_OF_LINE 139 for Item in self.LastSectionHeaderContent: 140 if (Item[1], Item[2]) not in KeyList: 141 KeyList.append((Item[1], Item[2])) 148 Line=Item[3]) 193 Item = ['', '', ''] 194 for Item in self.LastSectionHeaderContent: 195 if (Item[1], Item[2]) not in KeyList: 196 KeyList.append((Item[1], Item[2])) [all …]
|
D | InfBinarySectionParser.py | 105 for Item in HeaderComments: 106 LineCommentContent += Item[0] + DT.END_OF_LINE 157 for Item in TokenList: 158 NewValueList.append(Item) 174 for Item in TokenList: 175 NewValueList.append(Item) 192 for Item in TokenList: 193 NewValueList.append(Item) 217 for Item in self.LastSectionHeaderContent: 218 if Item[1] not in ArchList: [all …]
|
D | InfPcdSectionParser.py | 51 for Item in self.LastSectionHeaderContent: 52 if (Item[0], Item[1], Item[3]) not in KeysList: 53 KeysList.append((Item[0], Item[1], Item[3])) 54 LineIndex = Item[3] 56 if (Item[0].upper() == DT.TAB_INF_FIXED_PCD.upper() or \ 57 Item[0].upper() == DT.TAB_INF_FEATURE_PCD.upper() or \ 58 Item[0].upper() == DT.TAB_INF_PCD.upper()) and GlobalData.gIS_BINARY_INF: 59 … Logger.Error('InfParser', FORMAT_INVALID, ST.ERR_ASBUILD_PCD_SECTION_TYPE%("\"" + Item[0] + "\""),
|
D | InfDepexSectionParser.py | 80 for Item in self.LastSectionHeaderContent: 81 LastItem = Item 82 if (Item[1], Item[2], Item[3]) not in KeyList: 83 KeyList.append((Item[1], Item[2], Item[3]))
|
D | InfGuidPpiProtocolSectionParser.py | 110 for Item in self.LastSectionHeaderContent: 111 LineIndex = Item[3] 112 if Item[1] not in ArchList: 113 ArchList.append(Item[1]) 195 for Item in self.LastSectionHeaderContent: 196 LineIndex = Item[3] 197 if Item[1] not in ArchList: 198 ArchList.append(Item[1]) 232 for Item in self.LastSectionHeaderContent: 233 UserId = Item[1] [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Workspace/ |
D | WorkspaceCommon.py | 171 for Item in LibraryList: 172 if Item not in Constructor: 175 for Node in ConsumedByList[Item]: 179 ConsumedByList[Item].remove(Node) 181 if ConsumedByList[Item] == []: 183 Q.insert(0, Item) 197 for Item in LibraryList: 198 if Node not in ConsumedByList[Item]: 201 ConsumedByList[Item].remove(Node) 203 if ConsumedByList[Item] != []: [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/ |
D | Parsing.py | 80 def GetLibraryClass(Item, ContainerFile, WorkspaceDir, LineNo= -1): argument 81 List = GetSplitValueList(Item[0]) 84 RaiseParserError(Item[0], 'LibraryClasses', ContainerFile, \ 88 'library class instance', Item[0], LineNo) 90 'LibraryClasses', Item[0], LineNo) 91 if Item[1] != '': 92 SupMod = Item[1] 105 def GetLibraryClassOfInf(Item, ContainerFile, WorkspaceDir, LineNo= -1): argument 106 ItemList = GetSplitValueList((Item[0] + DataType.TAB_VALUE_SPLIT * 2)) 111 (Item[0], 'LibraryClasses', ContainerFile, \ [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Rsa2048Sha256Sign/ |
D | Rsa2048Sha256GenerateKeys.py | 91 for Item in args.OutputFile: 95 args.PemFileName.append(Item.name) 96 Item.close() 101 …Process = subprocess.Popen('%s genrsa -out %s 2048' % (OpenSslCommand, Item.name), stdout=subproce… 111 for Item in args.InputFile: 115 args.PemFileName.append(Item.name) 116 Item.close() 119 for Item in args.PemFileName: 123 …Process = subprocess.Popen('%s rsa -in %s -modulus -noout' % (OpenSslCommand, Item), stdout=subpro… 155 for Item in PublicKeyHash: [all …]
|