-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add environment setup scripts, update READMD.md, add Makefile for dev…
…ices
- Loading branch information
1 parent
86053bd
commit 73c6d00
Showing
5 changed files
with
146 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
.PHONY: clean all | ||
|
||
clean all: | ||
$(MAKE) -C devices/LinuxThermal $(MAKECMDGOALS) | ||
$(MAKE) -C devices $(MAKECMDGOALS) |
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
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,10 @@ | ||
# | ||
# Makefile | ||
# | ||
# Makefile for sample workspace devices | ||
# | ||
|
||
.PHONY: clean all | ||
|
||
clean all: | ||
$(MAKE) -C LinuxThermal $(MAKECMDGOALS) |
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,38 @@ | ||
self="${BASH_SOURCE[0]}" | ||
if [ "$self" == "$0" ] ; then | ||
echo "This file must be sourced from bash, not run." | ||
echo "Usage: . $0" | ||
exit 1 | ||
fi | ||
if [ -d $self ] ; then | ||
basedir="$(cd "$self" ; pwd -P)" | ||
else | ||
basedir="$(cd "$(dirname "$self")" ; pwd -P)" | ||
fi | ||
osname=`uname` | ||
osarch=`uname -m` | ||
export PROJECT_BASE="$basedir" | ||
export MACCHINA_BASE="$$PROJECT_BASE/macchina.io" | ||
export MACCHINA_VERSION=`cat $MACCHINA_BASE/VERSION` | ||
export MACCHINA_CODECACHE="$PROJECT_BASE/var/cache/bundles" | ||
export POCO_BASE="$MACCHINA_BASE/platform" | ||
if [ $osname = "Darwin" ] ; then | ||
export DYLD_LIBRARY_PATH=$MACCHINA_CODECACHE:$POCO_BASE/lib/$osname/$osarch:$DYLD_LIBRARY_PATH | ||
libPath=$DYLD_LIBRARY_PATH | ||
libPathVar="DYLD_LIBRARY_PATH" | ||
else | ||
export LD_LIBRARY_PATH=$MACCHINA_CODECACHE:$POCO_BASE/lib/$osname/$osarch:$LD_LIBRARY_PATH | ||
libPath=$LD_LIBRARY_PATH | ||
libPathVar="LD_LIBRARY_PATH " | ||
fi | ||
|
||
mkdir -p $MACCHINA_CODECACHE | ||
|
||
echo "macchina.io build environment set." | ||
echo "" | ||
echo "\$MACCHINA_BASE = $MACCHINA_BASE" | ||
echo "\$PROJECT_BASE = $PROJECT_BASE" | ||
echo "\$POCO_BASE = $POCO_BASE" | ||
echo "\$MACCHINA_VERSION = $MACCHINA_VERSION" | ||
echo "\$$libPathVar = $libPath" | ||
echo "" |
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,28 @@ | ||
basedir=`pwd` | ||
osname=`uname` | ||
osarch=`uname -m` | ||
export PROJECT_BASE="$basedir" | ||
export MACCHINA_BASE="$basedir/macchina.io" | ||
export MACCHINA_VERSION=`cat $MACCHINA_BASE/VERSION` | ||
export MACCHINA_CODECACHE="$PROJECT_BASE/var/cache/bundles" | ||
export POCO_BASE="$MACCHINA_BASE/platform" | ||
if [ $osname = "Darwin" ] ; then | ||
export DYLD_LIBRARY_PATH=$MACCHINA_CODECACHE:$POCO_BASE/lib/$osname/$osarch:$DYLD_LIBRARY_PATH | ||
libPath=$DYLD_LIBRARY_PATH | ||
libPathVar="DYLD_LIBRARY_PATH" | ||
else | ||
export LD_LIBRARY_PATH=$MACCHINA_CODECACHE:$POCO_BASE/lib/$osname/$osarch:$LD_LIBRARY_PATH | ||
libPath=$LD_LIBRARY_PATH | ||
libPathVar="LD_LIBRARY_PATH " | ||
fi | ||
|
||
mkdir -p $MACCHINA_CODECACHE | ||
|
||
echo "macchina.io build environment set." | ||
echo "" | ||
echo "\$MACCHINA_BASE = $MACCHINA_BASE" | ||
echo "\$PROJECT_BASE = $PROJECT_BASE" | ||
echo "\$POCO_BASE = $POCO_BASE" | ||
echo "\$MACCHINA_VERSION = $MACCHINA_VERSION" | ||
echo "\$$libPathVar = $libPath" | ||
echo "" |