]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: VPD Tool to allocate VPD region be aligned based on value type
authorYonghong Zhu <yonghong.zhu@intel.com>
Mon, 18 Jan 2016 01:47:50 +0000 (01:47 +0000)
committeryzhu52 <yzhu52@Edk2>
Mon, 18 Jan 2016 01:47:50 +0000 (01:47 +0000)
commit22061fab23a2bc9bf39cb3d1bd0ff0f1264d3859
tree21b131c282b6b7f680a93ff8035459183ce977aa
parent5a13737abf9d12d99a15961fa94716b507c701a2
BaseTools: VPD Tool to allocate VPD region be aligned based on value type

Base on build spec update, ASCII strings(“string”), will be byte aligned,
Unicode strings(L”string”) will be two-byte aligned, Byte arrays,
{0x00, 0x01} will be 8-byte aligned.
This patch is going to update VPD Tool to allocate VOID* PCDs to an offset
value that is aligned based in syntax of the PCD value.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19651 6f19259b-4bc3-4df7-8a09-765794883524
BaseTools/Source/Python/BPDG/GenVpd.py