mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
26 lines
439 B
Bash
26 lines
439 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
ARGS="$@"
|
||
|
|
||
|
FPGA=root@137.226.133.220
|
||
|
|
||
|
BUILDDIR=${BUILDDIR:-$(pwd)}
|
||
|
|
||
|
mkdir -p out
|
||
|
make install DESTDIR=${BUILDDIR}/out
|
||
|
|
||
|
ssh-copy-id -i ~/.ssh/id_rsa ${FPGA}
|
||
|
|
||
|
rsync --progress -a ${BUILDDIR}/out/usr/local/ ${FPGA}:/villas/
|
||
|
|
||
|
ssh ${FPGA} <<'ENDSSH'
|
||
|
# commands to run on remote host
|
||
|
|
||
|
mkdir -p /etc/ld.so.conf.d/
|
||
|
echo "/villas/lib" > /etc/ld.so.conf.d/villas.conf
|
||
|
ldconfig
|
||
|
villas-node -V
|
||
|
ENDSSH
|
||
|
|
||
|
ssh ${FPGA} /villas/bin/villas-node
|