]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/AutoGen/AutoGen.py
BaseTools: VOID* PCDs in VPD region must be aligned based on value type
authorYonghong Zhu <yonghong.zhu@intel.com>
Mon, 18 Jan 2016 01:46:25 +0000 (01:46 +0000)
committeryzhu52 <yzhu52@Edk2>
Mon, 18 Jan 2016 01:46:25 +0000 (01:46 +0000)
commit5a13737abf9d12d99a15961fa94716b507c701a2
treec58eb0c7eba9bd6f8b32a2dc14842b575ca0a233
parent8b54f22f60d1ecdfc4beb1f0965b52f7063b93ad
BaseTools: VOID* PCDs in VPD region must 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 halt with an error message if a VOID* PCD has an
offset value that is not aligned based on the 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@19650 6f19259b-4bc3-4df7-8a09-765794883524
BaseTools/Source/Python/AutoGen/AutoGen.py