BaseTools: Enable CODE format in DEC file
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1292. Enable CODE format in DEC File. 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>
This commit is contained in:
@ -149,7 +149,7 @@ def ByteArrayForamt(Value):
|
||||
IsByteArray = False
|
||||
SplitNum = 16
|
||||
ArrayList = []
|
||||
if Value.startswith('{') and Value.endswith('}'):
|
||||
if Value.startswith('{') and Value.endswith('}') and not Value.startswith("{CODE("):
|
||||
Value = Value[1:-1]
|
||||
ValueList = Value.split(',')
|
||||
if len(ValueList) >= SplitNum:
|
||||
|
Reference in New Issue
Block a user