EdkLogger.error("build", ATTRIBUTE_NOT_AVAILABLE, "No PACKAGE_NAME", File=self.MetaFile)\r
return self._PackageName\r
\r
## Retrieve file guid\r
def _GetFileGuid(self):\r
EdkLogger.error("build", ATTRIBUTE_NOT_AVAILABLE, "No PACKAGE_NAME", File=self.MetaFile)\r
return self._PackageName\r
\r
## Retrieve file guid\r
def _GetFileGuid(self):\r
EdkLogger.error("build", ATTRIBUTE_NOT_AVAILABLE, "No PACKAGE_GUID", File=self.MetaFile)\r
return self._Guid\r
\r
## Retrieve package version\r
def _GetVersion(self):\r
EdkLogger.error("build", ATTRIBUTE_NOT_AVAILABLE, "No PACKAGE_GUID", File=self.MetaFile)\r
return self._Guid\r
\r
## Retrieve package version\r
def _GetVersion(self):\r
#\r
# tdict is a special kind of dict, used for selecting correct\r
# protocol defition for given ARCH\r
#\r
# tdict is a special kind of dict, used for selecting correct\r
# protocol defition for given ARCH\r
#\r
# tdict is a special kind of dict, used for selecting correct\r
# PPI defition for given ARCH\r
#\r
# tdict is a special kind of dict, used for selecting correct\r
# PPI defition for given ARCH\r
#\r
# tdict is a special kind of dict, used for selecting correct\r
# GUID defition for given ARCH\r
#\r
# tdict is a special kind of dict, used for selecting correct\r
# GUID defition for given ARCH\r
\r
## Retrieve library class declarations (not used in build at present)\r
def _GetLibraryClass(self):\r
\r
## Retrieve library class declarations (not used in build at present)\r
def _GetLibraryClass(self):\r
#\r
# tdict is a special kind of dict, used for selecting correct\r
# library class declaration for given ARCH\r
#\r
# tdict is a special kind of dict, used for selecting correct\r
# library class declaration for given ARCH\r
self._Pcds = sdict()\r
self._Pcds.update(self._GetPcd(MODEL_PCD_FIXED_AT_BUILD))\r
self._Pcds.update(self._GetPcd(MODEL_PCD_PATCHABLE_IN_MODULE))\r
self._Pcds = sdict()\r
self._Pcds.update(self._GetPcd(MODEL_PCD_FIXED_AT_BUILD))\r
self._Pcds.update(self._GetPcd(MODEL_PCD_PATCHABLE_IN_MODULE))\r
# will automatically turn to 'common' ARCH and try again\r
#\r
Setting,LineNo = PcdDict[self._Arch, PcdCName, TokenSpaceGuid]\r
# will automatically turn to 'common' ARCH and try again\r
#\r
Setting,LineNo = PcdDict[self._Arch, PcdCName, TokenSpaceGuid]\r
StructPattern = re.compile(r'[_a-zA-Z][0-9A-Za-z_]*$')\r
for pcd in Pcds.values():\r
if pcd.DatumType not in [TAB_UINT8, TAB_UINT16, TAB_UINT32, TAB_UINT64, TAB_VOID, "BOOLEAN"]:\r
StructPattern = re.compile(r'[_a-zA-Z][0-9A-Za-z_]*$')\r
for pcd in Pcds.values():\r
if pcd.DatumType not in [TAB_UINT8, TAB_UINT16, TAB_UINT32, TAB_UINT64, TAB_VOID, "BOOLEAN"]:\r
EdkLogger.error('build', FORMAT_INVALID, "DatumType only support BOOLEAN, UINT8, UINT16, UINT32, UINT64, VOID* or a valid struct name.", pcd.DefinitionPosition[0],pcd.DefinitionPosition[1])\r
for struct_pcd in Pcds.values():\r
if isinstance(struct_pcd,StructurePcd) and not struct_pcd.StructuredPcdIncludeFile:\r
EdkLogger.error('build', FORMAT_INVALID, "DatumType only support BOOLEAN, UINT8, UINT16, UINT32, UINT64, VOID* or a valid struct name.", pcd.DefinitionPosition[0],pcd.DefinitionPosition[1])\r
for struct_pcd in Pcds.values():\r
if isinstance(struct_pcd,StructurePcd) and not struct_pcd.StructuredPcdIncludeFile:\r