diff options
author | Stephane Desneux <stephane.desneux@eurogiciel.fr> | 2013-04-05 18:19:48 +0200 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@eurogiciel.fr> | 2013-04-05 18:19:48 +0200 |
commit | 25f28e6e4aec7c2d2895de7f588e7b272279207c (patch) | |
tree | 377166549f9e85fe43e9fadad792f9451f437752 /init_yocto_env | |
parent | 435b842dd2f9f21d55a880a4c9d2e9812c7395c6 (diff) | |
download | tizen-25f28e6e4aec7c2d2895de7f588e7b272279207c.tar.gz tizen-25f28e6e4aec7c2d2895de7f588e7b272279207c.tar.bz2 tizen-25f28e6e4aec7c2d2895de7f588e7b272279207c.zip |
added init_yocto_env script; added ymount/yumount functions in rc
Diffstat (limited to 'init_yocto_env')
-rw-r--r-- | init_yocto_env | 69 |
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" + + + + + + + + |