]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: fix the bug for FMP to support use Macro as path description
authorYonghong Zhu <yonghong.zhu@intel.com>
Thu, 28 Apr 2016 06:42:26 +0000 (14:42 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Fri, 29 Apr 2016 06:51:06 +0000 (14:51 +0800)
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>
BaseTools/Source/Python/GenFds/FdfParser.py

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