Message ID | 20170720053621.3019-1-stewart@linux.vnet.ibm.com |
---|---|
State | Accepted |
Headers | show |
Stewart Smith <stewart@linux.vnet.ibm.com> writes: > Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> > --- > external/boot-tests/openbmc_support.sh | 6 ++++++ > 1 file changed, 6 insertions(+) Merged to master as of 0b134f57306b8f1e0f2d9eedd0baf9d73488f4be
diff --git a/external/boot-tests/openbmc_support.sh b/external/boot-tests/openbmc_support.sh index 54036b9076ee..8c0b29677a1d 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
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> --- external/boot-tests/openbmc_support.sh | 6 ++++++ 1 file changed, 6 insertions(+)