Make setdevenv automagically setup local.conf if it dont exist
git-svn-id: https://svn.o-hand.com/repos/poky@4 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
parent
d3fa3b8f9c
commit
8e65c870f9
|
@ -20,11 +20,12 @@
|
||||||
# expansion. Stuff like starting with ${HOME} or ${TOPDIR} is ok).
|
# expansion. Stuff like starting with ${HOME} or ${TOPDIR} is ok).
|
||||||
|
|
||||||
# Use this to specify where BitBake should place the downloaded sources into
|
# Use this to specify where BitBake should place the downloaded sources into
|
||||||
DL_DIR = "${HOME}/sources"
|
DL_DIR = "POKYROOT/sources"
|
||||||
|
|
||||||
# Delete the line below. Then specify which .bb files to consider for
|
# Delete the line below. Then specify which .bb files to consider for
|
||||||
# your build. Typically this will be something like BBFILES = "/path/to/openembedded/packages/*/*.bb"
|
# your build. Typically this will be something like BBFILES = "/path/to/openembedded/packages/*/*.bb"
|
||||||
BBFILES := "${@bb.fatal('Edit your conf/local.conf: BBFILES')}"
|
#BBFILES := "${@bb.fatal('Edit your conf/local.conf: BBFILES')}"
|
||||||
|
BBFILES := "POKYROOT/openembedded/packages/*/*.bb"
|
||||||
|
|
||||||
# Use the BBMASK below to instruct BitBake to _NOT_ consider some .bb files
|
# Use the BBMASK below to instruct BitBake to _NOT_ consider some .bb files
|
||||||
# This is a regulary expression, so be sure to get your parenthesis balanced.
|
# This is a regulary expression, so be sure to get your parenthesis balanced.
|
||||||
|
@ -119,4 +120,4 @@ BBINCLUDELOGS = "yes"
|
||||||
CVS_TARBALL_STASH = "http://www.oesources.org/source/current/"
|
CVS_TARBALL_STASH = "http://www.oesources.org/source/current/"
|
||||||
|
|
||||||
# EDIT THIS FILE and then remove the line below before using!
|
# EDIT THIS FILE and then remove the line below before using!
|
||||||
REMOVE_THIS_LINE:="${@oe.fatal('Read the comments in your conf/local.conf')}"
|
#REMOVE_THIS_LINE:="${@oe.fatal('Read the comments in your conf/local.conf')}"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# Change this to the location of this file.
|
# Change this to the location of this file.
|
||||||
# Also update the locations at the top of conf/local.conf
|
# Also update the locations at the top of conf/local.conf
|
||||||
#
|
#
|
||||||
OEROOT=/usr/ohoe/
|
OEROOT=`pwd`
|
||||||
|
|
||||||
BBDIR=$OEROOT/bitbake/
|
BBDIR=$OEROOT/bitbake/
|
||||||
PKGDIR=$OEROOT/openembedded/
|
PKGDIR=$OEROOT/openembedded/
|
||||||
|
@ -20,10 +20,15 @@ PKGDIR=`readlink -f $PKGDIR`
|
||||||
BUILDDIR=`readlink -f $BUILDDIR`
|
BUILDDIR=`readlink -f $BUILDDIR`
|
||||||
|
|
||||||
if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then
|
if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then
|
||||||
echo >&2 "Error: Not all directories exist!"
|
echo >&2 "Error: Not all directories exist! Did you run this script in poky directory?"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if !(test -r $PKGDIR/conf/local.conf); then
|
||||||
|
echo "Setting up initial '$PKGDIR/conf/local.conf'."
|
||||||
|
cat $PKGDIR/conf/local.conf.sample | sed -e"s|POKYROOT|${OEROOT}|" > $PKGDIR/conf/local.conf
|
||||||
|
fi
|
||||||
|
|
||||||
BBPATH=$BBDIR
|
BBPATH=$BBDIR
|
||||||
if test x"$BBDIR" != x"$PKGDIR"; then
|
if test x"$BBDIR" != x"$PKGDIR"; then
|
||||||
BBPATH=$PKGDIR:$BBPATH
|
BBPATH=$PKGDIR:$BBPATH
|
||||||
|
|
Loading…
Reference in New Issue