mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
BaseTools: Fix regression boot hang issue by commit 0e982cf03dd5
Fix regression boot hang issue by commit 0e982cf03dd5023b90def60c3656e5e18135ebac 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:
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user