mirror of https://github.com/acidanthera/audk.git
BaseTools: Fixed build report issue.
This patch is going to fix the regression issue
by 72a1d77694
After enable PCD array, the Pcd.OverrideStruct has a new
key, array index, but the build report is not changed correspondingly.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
39699d078c
commit
82bfbd392a
|
@ -1424,9 +1424,10 @@ class PcdReport(object):
|
||||||
def OverrideFieldValue(self, Pcd, OverrideStruct):
|
def OverrideFieldValue(self, Pcd, OverrideStruct):
|
||||||
OverrideFieldStruct = collections.OrderedDict()
|
OverrideFieldStruct = collections.OrderedDict()
|
||||||
if OverrideStruct:
|
if OverrideStruct:
|
||||||
for Key, Values in OverrideStruct.items():
|
for _, Values in OverrideStruct.items():
|
||||||
if Values[1] and Values[1].endswith('.dsc'):
|
for Key,value in Values.items():
|
||||||
OverrideFieldStruct[Key] = Values
|
if value[1] and value[1].endswith('.dsc'):
|
||||||
|
OverrideFieldStruct[Key] = value
|
||||||
if Pcd.PcdFieldValueFromFdf:
|
if Pcd.PcdFieldValueFromFdf:
|
||||||
for Key, Values in Pcd.PcdFieldValueFromFdf.items():
|
for Key, Values in Pcd.PcdFieldValueFromFdf.items():
|
||||||
if Key in OverrideFieldStruct and Values[0] == OverrideFieldStruct[Key][0]:
|
if Key in OverrideFieldStruct and Values[0] == OverrideFieldStruct[Key][0]:
|
||||||
|
|
Loading…
Reference in New Issue