BaseTools: fix the bug for FMP to support use Macro as path description
Fix the bug for FMP image to support to use Macro as path description, eg: FILE DATA = $(OUTPUT_DIRECTORY)/$(TARGET)_$(TOOL_CHAIN_TAG)/test.efi 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:
@ -3435,9 +3435,8 @@ class FdfParser:
|
|||||||
raise Warning("expected File name", self.FileName, self.CurrentLineNumber)
|
raise Warning("expected File name", self.FileName, self.CurrentLineNumber)
|
||||||
|
|
||||||
AnyFileName = self.__Token
|
AnyFileName = self.__Token
|
||||||
AnyFileName = GenFdsGlobalVariable.ReplaceWorkspaceMacro(AnyFileName)
|
self.__VerifyFile(AnyFileName)
|
||||||
if not os.path.exists(AnyFileName):
|
|
||||||
raise Warning("File %s not exists"%AnyFileName, self.FileName, self.CurrentLineNumber)
|
|
||||||
return AnyFileName
|
return AnyFileName
|
||||||
|
|
||||||
## __GetAnyFileStatement() method
|
## __GetAnyFileStatement() method
|
||||||
|
Reference in New Issue
Block a user