diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-04-28 14:42:26 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-13 09:32:42 +0800 |
commit | 1d8f994cb778218e62c03bbfac35dcdeb7670f6a (patch) | |
tree | 1f6b58537a657ea04f2824b0e520eb18cd31d047 /BaseTools/Source/Python | |
parent | e8243386305c0400223469d42a81b388e5c97c75 (diff) | |
download | edk2-platforms-1d8f994cb778218e62c03bbfac35dcdeb7670f6a.tar.xz |
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>
(cherry picked from commit 35217a337cb6d262d4a3b5165bd86ba150a6c088)
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r-- | BaseTools/Source/Python/GenFds/FdfParser.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/GenFds/FdfParser.py b/BaseTools/Source/Python/GenFds/FdfParser.py index 72fb3dc56e..39f951a035 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
|