Searched refs:DT (Results 1 - 25 of 28) sorted by relevance

12

/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Parser/
H A DInfParserMisc.py25 from Library import DataType as DT namespace
41 DT.TAB_UNKNOWN.upper() : DT.MODEL_UNKNOWN,
42 DT.TAB_HEADER.upper() : DT.MODEL_META_DATA_FILE_HEADER,
43 DT.TAB_INF_DEFINES.upper() : DT.MODEL_META_DATA_DEFINE,
44 DT.TAB_BUILD_OPTIONS.upper() : DT.MODEL_META_DATA_BUILD_OPTION,
45 DT
[all...]
H A DInfBinarySectionParser.py25 from Library import DataType as DT namespace
79 if BinLineContent.strip().startswith(DT.TAB_COMMENT_SPLIT):
85 AllSectionContent += BinLineContent + DT.END_OF_LINE
96 AllSectionContent += BinLineContent + DT.END_OF_LINE
106 LineCommentContent += Item[0] + DT.END_OF_LINE
112 if BinLineContent.find(DT.TAB_COMMENT_SPLIT) > -1:
113 TailComments = BinLineContent[BinLineContent.find(DT.TAB_COMMENT_SPLIT):]
114 BinLineContent = BinLineContent[:BinLineContent.find(DT.TAB_COMMENT_SPLIT)]
124 DT.MODEL_EFI_BINARY_FILE,
140 AllSectionContent += LineContent + DT
[all...]
H A DInfSourceSectionParser.py25 from Library import DataType as DT namespace
53 if SrcLineContent.strip().startswith(DT.TAB_COMMENT_SPLIT):
59 SectionContent += SrcLineContent + DT.END_OF_LINE
71 SectionContent += SrcLineContent + DT.END_OF_LINE
80 LineCommentContent += Item[0] + DT.END_OF_LINE
86 if SrcLineContent.find(DT.TAB_COMMENT_SPLIT) > -1:
87 TailComments = SrcLineContent[SrcLineContent.find(DT.TAB_COMMENT_SPLIT):]
88 SrcLineContent = SrcLineContent[:SrcLineContent.find(DT.TAB_COMMENT_SPLIT)]
98 DT.MODEL_EFI_SOURCE_FILE,
114 TokenList = GetSplitValueList(SrcLineContent, DT
[all...]
H A DInfParser.py33 from Library import DataType as DT namespace
92 self.SupArchList = DT.ARCH_LIST
123 CurrentSection = DT.MODEL_UNKNOWN
201 if Line.startswith(DT.TAB_SPECIAL_COMMENT) and \
202 (Line.find(DT.TAB_HEADER_COMMENT) > -1) and \
205 CurrentSection = DT.MODEL_META_DATA_FILE_HEADER
217 if (Line.startswith(DT.TAB_COMMENT_SPLIT) and CurrentSection == DT.MODEL_META_DATA_FILE_HEADER) and\
218 HeaderCommentStart and not Line.startswith(DT.TAB_SPECIAL_COMMENT) and not\
225 if (Line.startswith(DT
[all...]
H A DInfPcdSectionParser.py25 from Library import DataType as DT namespace
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:
77 if PcdLineContent.strip().startswith(DT.TAB_COMMENT_SPLIT):
84 if PcdLineContent.find(DT.TAB_COMMENT_SPLIT) > -1:
86 PcdLineContent[PcdLineContent.find(DT.TAB_COMMENT_SPLIT):],
88 PcdLineContent = PcdLineContent[:PcdLineContent.find(DT.TAB_COMMENT_SPLIT)]
96 DT.MODEL_EFI_PCD,
137 if LineContent.startswith(DT
[all...]
H A DInfGuidPpiProtocolSectionParser.py25 from Library import DataType as DT namespace
58 if LineContent.strip().startswith(DT.TAB_COMMENT_SPLIT):
65 if LineContent.find(DT.TAB_COMMENT_SPLIT) > -1:
67 LineContent[LineContent.find(DT.TAB_COMMENT_SPLIT):],
70 LineContent[:LineContent.find(DT.TAB_COMMENT_SPLIT)]
78 DT.MODEL_EFI_GUID,
86 TokenList = GetSplitValueList(LineContent, DT.TAB_VALUE_SPLIT, 1)
145 if LineContent.strip().startswith(DT.TAB_COMMENT_SPLIT):
152 if LineContent.find(DT.TAB_COMMENT_SPLIT) > -1:
154 LineContent[LineContent.find(DT
[all...]
H A DInfDefineSectionParser.py23 from Library import DataType as DT namespace
45 TempArch = GetSplitValueList(LineContent, DT.TAB_EQUAL_SPLIT, 1)[1]
100 if LineContent.strip().startswith(DT.TAB_COMMENT_SPLIT):
106 SectionContent += LineContent + DT.END_OF_LINE
118 SectionContent += LineContent + DT.END_OF_LINE
127 LineCommentContent += Item[0] + DT.END_OF_LINE
133 if LineContent.find(DT.TAB_COMMENT_SPLIT) > -1:
134 TailComments = LineContent[LineContent.find(DT.TAB_COMMENT_SPLIT):]
135 LineContent = LineContent[:LineContent.find(DT.TAB_COMMENT_SPLIT)]
145 DT
[all...]
H A DInfPackageSectionParser.py25 from Library import DataType as DT namespace
58 if PkgLineContent.strip().startswith(DT.TAB_COMMENT_SPLIT):
83 LineCommentContent += Item[0] + DT.END_OF_LINE
89 if PkgLineContent.find(DT.TAB_COMMENT_SPLIT) > -1:
90 TailComments = PkgLineContent[PkgLineContent.find(DT.TAB_COMMENT_SPLIT):]
91 PkgLineContent = PkgLineContent[:PkgLineContent.find(DT.TAB_COMMENT_SPLIT)]
100 DT.MODEL_META_DATA_PACKAGE,
108 TokenList = GetSplitValueList(PkgLineContent, DT.TAB_VALUE_SPLIT, 1)
H A DInfSectionParser.py28 from Library import DataType as DT namespace
77 if not (ItemList[0].upper() == DT.TAB_LIBRARY_CLASSES.upper() or \
78 ItemList[0].upper() == DT.TAB_DEPEX.upper() or \
79 ItemList[0].upper() == DT.TAB_USER_EXTENSIONS.upper()):
94 if not ItemList[0].upper() == DT.TAB_USER_EXTENSIONS.upper() or ItemList[0].upper() == DT.TAB_DEPEX.upper():
99 if not ItemList[0].upper() == DT.TAB_USER_EXTENSIONS.upper():
297 _PcdNameList = [DT.TAB_INF_FIXED_PCD.upper(),
298 DT.TAB_INF_FEATURE_PCD.upper(),
299 DT
[all...]
H A DDecParser.py24 import Library.DataType as DT namespace
182 TokenList = GetSplitValueList(TokenList[1], DT.TAB_EQUAL_SPLIT, 1)
231 return Line[0] == DT.TAB_SECTION_START and Line[-1] == DT.TAB_SECTION_END
252 if Line[-1] != DT.TAB_SLASH:
265 if ProcessedLine[-1] == DT.TAB_SLASH:
269 if not Line or Line[-1] == DT.TAB_SLASH:
399 DT.TAB_DEC_DEFINES_DEC_SPECIFICATION : self._SetDecSpecification,
400 DT.TAB_DEC_DEFINES_PACKAGE_NAME : self._SetPackageName,
401 DT
[all...]
H A DInfLibrarySectionParser.py25 from Library import DataType as DT namespace
65 if LibLineContent.strip().startswith(DT.TAB_COMMENT_SPLIT):
90 LineCommentContent += Item[0] + DT.END_OF_LINE
96 if LibLineContent.find(DT.TAB_COMMENT_SPLIT) > -1:
97 LibTailComments = LibLineContent[LibLineContent.find(DT.TAB_COMMENT_SPLIT):]
98 LibLineContent = LibLineContent[:LibLineContent.find(DT.TAB_COMMENT_SPLIT)]
108 DT.MODEL_EFI_LIBRARY_CLASS,
116 TokenList = GetSplitValueList(LibLineContent, DT.TAB_VALUE_SPLIT, 1)
H A DInfDepexSectionParser.py25 from Library import DataType as DT namespace
51 if LineContent.strip().startswith(DT.TAB_COMMENT_SPLIT):
62 CommentCount = LineContent.find(DT.TAB_COMMENT_SPLIT)
72 TokenList = GetSplitValueList(LineContent, DT.TAB_COMMENT_SPLIT)
H A DInfBuildOptionSectionParser.py21 from Library import DataType as DT namespace
54 SectionContent += LineContent + DT.END_OF_LINE
59 if LineContent.strip().startswith(DT.TAB_COMMENT_SPLIT):
60 SectionContent += LineContent + DT.END_OF_LINE
66 if LineContent.find(DT.TAB_COMMENT_SPLIT) > -1:
67 TailComments = LineContent[LineContent.find(DT.TAB_COMMENT_SPLIT):]
68 LineContent = LineContent[:LineContent.find(DT.TAB_COMMENT_SPLIT)]
70 TokenList = GetSplitValueList(LineContent, DT.TAB_DEQUAL_SPLIT, 1)
78 TokenList = GetSplitValueList(LineContent, DT.TAB_EQUAL_SPLIT, 1)
107 SectionContent += ValueList[0] + EqualString + ValueList[1] + TailComments + DT
[all...]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Object/Parser/
H A DInfGuidObject.py24 from Library import DataType as DT namespace
124 DT.ALL_USAGE_TOKENS,
125 DT.GUID_TYPE_TOKENS,
131 if Count == len(CommentsList) and CommentItemUsage == CommentItemGuidType == DT.ITEM_UNDEFINED:
132 CommentItemHelpText = DT.END_OF_LINE
136 if CommentItemUsage == CommentItemGuidType == DT.ITEM_UNDEFINED:
143 if CommentItemUsage == CommentItemGuidType == DT.ITEM_UNDEFINED:
157 if CommentItemUsage == CommentItemGuidType == PreUsage == PreGuidType == DT.ITEM_UNDEFINED:
158 CommentItemHelpText = PreHelpText + DT.END_OF_LINE + CommentItemHelpText
166 if CommentItemHelpText == '' or CommentItemHelpText.endswith(DT
[all...]
H A DInfPpiObject.py24 from Library import DataType as DT namespace
43 DT.ALL_USAGE_TOKENS,
44 DT.PPI_NOTIFY_TOKENS,
56 if Count == len(CommentsList) and CommentItemUsage == CommentItemNotify == DT.ITEM_UNDEFINED:
57 CommentItemHelpText = DT.END_OF_LINE
63 if CommentItemUsage == CommentItemNotify == DT.ITEM_UNDEFINED:
74 if CommentItemUsage == CommentItemNotify == DT.ITEM_UNDEFINED:
91 if CommentItemUsage == CommentItemNotify == PreUsage == PreNotify == DT.ITEM_UNDEFINED:
92 CommentItemHelpText = PreHelpText + DT.END_OF_LINE + CommentItemHelpText
115 CommentItemIns.SetUsage(DT
[all...]
H A DInfProtocolObject.py27 from Library import DataType as DT namespace
44 DT.PROTOCOL_USAGE_TOKENS,
45 DT.PROTOCOL_NOTIFY_TOKENS,
54 if Count == len(CommentsList) and CommentItemUsage == CommentItemNotify == DT.ITEM_UNDEFINED:
55 CommentItemHelpText = DT.END_OF_LINE
59 if CommentItemUsage == CommentItemNotify == DT.ITEM_UNDEFINED:
67 if CommentItemUsage == CommentItemNotify == DT.ITEM_UNDEFINED:
81 if CommentItemUsage == CommentItemNotify == PreUsage == PreNotify == DT.ITEM_UNDEFINED:
82 CommentItemHelpText = PreHelpText + DT.END_OF_LINE + CommentItemHelpText
103 CommentItemIns.SetUsageItem(DT
[all...]
H A DInfDefineObject.py25 from Library import DataType as DT namespace
66 ErrorInInf(ST.ERR_INF_PARSER_DEFINE_ITEM_MORE_THAN_ONE_FOUND%(DT.TAB_INF_DEFINES_PCI_VENDOR_ID),
90 ErrorInInf(ST.ERR_INF_PARSER_DEFINE_ITEM_MORE_THAN_ONE_FOUND%(DT.TAB_INF_DEFINES_PCI_DEVICE_ID),
114 ErrorInInf(ST.ERR_INF_PARSER_DEFINE_ITEM_MORE_THAN_ONE_FOUND%(DT.TAB_INF_DEFINES_PCI_CLASS_CODE),
139 ErrorInInf(ST.ERR_INF_PARSER_DEFINE_ITEM_MORE_THAN_ONE_FOUND%(DT.TAB_INF_DEFINES_PCI_REVISION),
163 ErrorInInf(ST.ERR_INF_PARSER_DEFINE_ITEM_MORE_THAN_ONE_FOUND%(DT.TAB_INF_DEFINES_PCI_COMPRESS),
219 ErrorInInf(ST.ERR_INF_PARSER_DEFINE_ITEM_MORE_THAN_ONE_FOUND%(DT.TAB_INF_DEFINES_BASE_NAME),
248 %(DT.TAB_INF_DEFINES_FILE_GUID),
279 %(DT.TAB_INF_DEFINES_MODULE_TYPE),
313 ErrorInInf(ST.ERR_INF_PARSER_DEFINE_ITEM_MORE_THAN_ONE_FOUND%(DT
[all...]
H A DInfDepexObject.py19 from Library import DataType as DT namespace
116 if ModuleType in DT.VALID_DEPEX_MODULE_TYPE_LIST:
135 if LineContent.find(DT.TAB_COMMENT_SPLIT) > -1:
136 LineContent = LineContent[:LineContent.find(DT.TAB_COMMENT_SPLIT)]
138 DepexString = DepexString + LineContent + DT.END_OF_LINE
141 if DepexString.endswith(DT.END_OF_LINE):
151 HelpString = HelpString + HelpLine + DT.END_OF_LINE
152 if HelpString.endswith(DT.END_OF_LINE):
H A DInfPcdObject.py25 from Library import DataType as DT namespace
49 if PcdTypeItem1.upper != DT.TAB_INF_FEATURE_PCD.upper():
76 DT.ALL_USAGE_TOKENS,
84 CommentItemUsage = DT.USAGE_ITEM_CONSUMES
91 FFEHelpText = FFEHelpText + DT.END_OF_LINE + CommentItemHelpText
101 if Count == len(CommentList) and CommentItemUsage == DT.ITEM_UNDEFINED:
102 CommentItemHelpText = DT.END_OF_LINE
105 if CommentItemUsage == DT.ITEM_UNDEFINED:
113 if CommentItemUsage == DT.ITEM_UNDEFINED:
126 if CommentItemUsage == PreUsage == DT
[all...]
H A DInfMisc.py22 from Library import DataType as DT namespace
113 if Type == DT.TYPE_HOB_SECTION or \
114 Type == DT.TYPE_EVENT_SECTION or \
115 Type == DT.TYPE_BOOTMODE_SECTION:
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/PomAdapter/
H A DInfPomAlignmentMisc.py23 from Library import DataType as DT namespace
49 Name = DT.TAB_INF_DEFINES_EDK_RELEASE_VERSION
58 Name = DT.TAB_INF_DEFINES_SHADOW
67 Name = DT.TAB_INF_DEFINES_DPX_SOURCE
77 Name = DT.TAB_INF_DEFINES_PCI_VENDOR_ID
86 Name = DT.TAB_INF_DEFINES_PCI_DEVICE_ID
95 Name = DT.TAB_INF_DEFINES_PCI_CLASS_CODE
104 Name = DT.TAB_INF_DEFINES_PCI_REVISION
113 Name = DT.TAB_INF_DEFINES_PCI_COMPRESS
123 Name = DT
[all...]
H A DInfPomAlignment.py36 from Library import DataType as DT namespace
114 self._GenGuidProtocolPpis(DT.TAB_GUIDS)
115 self._GenGuidProtocolPpis(DT.TAB_PROTOCOLS)
116 self._GenGuidProtocolPpis(DT.TAB_PPIS)
304 Lang = DT.TAB_LANGUAGE_EN_X
306 Lang = DT.TAB_LANGUAGE_EN_US
336 Lib.SetUsage(DT.USAGE_ITEM_PRODUCES)
397 if Key == DT.TYPE_HOB_SECTION:
407 HelpTextObj.SetLang(DT.TAB_LANGUAGE_EN_X)
412 elif Key == DT
[all...]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/GenMetaFile/
H A DGenInfFile.py41 from Library import DataType as DT namespace
119 if UserExtension.GetUserID() == DT.TAB_BINARY_HEADER_USERID \
120 and UserExtension.GetIdentifier() == DT.TAB_BINARY_HEADER_IDENTIFIER:
141 DT.TAB_COMMENT_EDK1_SPLIT)
190 def GenModuleUNIEncodeFile(ModuleObject, UniFileHeader='', Encoding=DT.TAB_ENCODING_UTF16LE):
200 if Key == DT.TAB_LANGUAGE_EN_X:
206 if UserExtension.GetUserID() == DT.TAB_BINARY_HEADER_USERID \
207 and UserExtension.GetIdentifier() == DT.TAB_BINARY_HEADER_IDENTIFIER:
209 if Key == DT.TAB_LANGUAGE_EN_X:
215 if Key == DT
[all...]
H A DGenMetaFileMisc.py20 from Library import DataType as DT namespace
35 Statement = (u'%s ' % DT.TAB_INF_DEFINES_ENTRY_POINT).ljust(LeftOffset) + u'= %s' % EntryPoint
45 Statement = (u'%s ' % DT.TAB_INF_DEFINES_UNLOAD_IMAGE).ljust(LeftOffset) + u'= %s' % UnloadImage
56 Statement = (u'%s ' % DT.TAB_INF_DEFINES_CONSTRUCTOR).ljust(LeftOffset) + u'= %s' % Constructor
67 Statement = (u'%s ' % DT.TAB_INF_DEFINES_DESTRUCTOR).ljust(LeftOffset) + u'= %s' % Destructor
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/
H A DUniClassObject.py29 from Library import DataType as DT namespace
236 if not Value or Lang == DT.TAB_LANGUAGE_EN_X:
239 Lang = DT.TAB_LANGUAGE_EN_US
241 Lang = DT.TAB_LANGUAGE_EN_US
459 if Line.startswith(DT.TAB_COMMENT_EDK1_SPLIT) and (Line.find(DT.TAB_HEADER_COMMENT) > -1) \
462 if not Line.startswith(DT.TAB_COMMENT_EDK1_SPLIT) and HeaderStart and not HeaderEnd:
464 if Line.startswith(DT.TAB_COMMENT_EDK1_SPLIT) and HeaderStart and not HeaderEnd and FirstGenHeader:
618 if StrName and not StrName.split()[1].startswith(DT.TAB_STR_TOKENCNAME + DT
[all...]

Completed in 314 milliseconds

12