Skip to content

Commit

Permalink
Again try to fix checkpoint issue with fips930 simics
Browse files Browse the repository at this point in the history
Previously we tried to fix the issue where checkpoints were failing
because environment variables were not set. We thought by using the
printenv command it would just return "" if no variable was defined
but we still saw errors. Now we will explicitly set the local variable
to "" then check if the environment variable exists, if it does
then we will set it to the local variable we are using.

Change-Id: Iff5ffc9d9a05b1dd8ee85dbc8299884c26d4c892
CQ: SW458604
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/72649
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: CALEB SCHLOSSIN <calebs@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
  • Loading branch information
crgeddes authored and wghoffa committed Mar 1, 2019
1 parent 9ece0ed commit 6cc4d50
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/build/simics/startup.simics
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,17 @@ python "os.environ['HB_TOOLPATH'] = \""+$hb_script_location+"\""

# TODO RTC: 204842 Revist once we get way to read CEC_TYPE from simics
if ($hb_mode == 1) {
$model = (shell "printenv CEC_TYPE")
$machine_name = (shell "printenv MACHINE")

$model=""
if(env -x CEC_TYPE) {
$model = (env CEC_TYPE)
}

$machine_name=""
if(env -x MACHINE) {
$machine_name = (env MACHINE)
}

$hb_machine = "unknown"
if ($model == "p9_zztop") {$hb_machine = "zztop"}
if ($model == "p9_zeppelin") {$hb_machine = "zeppelin"}
Expand Down

0 comments on commit 6cc4d50

Please sign in to comment.