summaryrefslogtreecommitdiff
path: root/init_yocto_env
diff options
context:
space:
mode:
Diffstat (limited to 'init_yocto_env')
-rw-r--r--init_yocto_env69
1 files changed, 69 insertions, 0 deletions
diff --git a/init_yocto_env b/init_yocto_env
new file mode 100644
index 000000000..fef79d395
--- /dev/null
+++ b/init_yocto_env
@@ -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"
+
+
+
+
+
+
+
+