diff options
Diffstat (limited to 'setdevenv')
-rwxr-xr-x | setdevenv | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -4,7 +4,7 @@ | |||
4 | # Change this to the location of this file. | 4 | # Change this to the location of this file. |
5 | # Also update the locations at the top of conf/local.conf | 5 | # Also update the locations at the top of conf/local.conf |
6 | # | 6 | # |
7 | OEROOT=/usr/ohoe/ | 7 | OEROOT=`pwd` |
8 | 8 | ||
9 | BBDIR=$OEROOT/bitbake/ | 9 | BBDIR=$OEROOT/bitbake/ |
10 | PKGDIR=$OEROOT/openembedded/ | 10 | PKGDIR=$OEROOT/openembedded/ |
@@ -20,10 +20,15 @@ PKGDIR=`readlink -f $PKGDIR` | |||
20 | BUILDDIR=`readlink -f $BUILDDIR` | 20 | BUILDDIR=`readlink -f $BUILDDIR` |
21 | 21 | ||
22 | if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then | 22 | if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then |
23 | echo >&2 "Error: Not all directories exist!" | 23 | echo >&2 "Error: Not all directories exist! Did you run this script in poky directory?" |
24 | exit 1 | 24 | exit 1 |
25 | fi | 25 | fi |
26 | 26 | ||
27 | if !(test -r $PKGDIR/conf/local.conf); then | ||
28 | echo "Setting up initial '$PKGDIR/conf/local.conf'." | ||
29 | cat $PKGDIR/conf/local.conf.sample | sed -e"s|POKYROOT|${OEROOT}|" > $PKGDIR/conf/local.conf | ||
30 | fi | ||
31 | |||
27 | BBPATH=$BBDIR | 32 | BBPATH=$BBDIR |
28 | if test x"$BBDIR" != x"$PKGDIR"; then | 33 | if test x"$BBDIR" != x"$PKGDIR"; then |
29 | BBPATH=$PKGDIR:$BBPATH | 34 | BBPATH=$PKGDIR:$BBPATH |