added init_yocto_env script; added ymount/yumount functions in rc
authorStephane Desneux <stephane.desneux@eurogiciel.fr>
Fri, 5 Apr 2013 16:19:48 +0000 (18:19 +0200)
committerStephane Desneux <stephane.desneux@eurogiciel.fr>
Fri, 5 Apr 2013 16:19:48 +0000 (18:19 +0200)
init_yocto_env [new file with mode: 0644]

diff --git a/init_yocto_env b/init_yocto_env
new file mode 100644 (file)
index 0000000..fef79d3
--- /dev/null
@@ -0,0 +1,69 @@
+#!/bin/bash
+
+# this script can be used as a base to init the whole Yocto environment for Tizen
+# instructions:
+# - create a yocto base dir 
+# - copy this script in the yocto dir
+# - uncomment the exit below
+# - execute this script
+
+echo "Edit the script and remove this line"; exit 0
+
+cd $(dirname $0)
+
+TOPDIR=$(pwd -P)
+
+mkdir -p $TOPDIR/downloads
+mkdir -p $TOPDIR/sstate-cache
+
+sudo zypper ar http://download.opensuse.org/repositories/Archiving/openSUSE_12.2/Archiving.repo
+sudo zypper in git make gcc gcc-c++ patch diffstat makeinfo chrpath python-curses unp
+
+if ! grep "Host review.tizen.org" ~/.ssh/config; then
+    cat <<EOF >>~/.ssh/config
+
+# added automatically by $0
+Host review.tizen.org
+    Hostname review.tizen.org
+    IdentityFile ~/.ssh/id_rsa
+    User $USER
+    Port 29418
+EOF
+    echo "Please adjust parameters in ~/.ssh/config"
+    xdg-open ~/.ssh/config
+fi
+
+if [ ! -d tizen ]; then
+    git clone yocto:/home/yoctotizen/yocto/yoctoTizen tizen
+fi
+
+if [ ! -d oe-core ]; then
+    git clone git://git.openembedded.org/openembedded-core oe-core
+fi
+
+cd oe-core
+
+if [ ! -d bitbake ]; then
+    git clone git://git.openembedded.org/bitbake
+fi
+
+ln -s ../tizen/meta-tizen-ivi .
+
+. ../tizen/yoctorc
+
+yinit
+
+cp -v ../meta-tizen-ivi/conf/bblayers.conf.sample conf/bblayers.conf
+cp -v ../meta-tizen-ivi/conf/local.conf.sample conf/local.conf
+
+echo "Yocto init Done"
+
+echo "Now you can run bitbake. For example, bitbake -p"
+
+
+
+
+
+
+
+