summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2016-04-28 14:42:26 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2016-04-29 14:51:06 +0800
commit35217a337cb6d262d4a3b5165bd86ba150a6c088 (patch)
tree1960a9587ae88e329f7fde29ae1860c3dcab4c1b
parent6d3911d40610c01e843a35cefd1fec57f98a4fc2 (diff)
downloadedk2-35217a337cb6d262d4a3b5165bd86ba150a6c088.zip
edk2-35217a337cb6d262d4a3b5165bd86ba150a6c088.tar.gz
edk2-35217a337cb6d262d4a3b5165bd86ba150a6c088.tar.bz2
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>
-rw-r--r--BaseTools/Source/Python/GenFds/FdfParser.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/GenFds/FdfParser.py b/BaseTools/Source/Python/GenFds/FdfParser.py
index 72fb3dc..39f951a 100644
--- a/BaseTools/Source/Python/GenFds/FdfParser.py
+++ b/BaseTools/Source/Python/GenFds/FdfParser.py
@@ -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