diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-09-20 14:10:04 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-09-25 11:18:22 +0800 |
commit | e921f58d44587c77b843a6332b43f171a44b76cb (patch) | |
tree | 1d8a456c3a8da697e39bc755c26ed4e8ed8b8529 /BaseTools/Source/Python/GenFds/Fv.py | |
parent | 79777358cd5dbdbb267ebd02405584321292f06a (diff) | |
download | edk2-e921f58d44587c77b843a6332b43f171a44b76cb.tar.gz edk2-e921f58d44587c77b843a6332b43f171a44b76cb.tar.bz2 edk2-e921f58d44587c77b843a6332b43f171a44b76cb.zip |
BaseTools: extend FFS alignment to 16M
Current FFS only supports 64KiB alignment for data, Per PI 1.6
requirement, we extend FFS alignment to 16M.
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds/Fv.py')
-rw-r--r-- | BaseTools/Source/Python/GenFds/Fv.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/GenFds/Fv.py b/BaseTools/Source/Python/GenFds/Fv.py index f6ccb59d77..4b03adc1c8 100644 --- a/BaseTools/Source/Python/GenFds/Fv.py +++ b/BaseTools/Source/Python/GenFds/Fv.py @@ -196,9 +196,12 @@ class FV (FvClassObject): FvAlignmentValue = 1 << (ord (FvHeaderBuffer[0x2E]) & 0x1F)
# FvAlignmentValue is larger than or equal to 1K
if FvAlignmentValue >= 0x400:
- if FvAlignmentValue >= 0x10000:
- #The max alignment supported by FFS is 64K.
- self.FvAlignment = "64K"
+ if FvAlignmentValue >= 0x100000:
+ #The max alignment supported by FFS is 16M.
+ if FvAlignmentValue >= 0x1000000:
+ self.FvAlignment = "16M"
+ else:
+ self.FvAlignment = str(FvAlignmentValue / 0x100000) + "M"
else:
self.FvAlignment = str (FvAlignmentValue / 0x400) + "K"
else:
|