Fix tizen-platform-config
[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 (tmp fork, poky is 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 ssh://${YOURID}@review.tizen.org:29418/scm/bb/meta-tizen
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-openembedded/meta-efl \
63           ${WORKINGDIR}/meta-openembedded/meta-oe \
64           ${WORKINGDIR}/meta-openembedded/meta-multimedia \
65           ${WORKINGDIR}/meta-openembedded/meta-ruby \
66           ${WORKINGDIR}/meta-openembedded/meta-systemd \
67           ${WORKINGDIR}/meta-tizen \
68           "
69         #For Arch haswell
70         #BBLAYERS_append = "${WORKINGDIR}/meta-intel/meta-isg/meta-haswell-wc "
71         #For Arch Ivy
72         BBLAYERS_append = "${WORKINGDIR}/meta-intel/meta-romley "
73
74 ## conf/local.conf
75
76 Most of default values can be kept. The one that needs to be changed is:
77
78         #For qemu
79         MACHINE ?= "qemux86-64"
80         #For haswell
81         MACHINE ?= "haswell-wc"
82         #For Ivy
83         MACHINE ?= "romley-ivb"
84
85 Other useful option to set:
86
87 Download directory:
88
89         DL_DIR ?= "${WORKINGDIR}/downloads"
90
91 Setting the download directory DL_DIR to a directory shared amongst
92 projects prevents common data from being downloaded for each project.
93
94 Terminal emulator:
95
96         OE_TERMINAL = "screen"
97
98 The terminal emulator you want to use.
99
100 # WARNING' tmp add to /etc/sudoers 'WARNING
101 1:
102
103         sudoedit /etc/sudoers
104         alice ALL=(ALL) NOPASSWD: ALL
105
106 2:
107
108         bitbake tar-replacement-native
109
110 # Build the Tizen Common image
111
112         bitbake -kv tizen-common-core-image-minimal-dev
113         
114 The generated image can be found in tmp/deploy/images/${MACHINE}
115
116 If you made a qemu image you can run it with:
117
118         runqemu qemux86-64 tizen-common-core-image-minimal-dev