BaseTools: Fix regression boot hang issue by commit 0e982cf03d
Fix regression boot hang issue by commit
0e982cf03d
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
committed by
Yonghong Zhu
parent
b1cd4061e3
commit
272ecccd79
@ -204,8 +204,8 @@ class FV (FvClassObject):
|
|||||||
GenFdsGlobalVariable.VerboseLogger("\nGenerate %s FV Successfully" % self.UiFvName)
|
GenFdsGlobalVariable.VerboseLogger("\nGenerate %s FV Successfully" % self.UiFvName)
|
||||||
GenFdsGlobalVariable.SharpCounter = 0
|
GenFdsGlobalVariable.SharpCounter = 0
|
||||||
|
|
||||||
Buffer.write(FvFileObj.read())
|
|
||||||
FvFileObj.seek(0)
|
FvFileObj.seek(0)
|
||||||
|
Buffer.write(FvFileObj.read())
|
||||||
# FV alignment position.
|
# FV alignment position.
|
||||||
FvAlignmentValue = 1 << (ord(FvHeaderBuffer[0x2E]) & 0x1F)
|
FvAlignmentValue = 1 << (ord(FvHeaderBuffer[0x2E]) & 0x1F)
|
||||||
if FvAlignmentValue >= 0x400:
|
if FvAlignmentValue >= 0x400:
|
||||||
|
Reference in New Issue
Block a user