]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/Workspace/DscBuildData.py
BaseTools: Fixed a code bug for Pcd Array.
authorFeng, Bob C <bob.c.feng@intel.com>
Thu, 14 Feb 2019 08:48:03 +0000 (16:48 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Tue, 19 Feb 2019 12:32:44 +0000 (20:32 +0800)
commit68c67d3a2a33261e41ff0123129b4e9759617f71
tree91bd6327d272e1340d335fd6bb5bb24ee2f9b9f9
parentc0ebd9d30fd8427e1e35c40a16221e00ff0ba6cc
BaseTools: Fixed a code bug for Pcd Array.

For example, PCD gUefiOvmfPkgTokenSpaceGuid.Test001 datatype is Array:
TEST1[2]
and the filed TEST1UINT64ARRAY in TEST1 is also an array:
UINT64 TEST1UINT64ARRAY[2];

Then the following filed assignment in DSC will cause build failure.
gUefiOvmfPkgTokenSpaceGuid.Test001[0].TEST1UINT64ARRAY|{'A','B'}

The root cause is build tool generate incorrect PcdValueInit.c File.

This patch is going to fix this issue.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/Workspace/DscBuildData.py