summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/GenFds/Fv.py
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2019-01-09 14:44:36 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-01-14 09:34:41 +0800
commit39879ef2677fa5677ecffb1149a4d87372b90ba5 (patch)
treeb45d4cb916b47e9479011348eb5932c901d44594 /BaseTools/Source/Python/GenFds/Fv.py
parent822925013278733ac7f03c35fece2df3e8bc3614 (diff)
downloadedk2-39879ef2677fa5677ecffb1149a4d87372b90ba5.tar.gz
edk2-39879ef2677fa5677ecffb1149a4d87372b90ba5.tar.bz2
edk2-39879ef2677fa5677ecffb1149a4d87372b90ba5.zip
BaseTools: Remove unused logic for IPF
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350 Remove IPF support from BaseTools C code. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds/Fv.py')
-rw-r--r--BaseTools/Source/Python/GenFds/Fv.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/BaseTools/Source/Python/GenFds/Fv.py b/BaseTools/Source/Python/GenFds/Fv.py
index d89e7bfbdd..bd5c259348 100644
--- a/BaseTools/Source/Python/GenFds/Fv.py
+++ b/BaseTools/Source/Python/GenFds/Fv.py
@@ -74,11 +74,10 @@ class FV (object):
# @param BlockSize block size of FV
# @param BlockNum How many blocks in FV
# @param ErasePolarity Flash erase polarity
- # @param VtfDict VTF objects
# @param MacroDict macro value pair
# @retval string Generated FV file path
#
- def AddToBuffer (self, Buffer, BaseAddress=None, BlockSize= None, BlockNum=None, ErasePloarity='1', VtfDict=None, MacroDict = {}, Flag=False):
+ def AddToBuffer (self, Buffer, BaseAddress=None, BlockSize= None, BlockNum=None, ErasePloarity='1', MacroDict = {}, Flag=False):
if BaseAddress is None and self.UiFvName.upper() + 'fv' in GenFdsGlobalVariable.ImageBinDict:
return GenFdsGlobalVariable.ImageBinDict[self.UiFvName.upper() + 'fv']
@@ -105,7 +104,7 @@ class FV (object):
if self.FvBaseAddress is not None:
BaseAddress = self.FvBaseAddress
if not Flag:
- self._InitializeInf(BaseAddress, BlockSize, BlockNum, ErasePloarity, VtfDict)
+ self._InitializeInf(BaseAddress, BlockSize, BlockNum, ErasePloarity)
#
# First Process the Apriori section
#
@@ -270,9 +269,8 @@ class FV (object):
# @param BlockSize block size of FV
# @param BlockNum How many blocks in FV
# @param ErasePolarity Flash erase polarity
- # @param VtfDict VTF objects
#
- def _InitializeInf (self, BaseAddress = None, BlockSize= None, BlockNum = None, ErasePloarity='1', VtfDict=None):
+ def _InitializeInf (self, BaseAddress = None, BlockSize= None, BlockNum = None, ErasePloarity='1'):
#
# Create FV inf file
#
@@ -435,7 +433,3 @@ class FV (object):
# Add [Files]
#
self.FvInfFile.writelines("[files]" + TAB_LINE_BREAK)
- if VtfDict and self.UiFvName in VtfDict:
- self.FvInfFile.writelines("EFI_FILE_NAME = " + \
- VtfDict[self.UiFvName] + \
- TAB_LINE_BREAK)