3 # this script can be used as a base to init the whole Yocto environment for Tizen
5 # - create a yocto base dir
6 # - copy this script in the yocto dir
7 # - uncomment the exit below
8 # - execute this script
10 echo "Edit the script and remove this line"; exit 0
16 mkdir -p $TOPDIR/downloads
17 mkdir -p $TOPDIR/sstate-cache
19 sudo zypper ar http://download.opensuse.org/repositories/Archiving/openSUSE_12.2/Archiving.repo
20 sudo zypper in git make gcc gcc-c++ patch diffstat makeinfo chrpath python-curses unp
22 if ! grep "Host review.tizen.org" ~/.ssh/config; then
23 cat <<EOF >>~/.ssh/config
25 # added automatically by $0
27 Hostname review.tizen.org
28 IdentityFile ~/.ssh/id_rsa
32 echo "Please adjust parameters in ~/.ssh/config"
33 xdg-open ~/.ssh/config
36 if [ ! -d tizen ]; then
37 git clone yocto:/home/yoctotizen/yocto/yoctoTizen tizen
40 if [ ! -d oe-core ]; then
41 git clone git://git.openembedded.org/openembedded-core oe-core
46 if [ ! -d bitbake ]; then
47 git clone git://git.openembedded.org/bitbake
50 ln -s ../tizen/meta-tizen-ivi .
56 cp -v ../meta-tizen-ivi/conf/bblayers.conf.sample conf/bblayers.conf
57 cp -v ../meta-tizen-ivi/conf/local.conf.sample conf/local.conf
59 echo "Yocto init Done"
61 echo "Now you can run bitbake. For example, bitbake -p"