Fix FSP and Microcode download path issue
When downloading FSP and Microcode into local tree, it is required to support board/silicon packages at different locations since the board/silicon packages might be located outside of the SBL tree pointed by PLT_SOURCE environment variable. Current code always assumes the board/silicon is inside SBL tree, and it needs to be fixed. This patch fixed #269 . Signed-off-by: Maurice Ma <maurice.ma@intel.com>
This commit is contained in:
parent
fa2124f91e
commit
78e7b0225e
|
@ -69,7 +69,7 @@ def CopyFileList (copy_list, src_dir, sbl_dir):
|
|||
|
||||
def GetFspCopyList (platform):
|
||||
plat_pkg = GetPlatformPkgName (platform)
|
||||
fsp_inf = 'Silicon/%s/FspBin/FspBin.inf' % plat_pkg
|
||||
fsp_inf = os.path.join(os.environ['PLT_SOURCE'], 'Silicon/%s/FspBin/FspBin.inf' % plat_pkg)
|
||||
|
||||
fd = open (fsp_inf, 'r')
|
||||
lines = fd.readlines()
|
||||
|
@ -246,7 +246,7 @@ def CloneUcodeRepo (ucode_dir, tag):
|
|||
|
||||
def GetUcodeList (platform):
|
||||
plat_pkg = GetPlatformPkgName (platform)
|
||||
ucode_inf = 'Silicon/%s/Microcode/Microcode.inf' % plat_pkg
|
||||
ucode_inf = os.path.join(os.environ['PLT_SOURCE'], 'Silicon/%s/Microcode/Microcode.inf' % plat_pkg)
|
||||
|
||||
fd = open (ucode_inf, 'r')
|
||||
lines = fd.readlines()
|
||||
|
|
Loading…
Reference in New Issue