diff options
| author | Patrick Williams <iawillia@us.ibm.com> | 2011-10-17 18:49:47 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2011-10-19 13:05:26 -0500 |
| commit | 3977f21e31ae5dccdbf0dbf792dd978c33568726 (patch) | |
| tree | 74e97d6fe70d88d2bc7ded570473c484296bb0d5 /src/build/tools/hb | |
| parent | a985ab36e4a1077cd63107f32e336d3e9a725dc1 (diff) | |
| download | talos-hostboot-3977f21e31ae5dccdbf0dbf792dd978c33568726.tar.gz talos-hostboot-3977f21e31ae5dccdbf0dbf792dd978c33568726.zip | |
HB script: remove 'machine' message.
Change-Id: I771210da0108179b1dc3b9be8667dc3e15021374
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/442
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build/tools/hb')
| -rwxr-xr-x | src/build/tools/hb | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/build/tools/hb b/src/build/tools/hb index 2a2f2e930..450c82c5f 100755 --- a/src/build/tools/hb +++ b/src/build/tools/hb @@ -44,6 +44,13 @@ execute_in_sandbox() rm ${SANDBOXBASE}/src/sandbox_execute_cmd } +needs_machine_variable() +{ + MACHINE=${MACHINE:-$DEFAULT_MACHINE} + export MACHINE + echo "Setting up for Machine = $MACHINE" +} + hb_helptext() { echo "Hostboot Utility Script" @@ -228,6 +235,7 @@ hb_prime() echo "Sandbox does not exist. Create with 'hb simsetup." exit -1 fi + needs_machine_variable cpfiles.pl $* else echo "SANDBOXBASE not set." @@ -259,7 +267,8 @@ hb_simsetup() mksb -rc ${SANDBOXRC} -dir ${SANDBOXROOT} -back $DRIVER \ -sb ${SANDBOXNAME} -m ppc - execute_in_sandbox "start_simics -no_start -machine ${MACHINE:-$DEFAULT_MACHINE}" + needs_machine_variable + execute_in_sandbox "start_simics -no_start -machine ${MACHINE}" echo "Running workarounds." cp ${HOSTBOOTROOT}/src/build/citest/etc/workarounds ${SANDBOXBASE}/src @@ -290,8 +299,9 @@ hb_startsimics() exit -1 fi + needs_machine_variable execute_in_sandbox \ - "start_simics -machine ${MACHINE:-$DEFAULT_MACHINE} ${SIMICSOPTIONS} $*" + "start_simics -machine ${MACHINE} ${SIMICSOPTIONS} $*" } hb_rsync() @@ -336,10 +346,6 @@ fi FIRST_PARAM=$1 shift -MACHINE=${MACHINE:-$DEFAULT_MACHINE} -export MACHINE -echo "Setting up for Machine = $MACHINE" - case ${FIRST_PARAM} in workon) hb_workon $* |

