Update README.md
[scm/bb/meta-tizen.git] / README.md
1 Create a Tizen Common x86_64 image with Yocto
2 =============================================
3
4 Target: Haswell/Ivy CPU
5
6 # Create your working directory
7
8 Create a working directory (for example "${HOME}/yocto","/mnt/ssd","/tmp"):
9
10         WORKINGDIR=${HOME}/yocto
11         mkdir -p ${WORKINGDIR}
12         cd ${WORKINGDIR}
13
14 Create a download directory (optional). It will act as a common download
15 directory amongst projects:
16
17         mkdir -p ${WORKINGDIR}/downloads
18
19 # Download sources
20
21 Downlaod Poky (patched version for rpm 4 support):
22
23         git clone git@github.com:eurogiciel-oss/poky.git
24
25 Download Intel layers:
26
27         git clone git://git.yoctoproject.org/meta-intel
28
29 Download openembedded layers:
30
31         git clone git://git.openembedded.org/meta-openembedded
32
33 Download tizen layer:
34
35         git clone git@github.com:eurogiciel-oss/meta-tizen.git
36
37 # Configuration
38
39 Configure the environment:
40
41         BUILDID="alice"
42         cd ${WORKINGDIR}/poky
43         source ./oe-init-build-env build-${BUILDID}
44
45 # Configuration files
46
47 ## conf/bblayer.conf
48
49 This file contains the list of the layers in which poky has to search
50 for the recipes.
51
52         BBPATH = "${TOPDIR}"
53         BBFILES ?= ""
54
55         WORKINGDIR=${HOME}/yocto
56
57         BBLAYERS ?= " \
58           ${WORKINGDIR}/poky/meta \
59           ${WORKINGDIR}/poky/meta-yocto \
60           ${WORKINGDIR}/poky/meta-yocto-bsp \
61           ${WORKINGDIR}/meta-intel \
62           ${WORKINGDIR}/meta-intel/meta-isg/meta-haswell-wc \
63           ${WORKINGDIR}/meta-openembedded/meta-efl \
64           ${WORKINGDIR}/meta-openembedded/meta-oe \
65           ${WORKINGDIR}/meta-openembedded/meta-multimedia \
66           ${WORKINGDIR}/meta-openembedded/meta-ruby \
67           ${WORKINGDIR}/meta-openembedded/meta-systemd \
68           ${WORKINGDIR}/meta-tizen \
69           "
70         #For Arch haswell
71         #BBLAYERS_append = "${WORKINGDIR}/meta-intel/meta-haswell-wc "
72         #For Arch Ivy
73         BBLAYERS_append = "${WORKINGDIR}/meta-intel/meta-romley "
74
75 ## conf/local.conf
76
77 Most of default values can be kept. The one that needs to be changed is:
78
79         #For qemu
80         MACHINE ?= "qemux86-64"
81         #For haswell
82         MACHINE ?= "haswell-wc"
83         #For Ivy
84         MACHINE ?= "romley-ivb"
85
86 Other useful option to set:
87
88 Download directory:
89
90         DL_DIR ?= "${WORKINGDIR}/downloads"
91
92 Setting the download directory DL_DIR to a directory shared amongst
93 projects prevents common data from being downloaded for each project.
94
95 Terminal emulator:
96
97         OE_TERMINAL = "screen"
98
99 The terminal emulator you want to use.
100
101 # WARNING' tmp add to /etc/sudoers 'WARNING
102 1)
103   sudoedit /etc/sudoers
104   ronanguirec ALL=(ALL) NOPASSWD: ALL
105
106 2)
107   bitbake tar-replacement-native
108
109 # Build the Tizen Common image
110
111         bitbake -kv tizen-common-core-image-minimal-dev
112         
113 The generated image can be found in tmp/deploy/images/${MACHINE}
114
115 If you made a qemu image you can run it with:
116
117         runqemu qemux86-64 tizen-common-core-image-minimal-dev