diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-02 20:32:37 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-02 20:32:37 +0200 |
commit | d1daccfd3f00d73e51dedfc452f103e6aeb77d13 (patch) | |
tree | 979cae37faebea15fd9627c567651bc5031412aa /toolchain/environment-setup |
New build environment and documentation.
Diffstat (limited to 'toolchain/environment-setup')
-rwxr-xr-x | toolchain/environment-setup | 14 |
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> " |