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:
Yonghong Zhu 2016-04-28 14:42:26 +08:00
parent 6d3911d406
commit 35217a337c
1 changed files with 2 additions and 3 deletions

View File

@ -3435,9 +3435,8 @@ class FdfParser:
raise Warning("expected File name", self.FileName, self.CurrentLineNumber)
AnyFileName = self.__Token
AnyFileName = GenFdsGlobalVariable.ReplaceWorkspaceMacro(AnyFileName)
if not os.path.exists(AnyFileName):
raise Warning("File %s not exists"%AnyFileName, self.FileName, self.CurrentLineNumber)
self.__VerifyFile(AnyFileName)
return AnyFileName
## __GetAnyFileStatement() method