summaryrefslogtreecommitdiffstats
path: root/setdevenv
diff options
context:
space:
mode:
Diffstat (limited to 'setdevenv')
-rwxr-xr-xsetdevenv44
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#
7OEROOT=/usr/ohoe/
8
9BBDIR=$OEROOT/bitbake/
10PKGDIR=$OEROOT/openembedded/
11BUILDDIR=$OEROOT/build/
12
13PATH=$BBDIR/bin/:$PATH
14
15cd $BUILDDIR
16
17# Remove any symlinks from paths
18BBDIR=`readlink -f $BBDIR`
19PKGDIR=`readlink -f $PKGDIR`
20BUILDDIR=`readlink -f $BUILDDIR`
21
22if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then
23 echo >&2 "Error: Not all directories exist!"
24 exit 1
25fi
26
27BBPATH=$BBDIR
28if test x"$BBDIR" != x"$PKGDIR"; then
29 BBPATH=$PKGDIR:$BBPATH
30fi
31if test x"$PKGDIR" != x"$BUILDDIR"; then
32 BBPATH=$BUILDDIR:$BBPATH
33fi
34export BBPATH
35
36
37# Blank this so we don't link non-arm libraries
38LD_LIBRARY_PATH=
39# Don't export TARGET_ARCH - it *will* cause build failures
40export PATH LD_LIBRARY_PATH OEPATH
41# Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really
42export LANG=C
43
44echo Environment set up for OpenEmbedded development.