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