summaryrefslogtreecommitdiffstats
path: root/src/build/simics/combined.simics
blob: 3734947619af523ee25d24b52a694b7f40761239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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('HOSTBOOTROOT')") {
        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." }
OpenPOWER on IntegriCloud