#!/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 <>~/.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"