diff options
author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:47:56 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:47:56 +0000 |
commit | f54da734eb7b69e8e34de505bd89a13479e230e0 (patch) | |
tree | f796bea6f5683dfe3d591ca5390d12fd78e59c96 /setdevenv | |
parent | 4b46c1f6e891b1ddd5968536440b888661fade3e (diff) | |
download | poky-f54da734eb7b69e8e34de505bd89a13479e230e0.tar.gz |
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@2 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'setdevenv')
-rwxr-xr-x | setdevenv | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/setdevenv b/setdevenv new file mode 100755 index 0000000000..c6945ca16a --- /dev/null +++ b/setdevenv | |||
@@ -0,0 +1,44 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # | ||
4 | # Change this to the location of this file. | ||
5 | # Also update the locations at the top of conf/local.conf | ||
6 | # | ||
7 | OEROOT=/usr/ohoe/ | ||
8 | |||
9 | BBDIR=$OEROOT/bitbake/ | ||
10 | PKGDIR=$OEROOT/openembedded/ | ||
11 | BUILDDIR=$OEROOT/build/ | ||
12 | |||
13 | PATH=$BBDIR/bin/:$PATH | ||
14 | |||
15 | cd $BUILDDIR | ||
16 | |||
17 | # Remove any symlinks from paths | ||
18 | BBDIR=`readlink -f $BBDIR` | ||
19 | PKGDIR=`readlink -f $PKGDIR` | ||
20 | BUILDDIR=`readlink -f $BUILDDIR` | ||
21 | |||
22 | if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then | ||
23 | echo >&2 "Error: Not all directories exist!" | ||
24 | exit 1 | ||
25 | fi | ||
26 | |||
27 | BBPATH=$BBDIR | ||
28 | if test x"$BBDIR" != x"$PKGDIR"; then | ||
29 | BBPATH=$PKGDIR:$BBPATH | ||
30 | fi | ||
31 | if test x"$PKGDIR" != x"$BUILDDIR"; then | ||
32 | BBPATH=$BUILDDIR:$BBPATH | ||
33 | fi | ||
34 | export BBPATH | ||
35 | |||
36 | |||
37 | # Blank this so we don't link non-arm libraries | ||
38 | LD_LIBRARY_PATH= | ||
39 | # Don't export TARGET_ARCH - it *will* cause build failures | ||
40 | export PATH LD_LIBRARY_PATH OEPATH | ||
41 | # Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really | ||
42 | export LANG=C | ||
43 | |||
44 | echo Environment set up for OpenEmbedded development. | ||