update to make dest dir easier to chaneg

This commit is contained in:
bunnie 2020-10-15 01:04:23 +08:00
parent 9ee43a7acc
commit b0680c2669

View file

@ -10,6 +10,8 @@ then
exit 0 exit 0
fi fi
DESTDIR=code/bin
# notes: # notes:
# xous-stage1.bin written to 0x2050_0000 (64k erase block size) # xous-stage1.bin written to 0x2050_0000 (64k erase block size)
# xous-kernel.bin written to 0x2051_0000 => passed as a0 arg to xous-stage1.bin # xous-kernel.bin written to 0x2051_0000 => passed as a0 arg to xous-stage1.bin
@ -29,13 +31,13 @@ if [ $# -gt 0 ]
then then
if [ -z "$2" ] if [ -z "$2" ]
then then
scp target/riscv32imac-unknown-none-elf/release/xous.img $1:code/betrusted-scripts/ scp target/riscv32imac-unknown-none-elf/release/xous.img $1:$DESTDIR/
scp ../betrusted-soc/build/gateware/encrypted.bin $1:code/betrusted-scripts/ scp ../betrusted-soc/build/gateware/encrypted.bin $1:$DESTDIR/
scp ../betrusted-soc/build/csr.csv $1:code/betrusted-scripts/soc-csr.csv scp ../betrusted-soc/build/csr.csv $1:$DESTDIR/soc-csr.csv
else else
scp -i $2 target/riscv32imac-unknown-none-elf/release/xous.img $1:code/betrusted-scripts/ scp -i $2 target/riscv32imac-unknown-none-elf/release/xous.img $1:$DESTDIR/
scp -i $2 ../betrusted-soc/build/gateware/encrypted.bin $1:code/betrusted-scripts/ scp -i $2 ../betrusted-soc/build/gateware/encrypted.bin $1:$DESTDIR/
scp -i $2 ../betrusted-soc/build/csr.csv $1:code/betrusted-scripts/soc-csr.csv scp -i $2 ../betrusted-soc/build/csr.csv $1:$DESTDIR/soc-csr.csv
fi fi
else else
echo "Copy to target with $0 <user@host> <ssh-id>" echo "Copy to target with $0 <user@host> <ssh-id>"