]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix the Keyword error for <ExtendedFvEntry> in FDF File
authorYonghong Zhu <yonghong.zhu@intel.com>
Mon, 9 Oct 2017 13:21:56 +0000 (21:21 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 11 Oct 2017 05:53:34 +0000 (13:53 +0800)
current in FDF spec 3.6 [FV] section it use "FV_EXT_ENTRY_TYPE" as
Keyword for <ExtendedFvEntry>, while in the code it use "FV_EXT_ENTRY".
To keep compatibility, this patch support both keyword in the code
first.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/GenFds/FdfParser.py

index b95afc778362f1f2d43efe19205e2992481c8d22..0190be884a339fbe8b98720e596081a50f12513d 100644 (file)
@@ -2365,7 +2365,7 @@ class FdfParser:
 \r
     def __GetFvExtEntryStatement(self, FvObj):\r
 \r
-        if not self.__IsKeyword( "FV_EXT_ENTRY"):\r
+        if not (self.__IsKeyword( "FV_EXT_ENTRY") or self.__IsKeyword( "FV_EXT_ENTRY_TYPE")):\r
             return False\r
 \r
         if not self.__IsKeyword ("TYPE"):\r