yoctorc: updated
authorStephane Desneux <stephane.desneux@eurogiciel.fr>
Fri, 5 Apr 2013 17:29:02 +0000 (19:29 +0200)
committerStephane Desneux <stephane.desneux@eurogiciel.fr>
Fri, 5 Apr 2013 17:29:02 +0000 (19:29 +0200)
yoctorc

diff --git a/yoctorc b/yoctorc
index ac45579..c59e9b4 100644 (file)
--- a/yoctorc
+++ b/yoctorc
@@ -19,9 +19,16 @@ fi
 
 function yinit () {
     cd $OEDIR
-    . ./oe-init-build-env $1 >/dev/null 2>&1
     YOCTO_BUILDDIR=$OEDIR/${1:-build}
+    [[ ! -d $YOCTO_BUILDDIR ]] && init=yes
+    . ./oe-init-build-env $1 >/dev/null 2>&1
     cd $YOCTO_BUILDDIR
+
+    if [[ x$init == xyes ]]; then
+       cp -v ../meta-tizen-ivi/conf/bblayers.conf.sample conf/bblayers.conf
+       cp -v ../meta-tizen-ivi/conf/local.conf.sample conf/local.conf
+       ${EDITOR} conf/local.conf
+    fi
 }
 
 function ycheck() {