mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
modify the update_ci script to be aware of the release tree
This commit is contained in:
parent
e4c79a5f47
commit
7bfdce147c
1 changed files with 21 additions and 4 deletions
|
|
@ -1,27 +1,44 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
wget https://ci.betrusted.io/latest-ci/loader.bin -O /tmp/loader.bin
|
||||
# populate with an invalid default so the equals compares work downstream
|
||||
ARG1=${1:-bogus}
|
||||
|
||||
if [ $ARG1 == "-s" ]; then
|
||||
echo "Updating to latest stabilized release"
|
||||
wget https://ci.betrusted.io/releases/LATEST -O /tmp/LATEST
|
||||
REV=`cat /tmp/LATEST`
|
||||
REVISION="releases/${REV}"
|
||||
elif [ $ARG1 == "-b" ]; then
|
||||
echo "Updating to bleeding edge release"
|
||||
REVISION="latest-ci"
|
||||
else
|
||||
echo "Usage: ${0} [-s] [-b]"
|
||||
echo "One of -s or -b must be specified for either stabilized or bleeding edge branches"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
wget https://ci.betrusted.io/$REVISION/loader.bin -O /tmp/loader.bin
|
||||
./usb_update.py -s /tmp/loader.bin
|
||||
rm /tmp/loader.bin
|
||||
|
||||
echo "waiting for device to reboot"
|
||||
sleep 5
|
||||
|
||||
wget https://ci.betrusted.io/latest-ci/xous.img -O /tmp/xous.img
|
||||
wget https://ci.betrusted.io/$REVISION/xous.img -O /tmp/xous.img
|
||||
./usb_update.py -k /tmp/xous.img
|
||||
rm /tmp/xous.img
|
||||
|
||||
echo "waiting for device to reboot"
|
||||
sleep 5
|
||||
|
||||
wget https://ci.betrusted.io/latest-ci/soc_csr.bin -O /tmp/soc_csr.bin
|
||||
wget https://ci.betrusted.io/$REVISION/soc_csr.bin -O /tmp/soc_csr.bin
|
||||
./usb_update.py -s /tmp/soc_csr.bin
|
||||
rm /tmp/soc_csr.bin
|
||||
|
||||
echo "waiting for device to reboot"
|
||||
sleep 5
|
||||
|
||||
wget https://ci.betrusted.io/latest-ci/ec_fw.bin -O /tmp/ec_fw.bin
|
||||
wget https://ci.betrusted.io/$REVISION/ec_fw.bin -O /tmp/ec_fw.bin
|
||||
./usb_update.py -e /tmp/ec_fw.bin
|
||||
rm /tmp/ec_fw.bin
|
||||
|
|
|
|||
Loading…
Reference in a new issue