Skip to content

Commit

Permalink
boot_tests: add PFLASH_TO_COPY for OpenBMC
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
stewartsmith committed Jul 20, 2017
1 parent 293b5ac commit 446d0f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions external/boot-tests/openbmc_support.sh
Expand Up @@ -5,6 +5,7 @@ BOOT_TIMEOUT="5";
SSHUSER=${SSHUSER:-root};
export SSHPASS=${SSHPASS:-0penBmc};

PFLASH_TO_COPY=${PFLASH_TO_COPY:-}
PFLASH_BINARY=/usr/sbin/pflash

# How do we SSH/SCP in?
Expand Down Expand Up @@ -39,6 +40,11 @@ function force_primary_side {
}

function flash {
if [ ! -z "$PFLASH_TO_COPY" ]; then
remotecp $PFLASH_TO_COPY $target /tmp/pflash
$SSHCMD chmod +x /tmp/pflash
PFLASH_BINARY=/tmp/pflash
fi
if [ ! -z "$PNOR" ]; then
remotecp $PNOR $target /tmp/image.pnor;
fi
Expand Down

0 comments on commit 446d0f2

Please sign in to comment.