mirror of https://github.com/acidanthera/audk.git
BaseTools: Fix report flexible value issue
Report flexible value in INF file encounter error Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
b2282e5369
commit
af24640290
|
@ -985,6 +985,11 @@ class PcdReport(object):
|
|||
continue
|
||||
InfDefaultValue, PcdValue = ModulePcdSet[Pcd.TokenCName, Pcd.TokenSpaceGuidCName, Type]
|
||||
Pcd.DefaultValue = PcdValue
|
||||
if InfDefaultValue:
|
||||
try:
|
||||
InfDefaultValue = ValueExpressionEx(InfDefaultValue, Pcd.DatumType, self._GuidDict)(True)
|
||||
except BadExpression as InfDefaultValue:
|
||||
EdkLogger.error('BuildReport', FORMAT_INVALID, "PCD Value: %s, Type: %s" % (InfDefaultValue, Pcd.DatumType))
|
||||
if InfDefaultValue == "":
|
||||
InfDefaultValue = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue