Mercurial > hg > beaglert
diff scripts/build_project.sh @ 377:a430a16d2c02 prerelease
Updated scripts so that the Bela folder on the bbb is ~/Bela. Note: BeagleRT_startup.sh is still the same (because the reference to it needs to be changed in /etc/init.d/ ....
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sat, 11 Jun 2016 01:54:43 +0100 |
parents | 137a87b745d2 |
children | 99de323c13b3 |
line wrap: on
line diff
--- a/scripts/build_project.sh Fri Jun 10 00:56:49 2016 +0100 +++ b/scripts/build_project.sh Sat Jun 11 01:54:43 2016 +0100 @@ -1,13 +1,13 @@ #!/bin/bash # -# This script compiles a BeagleRT project on the BeagleBone Black and +# This script compiles a Bela project on the BeagleBone Black and # optionally runs it. Pass a directory path in the first argument. # The source files in this directory are copied to the board and compiled. # set defaults unless variables are already set [ -z "$BBB_ADDRESS" ] && BBB_ADDRESS="root@192.168.7.2" -[ -z "$BBB_BELA_HOME" ] && BBB_BELA_HOME="~/BeagleRT/" -[ -z "$BBB_SCREEN_NAME" ] && BBB_SCREEN_NAME="BeagleRT" +[ -z "$BBB_BELA_HOME" ] && BBB_BELA_HOME="~/Bela/" +[ -z "$BBB_SCREEN_NAME" ] && BBB_SCREEN_NAME="Bela" [ -z "$RUN_PROJECT" ] && RUN_PROJECT=1 [ -z "$COMMAND_ARGS" ] && COMMAND_ARGS= [ -z "$RUN_IN_FOREGROUND" ] && RUN_IN_FOREGROUND=1 @@ -22,13 +22,13 @@ echo "Usage: $THIS_SCRIPT [-c command-line-args] [-nbfF] <directory-with-source-files>" echo " This script copies a directory of source files to the BeagleBone, compiles - and runs it. The BeagleRT core files should have first been copied over - using the setup_board.sh script supplied with BeagleRT. + and runs it. The Bela core files should have first been copied over + using the setup_board.sh script supplied with Bela. The source directory should contain at least one .c, .cpp or .S file. If the argument -n is passed, the output will not be run after compiling. The -c option passes command-line arguments to - the BeagleRT program; enclose the argument string in quotes. + the Bela program; enclose the argument string in quotes. By default, the project runs in the foreground of the current terminal, within a screen session that can be detached later. The -f argument runs @@ -127,7 +127,7 @@ exit fi -# Make new BeagleRT executable and run +# Make new Bela executable and run MAKE_COMMAND="make -C $BBB_BELA_HOME PROJECT='$BBB_PROJECT_NAME' CL='$COMMAND_ARGS' $BBB_MAKEFILE_OPTIONS" if [ $RUN_PROJECT -eq 0 ] then