SectionData = []\r
SectionLine = ''\r
\r
+ # Get user extension TianoCore data\r
+ #\r
+ # @return: a list include some dictionary that key is section and value is a list contain all data.\r
+ def GetUserExtensionTianoCore(self):\r
+ UserExtensionTianoCore = []\r
+ if not self._FileSectionDataList:\r
+ return UserExtensionTianoCore\r
+ for SectionDataDict in self._FileSectionDataList:\r
+ for key in SectionDataDict.keys():\r
+ if key.lower().startswith("[userextensions") and key.lower().find('.tianocore.') > -1:\r
+ SectionLine = key.lstrip(TAB_SECTION_START).rstrip(TAB_SECTION_END)\r
+ SubSectionList = [SectionLine]\r
+ if str(SectionLine).find(TAB_COMMA_SPLIT) > -1:\r
+ SubSectionList = str(SectionLine).split(TAB_COMMA_SPLIT)\r
+ for SubSection in SubSectionList:\r
+ if SubSection.lower().find('.tianocore.') > -1:\r
+ UserExtensionTianoCore.append({SubSection: SectionDataDict[key]})\r
+ return UserExtensionTianoCore\r
\r
# Get depex expresion\r
#\r