summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/build/BuildReport.py
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2019-01-21 17:44:50 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-02-02 10:28:55 +0800
commit9f30e401282ff27072fd9463b4de1fa79f085b79 (patch)
tree423765df9ee8959babf1647bfb363949807cf454 /BaseTools/Source/Python/build/BuildReport.py
parentce3bfbec716a1d3667782f798f89b0eda423a4ea (diff)
downloadedk2-9f30e401282ff27072fd9463b4de1fa79f085b79.tar.gz
edk2-9f30e401282ff27072fd9463b4de1fa79f085b79.tar.bz2
edk2-9f30e401282ff27072fd9463b4de1fa79f085b79.zip
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>
Diffstat (limited to 'BaseTools/Source/Python/build/BuildReport.py')
-rw-r--r--BaseTools/Source/Python/build/BuildReport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py
index 8d3b030151..44f7706bb3 100644
--- a/BaseTools/Source/Python/build/BuildReport.py
+++ b/BaseTools/Source/Python/build/BuildReport.py
@@ -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: