summaryrefslogtreecommitdiff
path: root/toolchain/environment-setup
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-05-02 20:32:37 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-05-02 20:32:37 +0200
commitd1daccfd3f00d73e51dedfc452f103e6aeb77d13 (patch)
tree979cae37faebea15fd9627c567651bc5031412aa /toolchain/environment-setup
New build environment and documentation.
Diffstat (limited to 'toolchain/environment-setup')
-rwxr-xr-xtoolchain/environment-setup14
1 files changed, 14 insertions, 0 deletions
diff --git a/toolchain/environment-setup b/toolchain/environment-setup
new file mode 100755
index 0000000..ebac354
--- /dev/null
+++ b/toolchain/environment-setup
@@ -0,0 +1,14 @@
+if [ -z "$ZSH_NAME" ] && [ "x$0" = "x./environment-setup" ]; then
+ echo "Error: This script needs to be sourced. Please run as \". ./environment-setup\""
+ exit 1
+else
+ if [ -n "$BASH_SOURCE" ]; then
+ SCRIPT_PATH="`dirname $BASH_SOURCE`"
+ fi
+ pushd $SCRIPT_PATH
+ SDK_PATH=$PWD
+ popd > /dev/null
+# export PATH=$SDK_PATH/arm-toolchain/bin:$PATH
+ export PATH=/home/deva/pedal2metal.old/tools/arm-toolchain/bin/:$PATH
+fi
+export PS1="\[\e[32;1m\][p2m]\[\e[0m\]:\w> "