Prep script

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m (Created page with '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 yo…')
 

Latest revision as of 14:49, 7 October 2011

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