summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-02-26 15:15:02 +0800
committerLiming Gao <liming.gao@intel.com>2018-02-27 18:42:34 +0800
commit0939fda93cbc252cd5b4ed4f026ed6ec9e07687f (patch)
treef940d52d9a0642b5470eb9fb5262fe0245eba243
parent006c2647dc60cd7e9d32c3555a3bf7cfd890ddd6 (diff)
downloadedk2-0939fda93cbc252cd5b4ed4f026ed6ec9e07687f.zip
edk2-0939fda93cbc252cd5b4ed4f026ed6ec9e07687f.tar.gz
edk2-0939fda93cbc252cd5b4ed4f026ed6ec9e07687f.tar.bz2
BaseTools: Add more error message when PcdValue is wrong
For structure PCD, its field name is wrong and cause build failure. Its build error message will output to let user aware what's wrong. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Feng Bob C <bob.c.feng@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
-rw-r--r--BaseTools/Source/Python/Workspace/DscBuildData.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py
index 75b877a..f90da8e 100644
--- a/BaseTools/Source/Python/Workspace/DscBuildData.py
+++ b/BaseTools/Source/Python/Workspace/DscBuildData.py
@@ -1944,6 +1944,8 @@ class DscBuildData(PlatformBuildClassObject):
message_itmes = Message.split(":")
Index = 0
if "PcdValueInit.c" not in Message:
+ if not MessageGroup:
+ MessageGroup.append(Message)
break
else:
for item in message_itmes: