diff options
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. | ||