diff options
author | Feng, YunhuaX <yunhuax.feng@intel.com> | 2018-10-15 17:03:51 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-10-15 18:21:28 +0800 |
commit | 272ecccd793c8fb12f4f356ada18a870c2426603 (patch) | |
tree | 4b818325085ce1bdcebf3ba5e54ff80245287fa0 /BaseTools/Source/Python | |
parent | b1cd4061e3b42ef9bc35077de284673b73fa0cbe (diff) | |
download | edk2-272ecccd793c8fb12f4f356ada18a870c2426603.tar.gz edk2-272ecccd793c8fb12f4f356ada18a870c2426603.tar.bz2 edk2-272ecccd793c8fb12f4f356ada18a870c2426603.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r-- | BaseTools/Source/Python/GenFds/Fv.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/Fv.py b/BaseTools/Source/Python/GenFds/Fv.py index 510f2834a8..c66fc38327 100644 --- a/BaseTools/Source/Python/GenFds/Fv.py +++ b/BaseTools/Source/Python/GenFds/Fv.py @@ -204,8 +204,8 @@ class FV (FvClassObject): GenFdsGlobalVariable.VerboseLogger("\nGenerate %s FV Successfully" % self.UiFvName)
GenFdsGlobalVariable.SharpCounter = 0
- Buffer.write(FvFileObj.read())
FvFileObj.seek(0)
+ Buffer.write(FvFileObj.read())
# FV alignment position.
FvAlignmentValue = 1 << (ord(FvHeaderBuffer[0x2E]) & 0x1F)
if FvAlignmentValue >= 0x400:
|