summaryrefslogtreecommitdiffstats
path: root/setdevenv
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-08-31 10:47:56 +0000
committerRichard Purdie <richard@openedhand.com>2005-08-31 10:47:56 +0000
commitf54da734eb7b69e8e34de505bd89a13479e230e0 (patch)
treef796bea6f5683dfe3d591ca5390d12fd78e59c96 /setdevenv
parent4b46c1f6e891b1ddd5968536440b888661fade3e (diff)
downloadpoky-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-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.