BaseTools/Ecc: Fix the issue of not recognizing "FILE_GUID"
Fix the issue of not recognizing "FILE_GUID" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen <hesheng.chen@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
@ -783,6 +783,10 @@ class DscParser(MetaFileParser):
|
|||||||
"FIX_LOAD_TOP_MEMORY_ADDRESS"
|
"FIX_LOAD_TOP_MEMORY_ADDRESS"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
SubSectionDefineKeywords = [
|
||||||
|
"FILE_GUID"
|
||||||
|
]
|
||||||
|
|
||||||
SymbolPattern = ValueExpression.SymbolPattern
|
SymbolPattern = ValueExpression.SymbolPattern
|
||||||
|
|
||||||
## Constructor of DscParser
|
## Constructor of DscParser
|
||||||
@ -993,7 +997,8 @@ class DscParser(MetaFileParser):
|
|||||||
if not self._ValueList[2]:
|
if not self._ValueList[2]:
|
||||||
EdkLogger.error('Parser', FORMAT_INVALID, "No value specified",
|
EdkLogger.error('Parser', FORMAT_INVALID, "No value specified",
|
||||||
ExtraData=self._CurrentLine, File=self.MetaFile, Line=self._LineIndex+1)
|
ExtraData=self._CurrentLine, File=self.MetaFile, Line=self._LineIndex+1)
|
||||||
if not self._ValueList[1] in self.DefineKeywords:
|
if (not self._ValueList[1] in self.DefineKeywords and
|
||||||
|
(self._InSubsection and self._ValueList[1] not in self.SubSectionDefineKeywords)):
|
||||||
EdkLogger.error('Parser', FORMAT_INVALID,
|
EdkLogger.error('Parser', FORMAT_INVALID,
|
||||||
"Unknown keyword found: %s. "
|
"Unknown keyword found: %s. "
|
||||||
"If this is a macro you must "
|
"If this is a macro you must "
|
||||||
|
Reference in New Issue
Block a user