summaryrefslogtreecommitdiffstats
path: root/src/build
diff options
context:
space:
mode:
authorChristian Geddes <crgeddes@us.ibm.com>2019-02-28 12:40:19 -0600
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2019-03-01 15:46:04 -0600
commit6cc4d5078e348fba2a3984cb41a1913b2874c466 (patch)
treed3033b115a61719b025e1eb8f47d8aab21e4568b /src/build
parent9ece0ede203d4165b5423bdbf677cd272b78d094 (diff)
downloadtalos-hostboot-6cc4d5078e348fba2a3984cb41a1913b2874c466.tar.gz
talos-hostboot-6cc4d5078e348fba2a3984cb41a1913b2874c466.zip
Again try to fix checkpoint issue with fips930 simics
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>
Diffstat (limited to 'src/build')
-rwxr-xr-xsrc/build/simics/startup.simics13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/build/simics/startup.simics b/src/build/simics/startup.simics
index 884fd0e27..a6534be01 100755
--- a/src/build/simics/startup.simics
+++ b/src/build/simics/startup.simics
@@ -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"}
OpenPOWER on IntegriCloud