comparison scripts/build_pd.sh @ 162:c3e8226a5651 heavy-updated

- added additional flags to C rules (-DNDEBUG, -mfpu=neon) - sample-accurate envelope triggering pd/heavy example
author chnrx <chris.heinrichs@gmail.com>
date Thu, 12 Nov 2015 14:59:46 +0000
parents 07735c9d95c8
children 40badaff5729
comparison
equal deleted inserted replaced
161:07735c9d95c8 162:c3e8226a5651
18 RUN_WITHOUT_SCREEN=1 18 RUN_WITHOUT_SCREEN=1
19 19
20 function usage 20 function usage
21 { 21 {
22 echo " 22 echo "
23 USAGE: build_pd.sh [[-i input folder containing _main.pd file ] [-o output folder for new heavy project .c files (default ../projects/heavy/hvtemp)] [-r don't replace render.cpp file in destination project folder] [-b bbb path to copy to (default ~/BeagleRT)] | [-h]] 23 USAGE: build_pd.sh [[-i input folder containing _main.pd file ] [-o output folder for new heavy project .c files (default ../projects/heavy/hvtemp)] [-b bbb path to copy to (default ~/BeagleRT)] | [-h]]
24 " 24 "
25 echo "example: build_pd.sh -i ../projects/heavy/pd/hello-world -o ../projects/heavy/hello-world" 25 echo "example: build_pd.sh -i ../projects/heavy/pd/hello-world -o ../projects/heavy/hello-world"
26 } 26 }
27 27
28 while [ "$1" != "" ]; do 28 while [ "$1" != "" ]; do
76 echo ":( :( :( ERROR: while synchronizing files with the BBB. Is the board connected and the correct SD card inserted? :( :( :("; 76 echo ":( :( :( ERROR: while synchronizing files with the BBB. Is the board connected and the correct SD card inserted? :( :( :(";
77 echo ""; 77 echo "";
78 exit 1; 78 exit 1;
79 fi; 79 fi;
80 80
81 # remove old executable and heavy context .o/.d files
82 ssh $BBB_ADDRESS "rm $BBB_PATH/BeagleRT $BBB_PATH/build/source/HvContext_bbb.d $BBB_PATH/build/source/HvContext_bbb.o";
83
81 # Make new BeagleRT executable and run 84 # Make new BeagleRT executable and run
82 if [ $RUN_PROJECT -eq 0 ] 85 if [ $RUN_PROJECT -eq 0 ]
83 then 86 then
84 echo "Building project..." 87 echo "Building project..."
85 ssh $BBB_ADDRESS "make all -C $BBB_PATH" 88 ssh $BBB_ADDRESS "make all -C $BBB_PATH"