Prep script

From Attie's Wiki
Revision as of 14:49, 7 October 2011 by Attie (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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-
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox