Prep script
From Attie's Wiki
When cross compiling (and at other times), it is useful to have a bunch of environmental variables set.
This script helps you keep track of which terminals have them set! All you have to do is source it :)
if [ "$DONEPREP" != "" ]; then echo "Already prepped!" return fi export DONEPREP=yup export PS1="$PS1\[\e[91;1m\]!\[\e[0m\] " ## do your preparation here... E.G: export ARCH=arm export PATH="`pwd`/toolchain/bin/:$PATH" export CROSS_COMPILE=arm-none-linux-gnueabi-