tizen-3.0-ivi_20150201.3_atom.xml: archive manifest file
[scm/bb/tizen.git] / init_yocto_env
1 #!/bin/bash
2
3 # this script can be used as a base to init the whole Yocto environment for Tizen
4 # instructions:
5 # - create a yocto base dir 
6 # - copy this script in the yocto dir
7 # - uncomment the exit below
8 # - execute this script
9
10 echo "Edit the script and remove this line"; exit 0
11
12 cd $(dirname $0)
13
14 TOPDIR=$(pwd -P)
15
16 mkdir -p $TOPDIR/downloads
17 mkdir -p $TOPDIR/sstate-cache
18
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
21
22 if ! grep "Host review.tizen.org" ~/.ssh/config; then
23     cat <<EOF >>~/.ssh/config
24
25 # added automatically by $0
26 Host review.tizen.org
27     Hostname review.tizen.org
28     IdentityFile ~/.ssh/id_rsa
29     User $USER
30     Port 29418
31 EOF
32     echo "Please adjust parameters in ~/.ssh/config"
33     xdg-open ~/.ssh/config
34 fi
35
36 if [ ! -d tizen ]; then
37     git clone yocto:/home/yoctotizen/yocto/yoctoTizen tizen
38 fi
39
40 if [ ! -d oe-core ]; then
41     git clone git://git.openembedded.org/openembedded-core oe-core
42 fi
43
44 cd oe-core
45
46 if [ ! -d bitbake ]; then
47     git clone git://git.openembedded.org/bitbake
48 fi
49
50 ln -s ../tizen/meta-tizen-ivi .
51
52 . ../tizen/yoctorc
53
54 yinit
55
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
58
59 echo "Yocto init Done"
60
61 echo "Now you can run bitbake. For example, bitbake -p"
62
63
64
65
66
67
68
69