mirror of https://github.com/acidanthera/audk.git
BaseTools: Code should not update the variable that save the raw data.
Code should not update the value of variable which save the original raw content of meta file. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: ZhiqiangX Zhao <zhiqiangx.zhao@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
e451aaa637
commit
0caf903913
|
@ -1899,12 +1899,15 @@ class DscBuildData(PlatformBuildClassObject):
|
||||||
IsArray = IsFieldValueAnArray(FieldList[FieldName][0])
|
IsArray = IsFieldValueAnArray(FieldList[FieldName][0])
|
||||||
if IsArray:
|
if IsArray:
|
||||||
try:
|
try:
|
||||||
FieldList[FieldName][0] = ValueExpressionEx(FieldList[FieldName][0], TAB_VOID, self._GuidDict)(True)
|
FieldValue = ValueExpressionEx(FieldList[FieldName][0], TAB_VOID, self._GuidDict)(True)
|
||||||
except BadExpression:
|
except BadExpression:
|
||||||
EdkLogger.error('Build', FORMAT_INVALID, "Invalid value format for %s. From %s Line %d " %
|
EdkLogger.error('Build', FORMAT_INVALID, "Invalid value format for %s. From %s Line %d " %
|
||||||
(".".join((Pcd.TokenSpaceGuidCName, Pcd.TokenCName, FieldName)), FieldList[FieldName][1], FieldList[FieldName][2]))
|
(".".join((Pcd.TokenSpaceGuidCName, Pcd.TokenCName, FieldName)), FieldList[FieldName][1], FieldList[FieldName][2]))
|
||||||
try:
|
try:
|
||||||
Value, ValueSize = ParseFieldValue (FieldList[FieldName][0])
|
if IsArray:
|
||||||
|
Value, ValueSize = ParseFieldValue (FieldValue)
|
||||||
|
else:
|
||||||
|
Value, ValueSize = ParseFieldValue (FieldList[FieldName][0])
|
||||||
except Exception:
|
except Exception:
|
||||||
EdkLogger.error('Build', FORMAT_INVALID, "Invalid value format for %s. From %s Line %d " % (".".join((Pcd.TokenSpaceGuidCName, Pcd.TokenCName, FieldName)), FieldList[FieldName][1], FieldList[FieldName][2]))
|
EdkLogger.error('Build', FORMAT_INVALID, "Invalid value format for %s. From %s Line %d " % (".".join((Pcd.TokenSpaceGuidCName, Pcd.TokenCName, FieldName)), FieldList[FieldName][1], FieldList[FieldName][2]))
|
||||||
if isinstance(Value, str):
|
if isinstance(Value, str):
|
||||||
|
|
Loading…
Reference in New Issue