summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/GenFds/FvImageSection.py
diff options
context:
space:
mode:
authorZhijux Fan <zhijux.fan@intel.com>2018-12-26 15:23:04 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-02-01 11:09:20 +0800
commitd7f40203dca4570b27c70fad76c8c1b91230fda9 (patch)
tree8da54b1da38d895b95d18032a3809676d59a7d74 /BaseTools/Source/Python/GenFds/FvImageSection.py
parent2c2bb053a36bf12c6a02b6765348ff15774c5e40 (diff)
downloadedk2-d7f40203dca4570b27c70fad76c8c1b91230fda9.tar.gz
edk2-d7f40203dca4570b27c70fad76c8c1b91230fda9.tar.bz2
edk2-d7f40203dca4570b27c70fad76c8c1b91230fda9.zip
BaseTools:Fv BaseAddress must set If it not set
If ForceRebase is not set, and FV is specified in FD region, it should have FvBaseAddress Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds/FvImageSection.py')
-rw-r--r--BaseTools/Source/Python/GenFds/FvImageSection.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/GenFds/FvImageSection.py b/BaseTools/Source/Python/GenFds/FvImageSection.py
index d6e1f3315b..7f277ddef2 100644
--- a/BaseTools/Source/Python/GenFds/FvImageSection.py
+++ b/BaseTools/Source/Python/GenFds/FvImageSection.py
@@ -103,6 +103,8 @@ class FvImageSection(FvImageSectionClassObject):
Fv = GenFdsGlobalVariable.FdfParser.Profile.FvDict.get(self.FvName)
if Fv is not None:
self.Fv = Fv
+ if not self.FvAddr and self.Fv.BaseAddress:
+ self.FvAddr = self.Fv.BaseAddress
FvFileName = Fv.AddToBuffer(Buffer, self.FvAddr, MacroDict = Dict, Flag=IsMakefile)
if Fv.FvAlignment is not None:
if self.Alignment is None: