BaseTools: enhance error handling for DSC file
Add logic for DSC file validation for Prebuild init. Add logic to detect error for DSC parser when '{' is missing. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@ -920,6 +920,9 @@ class Build():
|
||||
|
||||
def InitPreBuild(self):
|
||||
self.LoadConfiguration()
|
||||
ErrorCode, ErrorInfo = self.PlatformFile.Validate(".dsc", False)
|
||||
if ErrorCode != 0:
|
||||
EdkLogger.error("build", ErrorCode, ExtraData=ErrorInfo)
|
||||
if self.BuildTargetList:
|
||||
GlobalData.gGlobalDefines['TARGET'] = self.BuildTargetList[0]
|
||||
if self.ArchList:
|
||||
|
Reference in New Issue
Block a user