blob: c690c57dd1cde2685009701dc9c92aa034520199 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#If running in Hostboot Developer Environment, copies patched base
#and extended hostboot images onto the FSP so HWSV will load
#pached versions to PNOR instead of the default images
#from the FSP the driver.
try {
if (python "os.environ.has_key('PROJECT_ROOT')") {
echo "Running Hostboot developer patch commands"
$sbbase = (python "os.environ['sb']")
$hbsrc_dir = "/host/" + $sbbase + "/hbfw/img/"
$hbobj_dir = "/host/" + $sbbase + "/../obj/ppc/hbfw/img/"
$hbpatch_cmd = "cp " + $hbobj_dir + "/hostboot.header.bin "
$hbpatch_cmd = $hbpatch_cmd + $hbobj_dir + "/hostboot_extended.header.bin "
$hbpatch_cmd = $hbpatch_cmd + "/opt/fips/components/hwsv/\n"
script-branch {
local $con = fsp2_minicomA.con
$con.wait-for-string "C1001FFF"
$con.input $hbpatch_cmd
}
}
} except { echo "ERROR: Failed to load tools in combined.simics." }
|