comparison scripts/build_pd.sh @ 190:3b8a28edae41

- Updated heavy scripts to work with custom header - Added -mfpu=neon flag to Makefile for custom .C files
author chnrx <chris.heinrichs@gmail.com>
date Wed, 27 Jan 2016 19:13:57 +0000
parents 28d1473742bc
children b5d59cf94c64
comparison
equal deleted inserted replaced
189:7144c5594d16 190:3b8a28edae41
49 exit 1 49 exit 1
50 esac 50 esac
51 shift 51 shift
52 done 52 done
53 53
54 # remove old static files to avoid obsolete errors
55 rm "$projectpath"/Hv* "$projectpath"/Message* "$projectpath"/Control* "$projectpath"/Signal* &>/dev/null
56
54 /usr/bin/python hvresources/uploader.py "$pdpath"/ -n bbb -g c -o "$projectpath"/; 57 /usr/bin/python hvresources/uploader.py "$pdpath"/ -n bbb -g c -o "$projectpath"/;
55 if [ $? -ne 0 ]; then 58 if [ $? -ne 0 ]; then
56 /usr/local/bin/python hvresources/uploader.py "$pdpath"/ -n bbb -g c -o "$projectpath"/; 59 /usr/local/bin/python hvresources/uploader.py "$pdpath"/ -n bbb -g c -o "$projectpath"/;
57 if [ $? -ne 0 ]; then 60 if [ $? -ne 0 ]; then
58 #echo "ERROR: an error occurred while executing the uploader.py script" 61 #echo "ERROR: an error occurred while executing the uploader.py script"
64 #echo "*|*|* Successfully uploaded and converted pd patch into super-fast optimized C code. Brought to you by Heavy! *|*|*"; 67 #echo "*|*|* Successfully uploaded and converted pd patch into super-fast optimized C code. Brought to you by Heavy! *|*|*";
65 echo ""; 68 echo "";
66 69
67 # check how to copy/sync render.cpp file... 70 # check how to copy/sync render.cpp file...
68 if [ $render -eq 0 ]; then 71 if [ $render -eq 0 ]; then
69 rsync "hvresources/render.cpp" $projectpath/ --ignore-existing; 72 cp "hvresources/render.cpp" $projectpath/;
70 fi; 73 fi;
71 74
72 rsync -c -r "$projectpath"/ "$BBB_ADDRESS":"$BBB_PATH"/source; 75 cp "hvresources/HvUtils.h" $projectpath/;
76
77 echo "updating files on board..."
78
79 rsync -c -r --exclude 'HvContext*' "$projectpath"/ "$BBB_ADDRESS":"$BBB_PATH"/source;
80
81 scp "$projectpath"/HvContext* "$BBB_ADDRESS":"$BBB_PATH"/source;
73 82
74 if [ $? -ne 0 ]; then 83 if [ $? -ne 0 ]; then
75 echo ""; 84 echo "";
76 echo ":( :( :( ERROR: while synchronizing files with the BBB. Is the board connected and the correct SD card inserted? :( :( :("; 85 echo ":( :( :( ERROR: while synchronizing files with the BBB. Is the board connected and the correct SD card inserted? :( :( :(";
77 echo ""; 86 echo "";