return PackageList\r
\r
## Summarize all platforms in the database\r
- def _GetPlatformList(self):\r
- PlatformList = []\r
+ def PlatformList(self):\r
+ RetVal = []\r
for PlatformFile in self.TblFile.GetFileList(MODEL_FILE_DSC):\r
try:\r
- Platform = self.BuildObject[PathClass(PlatformFile), TAB_COMMON]\r
+ RetVal.append(self.BuildObject[PathClass(PlatformFile), TAB_COMMON])\r
except:\r
- Platform = None\r
- if Platform is not None:\r
- PlatformList.append(Platform)\r
- return PlatformList\r
+ pass\r
+ return RetVal\r
\r
- def _MapPlatform(self, Dscfile):\r
+ def MapPlatform(self, Dscfile):\r
Platform = self.BuildObject[PathClass(Dscfile), TAB_COMMON]\r
if Platform is None:\r
EdkLogger.error('build', PARSER_ERROR, "Failed to parser DSC file: %s" % Dscfile)\r
return Platform\r
\r
- PlatformList = property(_GetPlatformList)\r
-\r
##\r
#\r
# This acts like the main() function for the script, unless it is 'import'ed into another\r