mirror of https://github.com/acidanthera/audk.git
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:
parent
6d3911d406
commit
35217a337c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue