Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved Salt-specific rootfs files to dedicated folder. make_salt.sh sc…
…ript allows to make the board recognized as Salt (by writing to ~/.bela/belaconfig). Fixed board_detect Makefile.
- Loading branch information
1 parent
0b4b080
commit e4faecc
Showing
5 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
board_detect: | ||
gcc main.cpp -I../../../include board_detect.cpp -o board_detect | ||
g++ main.cpp -I../../../include board_detect.cpp -o board_detect | ||
|
||
install: board_detect | ||
cp board_detect /usr/local/bin/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
EXAMPLE_FOLDER=13-Salt | ||
BELA_CONFIG=~/.bela/belaconfig | ||
TMP_BELA_CONFIG=/tmp/belaconfig | ||
|
||
uname -a 2>/dev/null | grep -q bela || { | ||
echo "Error: this script must be run on the Bela board" >&2 | ||
exit 1; | ||
} | ||
|
||
cp -r resources/salt/rootfs/* / | ||
|
||
mkdir -p `dirname $BELA_CONFIG` | ||
touch $BELA_CONFIG | ||
grep -v "\s*BOARD=" $BELA_CONFIG > $TMP_BELA_CONFIG || true | ||
echo "BOARD=Salt" >> $TMP_BELA_CONFIG | ||
mv $TMP_BELA_CONFIG $BELA_CONFIG | ||
|
||
echo $1 | ||
if [ "$1" = "--examples" ] | ||
then | ||
for e in `cd examples/$EXAMPLE_FOLDER/ && ls` | ||
do | ||
if [ "$e" != salt-demo ] | ||
then | ||
PROJECTNAME=loop_$e | ||
echo Building project $PROJECTNAME | ||
make EXAMPLE=$EXAMPLE_FOLDER/$e PROJECT=$PROJECTNAME | ||
fi | ||
done | ||
make -C ~/Bela startuploop | ||
fi | ||
|