1 Create a Tizen Common x86_64 image with Yocto
2 =============================================
4 Target: Haswell/Ivy CPU
6 # Create your working directory
8 Create a working directory (for example "~/yocto"):
10 mkdir -p ${HOME}/yocto
13 Create a download directory (optional). It will act as a common download
14 directory amongst projects:
16 mkdir -p ${HOME}/yocto/downloads
22 git clone git://git.yoctoproject.org/poky
24 Download Intel layers:
26 git clone git://git.yoctoproject.org/meta-intel
28 Download openembedded layers:
30 git clone git://git.openembedded.org/meta-openembedded
34 git clone git@github.com:eurogiciel-oss/meta-tizen.git
38 Configure the environment:
41 source ./oe-init-build-env build
47 This file contains the list of the layers in which poky has to search
50 # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
51 # changes incompatibly
58 ${HOME}/yocto/poky/meta \
59 ${HOME}/yocto/poky/meta-yocto \
60 ${HOME}/yocto/poky/meta-yocto-bsp \
61 ${HOME}/yocto/meta-intel \
62 ${HOME}/yocto/meta-intel/meta-isg/meta-haswell-wc \
63 ${HOME}/yocto/meta-openembedded/meta-efl \
64 ${HOME}/yocto/meta-openembedded/meta-oe \
65 ${HOME}/yocto/meta-openembedded/meta-multimedia \
66 ${HOME}/yocto/meta-openembedded/meta-ruby \
67 ${HOME}/yocto/meta-openembedded/meta-systemd \
68 ${HOME}/yocto/meta-tizen \
71 #BBLAYERS += "${HOME}/yocto/meta-intel/meta-haswell-wc"
73 BBLAYERS += "${HOME}/yocto/meta-intel/meta-romley"
77 Most of default values can be kept. The one that needs to be changed is:
80 MACHINE ?= "qemux86-64"
82 MACHINE ?= "haswell-wc"
84 MACHINE ?= "romley-ivb"
86 Other useful option to set:
89 DL_DIR ?= "${HOME}/yocto/downloads"
91 Setting the download directory DL_DIR to a directory shared amongst
92 projects prevents common data from being downloaded for each project.
95 OE_TERMINAL = "screen"
97 The terminal emulator you want to use.
100 # WARNING TMP TRICKS WARNING
102 Unfortunately we have to copy some files to the meta directory
112 This should be temporary and will be removed as soon as possible.
114 cp ${HOME}/yocto/meta-tizen/classes/* ${HOME}/yocto/poky/meta/classes/
115 cp ${HOME}/yocto/meta-tizen/lib/oe/* ${HOME}/yocto/poky/meta/lib/oe/
117 # Build the Tizen Common image
119 bitbake tizen-common-core-image-minimal-dev
121 Two useful options are:
123 'k' "Continue as much as possible after an error. While the target that
124 failed and anything depending on it cannot be built, as much as
125 possible will be built before stopping."
127 'v' "Output more log message data to the terminal."
130 1) bitbake -kv tizen-common-core-image-minimal-dev
131 2) runqemu qemux86-64 tizen-common-core-image-minimal
133 The generate image can be found in tmp/deploy/images/${MACHINE}