FvAlignmentValue = 1 << (ord (FvHeaderBuffer[0x2E]) & 0x1F)\r
# FvAlignmentValue is larger than or equal to 1K\r
if FvAlignmentValue >= 0x400:\r
- if FvAlignmentValue >= 0x10000:\r
- #The max alignment supported by FFS is 64K.\r
- self.FvAlignment = "64K"\r
+ if FvAlignmentValue >= 0x100000:\r
+ #The max alignment supported by FFS is 16M.\r
+ if FvAlignmentValue >= 0x1000000:\r
+ self.FvAlignment = "16M"\r
+ else:\r
+ self.FvAlignment = str(FvAlignmentValue / 0x100000) + "M"\r
else:\r
self.FvAlignment = str (FvAlignmentValue / 0x400) + "K"\r
else:\r