]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Fix the bug to align VPD PCD based on value type
authorYonghong Zhu <yonghong.zhu@intel.com>
Mon, 29 Jan 2018 07:49:56 +0000 (15:49 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 31 Jan 2018 09:47:50 +0000 (17:47 +0800)
commit86737681af34d14dfe088d806d4a5062fdfb3f1f
tree1088a2caa7c2c30e4d7d4433d892c5ace1ee226a
parente434be3c9c03fde122d878a9487915db96c479ce
BaseTools: Fix the bug to align VPD PCD based on value type

Spec required for VOID* VPD Pcd, Ascii string use byte alignment, byte
array use 8-byte alignment, unicode string use 2-byte alignment.
while when the VPD pcd offset use *, the offset generated in the .map
file not follow this rule.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/BPDG/GenVpd.py