]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Fix a bug for Hii Pcd override
authorBob Feng <bob.c.feng@intel.com>
Thu, 5 Sep 2019 09:45:10 +0000 (17:45 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Tue, 10 Sep 2019 00:39:16 +0000 (08:39 +0800)
commitcbe7543ebbf9bb3e8531a2235ff205713b569605
tree459c0468eb48c1d5a2101d0ef4e75a1cd212d70b
parentf49421a47dca44c3cfc6d09dfa304239538e2648
BaseTools: Fix a bug for Hii Pcd override

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2157

Hii Pcd links to a efi variable. The Variable
default value is evaluated by related Hii Pcds
setting. If multiple Hii Pcds links to one variable,
and the offset overlap, the later Hii Pcds setting
should be effective. There is a tool bug that is if
the Pcds are in different dsc file which are included
into the platform dsc file, build tool does not get
the Pcds relative position correctly. That means
build tool does not know which Pcd is the later one. As
the result, the variable default value will be incorrect.

This patch is to fix this bug.

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