From 3ba0b8284dfe6b631bddde9c1654ffa680cd2de1 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 20 Apr 2011 18:04:39 +0100 Subject: [PATCH] poky-setup-builddir: Rename to oe-setup-builddir and clean up POKY variable references (From OE-Core rev: ac7411a885f53d687e65fdb6fd02510c09b97dc8) Signed-off-by: Richard Purdie --- oe-init-build-env | 2 +- ...{poky-setup-builddir => oe-setup-builddir} | 36 +++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) rename scripts/{poky-setup-builddir => oe-setup-builddir} (74%) mode change 100755 => 100644 diff --git a/oe-init-build-env b/oe-init-build-env index 4b1b708d86..7e2b2cebfa 100755 --- a/oe-init-build-env +++ b/oe-init-build-env @@ -36,7 +36,7 @@ else OEROOT=`readlink -f "$OEROOT"` export OEROOT . $OEROOT/scripts/oe-buildenv-internal - $OEROOT/scripts/poky-setup-builddir + $OEROOT/scripts/oe-setup-builddir unset OEROOT unset BBPATH [ -n "$BUILDDIR" ] && cd $BUILDDIR diff --git a/scripts/poky-setup-builddir b/scripts/oe-setup-builddir old mode 100755 new mode 100644 similarity index 74% rename from scripts/poky-setup-builddir rename to scripts/oe-setup-builddir index c900d0e0cb..0e616a7805 --- a/scripts/poky-setup-builddir +++ b/scripts/oe-setup-builddir @@ -38,25 +38,25 @@ fi 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 ! (test -d "$POKYCONF"); then - # Allow POKYCONF=meta-xyz/conf as a shortcut - if [ -d "$OEROOT/$POKYCONF" ]; then - POKYCONF="$OEROOT/$POKYCONF" +if [ "x" != "x$TEMPLATECONF" ]; then + if ! (test -d "$TEMPLATECONF"); then + # Allow TEMPLATECONF=meta-xyz/conf as a shortcut + if [ -d "$OEROOT/$TEMPLATECONF" ]; then + TEMPLATECONF="$OEROOT/$POKYCONF" fi - if ! (test -d "$POKYCONF"); then - echo >&2 "Error: '$POKYCONF' must be a directory containing local.conf & bblayers.conf" + if ! (test -d "$TEMPLATECONF"); then + echo >&2 "Error: '$TEMPLATECONF' must be a directory containing local.conf & bblayers.conf" return fi fi - POKYLAYERCONF="$POKYCONF/bblayers.conf" - POKYLOCALCONF="$POKYCONF/local.conf" + OECORELAYERCONF="$TEMPLATECONF/bblayers.conf" + OECORELOCALCONF="$TEMPLATECONF/local.conf" fi -if [ "x" = "x$POKYLOCALCONF" ]; then - POKYLOCALCONF="$OEROOT/meta-yocto/conf/local.conf.sample" +if [ "x" = "x$OECORELOCALCONF" ]; then + OECORELOCALCONF="$OEROOT/meta/conf/local.conf.sample" fi if ! (test -r "$BUILDDIR/conf/local.conf"); then cat < $BUILDDIR/conf/bblayers.conf + sed "s|##COREBASE##|$OEROOT|g" $OECORELAYERCONF > $BUILDDIR/conf/bblayers.conf fi # Prevent disturbing a new GIT clone in same console -unset POKYLOCALCONF -unset POKYLAYERCONF +unset OECORELOCALCONF +unset OECORELAYERCONF cat <