diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-10-09 21:21:56 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-10-11 13:53:34 +0800 |
commit | 92d07e48907f54a0da01663f3e876782a76b1e18 (patch) | |
tree | 5e7fd6badccaea2fbac268f298518e2d512866c0 /BaseTools/Source/Python/GenFds/FdfParser.py | |
parent | cc71d8b7f8e7013783bb3ce77ac375ecb94e107d (diff) | |
download | edk2-92d07e48907f54a0da01663f3e876782a76b1e18.tar.gz edk2-92d07e48907f54a0da01663f3e876782a76b1e18.tar.bz2 edk2-92d07e48907f54a0da01663f3e876782a76b1e18.zip |
BaseTools: Fix the Keyword error for <ExtendedFvEntry> in FDF File
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>
Diffstat (limited to 'BaseTools/Source/Python/GenFds/FdfParser.py')
-rw-r--r-- | BaseTools/Source/Python/GenFds/FdfParser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/FdfParser.py b/BaseTools/Source/Python/GenFds/FdfParser.py index b95afc7783..0190be884a 100644 --- a/BaseTools/Source/Python/GenFds/FdfParser.py +++ b/BaseTools/Source/Python/GenFds/FdfParser.py @@ -2365,7 +2365,7 @@ class FdfParser: def __GetFvExtEntryStatement(self, FvObj):
- if not self.__IsKeyword( "FV_EXT_ENTRY"):
+ if not (self.__IsKeyword( "FV_EXT_ENTRY") or self.__IsKeyword( "FV_EXT_ENTRY_TYPE")):
return False
if not self.__IsKeyword ("TYPE"):
|