aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-07-20 11:29:00 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-07-20 11:29:00 +1000
commit446d0f24f02596d348cf3523dcc0c64e3acf9467 (patch)
tree72fda2bd345865c5d5db2a6692ec196f66f1af97 /external
parent293b5ac60b3f35e84ed4e0cc28c943b3caab5159 (diff)
downloadskiboot-446d0f24f02596d348cf3523dcc0c64e3acf9467.zip
skiboot-446d0f24f02596d348cf3523dcc0c64e3acf9467.tar.gz
skiboot-446d0f24f02596d348cf3523dcc0c64e3acf9467.tar.bz2
boot_tests: add PFLASH_TO_COPY for OpenBMC
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r--external/boot-tests/openbmc_support.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/external/boot-tests/openbmc_support.sh b/external/boot-tests/openbmc_support.sh
index 54036b9..8c0b296 100644
--- a/external/boot-tests/openbmc_support.sh
+++ b/external/boot-tests/openbmc_support.sh
@@ -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?
@@ -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