+ ## _GetBlockSize()\r
+ #\r
+ # Calculate FV's block size\r
+ # Inherit block size from FD if no block size specified in FV\r
+ #\r
+ def _GetBlockSize(self):\r
+ if self.BlockSizeList:\r
+ return True\r
+\r
+ for FdName in GenFdsGlobalVariable.FdfParser.Profile.FdDict.keys():\r
+ FdObj = GenFdsGlobalVariable.FdfParser.Profile.FdDict[FdName]\r
+ for RegionObj in FdObj.RegionList:\r
+ if RegionObj.RegionType != 'FV':\r
+ continue\r
+ for RegionData in RegionObj.RegionDataList:\r
+ #\r
+ # Found the FD and region that contain this FV\r
+ #\r
+ if self.UiFvName.upper() == RegionData.upper():\r
+ RegionObj.BlockInfoOfRegion(FdObj.BlockSizeList, self)\r
+ if self.BlockSizeList:\r
+ return True\r
+ return False\r
+\r