poky-setup-builddir: Rename to oe-setup-builddir and clean up POKY variable references
(From OE-Core rev: ac7411a885f53d687e65fdb6fd02510c09b97dc8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e7126c1e53
commit
3ba0b8284d
|
@ -36,7 +36,7 @@ else
|
||||||
OEROOT=`readlink -f "$OEROOT"`
|
OEROOT=`readlink -f "$OEROOT"`
|
||||||
export OEROOT
|
export OEROOT
|
||||||
. $OEROOT/scripts/oe-buildenv-internal
|
. $OEROOT/scripts/oe-buildenv-internal
|
||||||
$OEROOT/scripts/poky-setup-builddir
|
$OEROOT/scripts/oe-setup-builddir
|
||||||
unset OEROOT
|
unset OEROOT
|
||||||
unset BBPATH
|
unset BBPATH
|
||||||
[ -n "$BUILDDIR" ] && cd $BUILDDIR
|
[ -n "$BUILDDIR" ] && cd $BUILDDIR
|
||||||
|
|
|
@ -38,25 +38,25 @@ fi
|
||||||
cd "$BUILDDIR"
|
cd "$BUILDDIR"
|
||||||
|
|
||||||
#
|
#
|
||||||
# $POKYCONF can point to a directory for the template local.conf & bblayers.conf
|
# $TEMPLATECONF can point to a directory for the template local.conf & bblayers.conf
|
||||||
#
|
#
|
||||||
if [ "x" != "x$POKYCONF" ]; then
|
if [ "x" != "x$TEMPLATECONF" ]; then
|
||||||
if ! (test -d "$POKYCONF"); then
|
if ! (test -d "$TEMPLATECONF"); then
|
||||||
# Allow POKYCONF=meta-xyz/conf as a shortcut
|
# Allow TEMPLATECONF=meta-xyz/conf as a shortcut
|
||||||
if [ -d "$OEROOT/$POKYCONF" ]; then
|
if [ -d "$OEROOT/$TEMPLATECONF" ]; then
|
||||||
POKYCONF="$OEROOT/$POKYCONF"
|
TEMPLATECONF="$OEROOT/$POKYCONF"
|
||||||
fi
|
fi
|
||||||
if ! (test -d "$POKYCONF"); then
|
if ! (test -d "$TEMPLATECONF"); then
|
||||||
echo >&2 "Error: '$POKYCONF' must be a directory containing local.conf & bblayers.conf"
|
echo >&2 "Error: '$TEMPLATECONF' must be a directory containing local.conf & bblayers.conf"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
POKYLAYERCONF="$POKYCONF/bblayers.conf"
|
OECORELAYERCONF="$TEMPLATECONF/bblayers.conf"
|
||||||
POKYLOCALCONF="$POKYCONF/local.conf"
|
OECORELOCALCONF="$TEMPLATECONF/local.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "x" = "x$POKYLOCALCONF" ]; then
|
if [ "x" = "x$OECORELOCALCONF" ]; then
|
||||||
POKYLOCALCONF="$OEROOT/meta-yocto/conf/local.conf.sample"
|
OECORELOCALCONF="$OEROOT/meta/conf/local.conf.sample"
|
||||||
fi
|
fi
|
||||||
if ! (test -r "$BUILDDIR/conf/local.conf"); then
|
if ! (test -r "$BUILDDIR/conf/local.conf"); then
|
||||||
cat <<EOM
|
cat <<EOM
|
||||||
|
@ -70,11 +70,11 @@ Also, for more information see the Poky Reference Manual:
|
||||||
http://yoctoproject.org/community/documentation
|
http://yoctoproject.org/community/documentation
|
||||||
|
|
||||||
EOM
|
EOM
|
||||||
cp -f $POKYLOCALCONF $BUILDDIR/conf/local.conf
|
cp -f $OECORELOCALCONF $BUILDDIR/conf/local.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "x" = "x$POKYLAYERCONF" ]; then
|
if [ "x" = "x$OECORELAYERCONF" ]; then
|
||||||
POKYLAYERCONF="$OEROOT/meta-yocto/conf/bblayers.conf.sample"
|
OECORELAYERCONF="$OEROOT/meta/conf/bblayers.conf.sample"
|
||||||
fi
|
fi
|
||||||
if ! (test -r "$BUILDDIR/conf/bblayers.conf"); then
|
if ! (test -r "$BUILDDIR/conf/bblayers.conf"); then
|
||||||
cat <<EOM
|
cat <<EOM
|
||||||
|
@ -89,12 +89,12 @@ EOM
|
||||||
|
|
||||||
# Put the abosolute path to the layers in bblayers.conf so we can run
|
# Put the abosolute path to the layers in bblayers.conf so we can run
|
||||||
# bitbake without the init script after the first run
|
# bitbake without the init script after the first run
|
||||||
sed "s|##COREBASE##|$OEROOT|g" $POKYLAYERCONF > $BUILDDIR/conf/bblayers.conf
|
sed "s|##COREBASE##|$OEROOT|g" $OECORELAYERCONF > $BUILDDIR/conf/bblayers.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prevent disturbing a new GIT clone in same console
|
# Prevent disturbing a new GIT clone in same console
|
||||||
unset POKYLOCALCONF
|
unset OECORELOCALCONF
|
||||||
unset POKYLAYERCONF
|
unset OECORELAYERCONF
|
||||||
|
|
||||||
cat <<EOM
|
cat <<EOM
|
||||||
|
|
Loading…
Reference in New Issue