summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
diff options
context:
space:
mode:
authorZhiguang Liu <zhiguang.liu@intel.com>2025-09-25 11:45:44 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-10-30 11:13:29 +0300
commit426da7fb1a2d9155d2abf3a68b93ff37ed6898b1 (patch)
treed278989619c29f8670350c54930d079e9c344c8f /BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
parent29a66468cbabe602c29e770f4382a5979b2d2304 (diff)
downloadedk2-426da7fb1a2d9155d2abf3a68b93ff37ed6898b1.tar.xz
IntelFsp2WrapperPkg: Rebase FSP-S and FSP-I if Image Base not match
FSP Spec says: "The FSP is not Position Independent Code (PIC) and each FSP component has to be rebased if it is placed at a location which is different from the preferred base address specified during the FSP build." Normally, the FSP location in flash is the same preferred base address specified during the FSP build. To avoid FSP-S and FSP-I running directly from flash, platform may copy the FSP binaries into physical memory. This causes FSP location to be different from the preferred base address. To support this, this commit checks the Image Base from FSP header and the FSP base address PCD. If these two are different, This commit assumes the FSP is copied into physical memory and FSP location is changed. In such scenario, the commit will rebase the FSP to the address provided by the PCD. Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/ModuleAutoGen.py')
0 files changed, 0 insertions, 0 deletions