Mercurial > hg > beaglert
comparison scripts/setup_board.sh @ 300:dbeed520b014 prerelease
Renamed projects to examples
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Fri, 27 May 2016 13:58:20 +0100 |
parents | 0357b8df93a5 |
children | ff5f346a293e |
comparison
equal
deleted
inserted
replaced
297:a3d83ebdf49b | 300:dbeed520b014 |
---|---|
33 echo "Copying BeagleRT core files to $BBB_PATH" | 33 echo "Copying BeagleRT core files to $BBB_PATH" |
34 | 34 |
35 shift $((OPTIND-1)) | 35 shift $((OPTIND-1)) |
36 | 36 |
37 # Find location of this script so we can locate the rest of the files | 37 # Find location of this script so we can locate the rest of the files |
38 SCRIPTPATH=$(readlink -f "$0") | 38 SCRIPTPATH=$(readlink "$0") |
39 SCRIPTDIR=$(dirname "$SCRIPTPATH") | 39 SCRIPTDIR=$(dirname "$SCRIPTPATH") |
40 | 40 |
41 read -p "Warning: this script will DELETE any existing BeagleRT files from your BeagleBone! Continue? (y/N)" -r | 41 read -p "Warning: this script will DELETE any existing BeagleRT files from your BeagleBone! Continue? (y/N)" -r |
42 echo | 42 echo |
43 if [[ $REPLY = [yY] ]] | 43 if [[ $REPLY = [yY] ]] |
46 echo "Stopping BeagleRT and removing old files." | 46 echo "Stopping BeagleRT and removing old files." |
47 ssh $BBB_ADDRESS "screen -X -S BeagleRT quit &>/dev/null; pkill BeagleRT; sleep 0.5 ; rm -rf $BBB_PATH ; mkdir $BBB_PATH" | 47 ssh $BBB_ADDRESS "screen -X -S BeagleRT quit &>/dev/null; pkill BeagleRT; sleep 0.5 ; rm -rf $BBB_PATH ; mkdir $BBB_PATH" |
48 | 48 |
49 # Copy relevant files to BeagleBone Black | 49 # Copy relevant files to BeagleBone Black |
50 echo "Copying new files to BeagleBone..." | 50 echo "Copying new files to BeagleBone..." |
51 scp -r $SCRIPTDIR/../core $SCRIPTDIR/../include $SCRIPTDIR/../Makefile $SCRIPTDIR/../libNE10.a $SCRIPTDIR/../libprussdrv.a $BBB_ADDRESS:$BBB_PATH &&\ | 51 scp -r $SCRIPTDIR/../core $SCRIPTDIR/../include $SCRIPTDIR/../Makefile $SCRIPTDIR/../libNE10.a $SCRIPTDIR/../libprussdrv.a $SCRIPTDIR/../examples $BBB_ADDRESS:$BBB_PATH &&\ |
52 scp $SCRIPTDIR/../libpd.so $BBB_ADDRESS:/usr/lib | 52 scp $SCRIPTDIR/../libpd.so $BBB_ADDRESS:/usr/lib |
53 if [ $? -ne 0 ] | 53 if [ $? -ne 0 ] |
54 then | 54 then |
55 echo "Error while copying files" | 55 echo "Error while copying files" |
56 exit | 56 exit |
57 fi | 57 fi |
58 # Make remaining directories needed for building | 58 # Make remaining directories needed for building |
59 echo "Creating directory structure on BeagleBone..." | 59 echo "Creating directory structure on BeagleBone..." |
60 ssh $BBB_ADDRESS "mkdir -p $BBB_PATH/source ; mkdir -p $BBB_PATH/build ; mkdir -p $BBB_PATH/build/core ; mkdir -p $BBB_PATH/build/source" &&\ | 60 ssh $BBB_ADDRESS "mkdir -p $BBB_PATH/build ; mkdir -p $BBB_PATH/build/core ; mkdir -p $BBB_PATH/build/projects; mkdir -p $BBB_PATH/projects" &&\ |
61 echo "Done." | 61 echo "Done." |
62 else | 62 else |
63 echo "Aborting..." | 63 echo "Aborting..." |
64 fi | 64 fi |
65 | 65 |