diff options
Diffstat (limited to 'documentation/ref-manual/migration-1.6.rst')
-rw-r--r-- | documentation/ref-manual/migration-1.6.rst | 416 |
1 files changed, 0 insertions, 416 deletions
diff --git a/documentation/ref-manual/migration-1.6.rst b/documentation/ref-manual/migration-1.6.rst deleted file mode 100644 index ed155d0df9..0000000000 --- a/documentation/ref-manual/migration-1.6.rst +++ /dev/null | |||
@@ -1,416 +0,0 @@ | |||
1 | Moving to the Yocto Project 1.6 Release | ||
2 | ======================================= | ||
3 | |||
4 | This section provides migration information for moving to the Yocto | ||
5 | Project 1.6 Release from the prior release. | ||
6 | |||
7 | .. _migration-1.6-archiver-class: | ||
8 | |||
9 | ``archiver`` Class | ||
10 | ------------------ | ||
11 | |||
12 | The :ref:`archiver <ref-classes-archiver>` class has been rewritten | ||
13 | and its configuration has been simplified. For more details on the | ||
14 | source archiver, see the | ||
15 | ":ref:`dev-manual/common-tasks:maintaining open source license compliance during your product's lifecycle`" | ||
16 | section in the Yocto Project Development Tasks Manual. | ||
17 | |||
18 | .. _migration-1.6-packaging-changes: | ||
19 | |||
20 | Packaging Changes | ||
21 | ----------------- | ||
22 | |||
23 | The following packaging changes have been made: | ||
24 | |||
25 | - The ``binutils`` recipe no longer produces a ``binutils-symlinks`` | ||
26 | package. ``update-alternatives`` is now used to handle the preferred | ||
27 | ``binutils`` variant on the target instead. | ||
28 | |||
29 | - The tc (traffic control) utilities have been split out of the main | ||
30 | ``iproute2`` package and put into the ``iproute2-tc`` package. | ||
31 | |||
32 | - The ``gtk-engines`` schemas have been moved to a dedicated | ||
33 | ``gtk-engines-schemas`` package. | ||
34 | |||
35 | - The ``armv7a`` with thumb package architecture suffix has changed. | ||
36 | The suffix for these packages with the thumb optimization enabled is | ||
37 | "t2" as it should be. Use of this suffix was not the case in the 1.5 | ||
38 | release. Architecture names will change within package feeds as a | ||
39 | result. | ||
40 | |||
41 | .. _migration-1.6-bitbake: | ||
42 | |||
43 | BitBake | ||
44 | ------- | ||
45 | |||
46 | The following changes have been made to :term:`BitBake`. | ||
47 | |||
48 | .. _migration-1.6-matching-branch-requirement-for-git-fetching: | ||
49 | |||
50 | Matching Branch Requirement for Git Fetching | ||
51 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
52 | |||
53 | When fetching source from a Git repository using | ||
54 | :term:`SRC_URI`, BitBake will now validate the | ||
55 | :term:`SRCREV` value against the branch. You can specify | ||
56 | the branch using the following form: | ||
57 | :: | ||
58 | |||
59 | SRC_URI = "git://server.name/repository;branch=branchname" | ||
60 | |||
61 | If you do not specify a branch, BitBake looks in the default "master" branch. | ||
62 | |||
63 | Alternatively, if you need to bypass this check (e.g. if you are | ||
64 | fetching a revision corresponding to a tag that is not on any branch), | ||
65 | you can add ";nobranch=1" to the end of the URL within ``SRC_URI``. | ||
66 | |||
67 | .. _migration-1.6-bitbake-deps: | ||
68 | |||
69 | Python Definition substitutions | ||
70 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
71 | |||
72 | BitBake had some previously deprecated Python definitions within its | ||
73 | ``bb`` module removed. You should use their sub-module counterparts | ||
74 | instead: | ||
75 | |||
76 | - ``bb.MalformedUrl``: Use ``bb.fetch.MalformedUrl``. | ||
77 | |||
78 | - ``bb.encodeurl``: Use ``bb.fetch.encodeurl``. | ||
79 | |||
80 | - ``bb.decodeurl``: Use ``bb.fetch.decodeurl`` | ||
81 | |||
82 | - ``bb.mkdirhier``: Use ``bb.utils.mkdirhier``. | ||
83 | |||
84 | - ``bb.movefile``: Use ``bb.utils.movefile``. | ||
85 | |||
86 | - ``bb.copyfile``: Use ``bb.utils.copyfile``. | ||
87 | |||
88 | - ``bb.which``: Use ``bb.utils.which``. | ||
89 | |||
90 | - ``bb.vercmp_string``: Use ``bb.utils.vercmp_string``. | ||
91 | |||
92 | - ``bb.vercmp``: Use ``bb.utils.vercmp``. | ||
93 | |||
94 | .. _migration-1.6-bitbake-fetcher: | ||
95 | |||
96 | SVK Fetcher | ||
97 | ~~~~~~~~~~~ | ||
98 | |||
99 | The SVK fetcher has been removed from BitBake. | ||
100 | |||
101 | .. _migration-1.6-bitbake-console-output: | ||
102 | |||
103 | Console Output Error Redirection | ||
104 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
105 | |||
106 | The BitBake console UI will now output errors to ``stderr`` instead of | ||
107 | ``stdout``. Consequently, if you are piping or redirecting the output of | ||
108 | ``bitbake`` to somewhere else, and you wish to retain the errors, you | ||
109 | will need to add ``2>&1`` (or something similar) to the end of your | ||
110 | ``bitbake`` command line. | ||
111 | |||
112 | .. _migration-1.6-task-taskname-overrides: | ||
113 | |||
114 | ``task-``\ taskname Overrides | ||
115 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
116 | |||
117 | ``task-``\ taskname overrides have been adjusted so that tasks whose | ||
118 | names contain underscores have the underscores replaced by hyphens for | ||
119 | the override so that they now function properly. For example, the task | ||
120 | override for :ref:`ref-tasks-populate_sdk` is | ||
121 | ``task-populate-sdk``. | ||
122 | |||
123 | .. _migration-1.6-variable-changes: | ||
124 | |||
125 | Changes to Variables | ||
126 | -------------------- | ||
127 | |||
128 | The following variables have changed. For information on the | ||
129 | OpenEmbedded build system variables, see the ":doc:`/ref-manual/variables`" Chapter. | ||
130 | |||
131 | .. _migration-1.6-variable-changes-TMPDIR: | ||
132 | |||
133 | ``TMPDIR`` | ||
134 | ~~~~~~~~~~ | ||
135 | |||
136 | :term:`TMPDIR` can no longer be on an NFS mount. NFS does | ||
137 | not offer full POSIX locking and inode consistency and can cause | ||
138 | unexpected issues if used to store ``TMPDIR``. | ||
139 | |||
140 | The check for this occurs on startup. If ``TMPDIR`` is detected on an | ||
141 | NFS mount, an error occurs. | ||
142 | |||
143 | .. _migration-1.6-variable-changes-PRINC: | ||
144 | |||
145 | ``PRINC`` | ||
146 | ~~~~~~~~~ | ||
147 | |||
148 | The ``PRINC`` variable has been deprecated and triggers a warning if | ||
149 | detected during a build. For :term:`PR` increments on changes, | ||
150 | use the PR service instead. You can find out more about this service in | ||
151 | the ":ref:`dev-manual/common-tasks:working with a pr service`" | ||
152 | section in the Yocto Project Development Tasks Manual. | ||
153 | |||
154 | .. _migration-1.6-variable-changes-IMAGE_TYPES: | ||
155 | |||
156 | ``IMAGE_TYPES`` | ||
157 | ~~~~~~~~~~~~~~~ | ||
158 | |||
159 | The "sum.jffs2" option for :term:`IMAGE_TYPES` has | ||
160 | been replaced by the "jffs2.sum" option, which fits the processing | ||
161 | order. | ||
162 | |||
163 | .. _migration-1.6-variable-changes-COPY_LIC_MANIFEST: | ||
164 | |||
165 | ``COPY_LIC_MANIFEST`` | ||
166 | ~~~~~~~~~~~~~~~~~~~~~ | ||
167 | |||
168 | The :term:`COPY_LIC_MANIFEST` variable must now | ||
169 | be set to "1" rather than any value in order to enable it. | ||
170 | |||
171 | .. _migration-1.6-variable-changes-COPY_LIC_DIRS: | ||
172 | |||
173 | ``COPY_LIC_DIRS`` | ||
174 | ~~~~~~~~~~~~~~~~~ | ||
175 | |||
176 | The :term:`COPY_LIC_DIRS` variable must now be set | ||
177 | to "1" rather than any value in order to enable it. | ||
178 | |||
179 | .. _migration-1.6-variable-changes-PACKAGE_GROUP: | ||
180 | |||
181 | ``PACKAGE_GROUP`` | ||
182 | ~~~~~~~~~~~~~~~~~ | ||
183 | |||
184 | The ``PACKAGE_GROUP`` variable has been renamed to | ||
185 | :term:`FEATURE_PACKAGES` to more accurately | ||
186 | reflect its purpose. You can still use ``PACKAGE_GROUP`` but the | ||
187 | OpenEmbedded build system produces a warning message when it encounters | ||
188 | the variable. | ||
189 | |||
190 | .. _migration-1.6-variable-changes-variable-entry-behavior: | ||
191 | |||
192 | Preprocess and Post Process Command Variable Behavior | ||
193 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
194 | |||
195 | The following variables now expect a semicolon separated list of | ||
196 | functions to call and not arbitrary shell commands: | ||
197 | |||
198 | - :term:`ROOTFS_PREPROCESS_COMMAND` | ||
199 | - :term:`ROOTFS_POSTPROCESS_COMMAND` | ||
200 | - :term:`SDK_POSTPROCESS_COMMAND` | ||
201 | - :term:`POPULATE_SDK_POST_TARGET_COMMAND` | ||
202 | - :term:`POPULATE_SDK_POST_HOST_COMMAND` | ||
203 | - :term:`IMAGE_POSTPROCESS_COMMAND` | ||
204 | - :term:`IMAGE_PREPROCESS_COMMAND` | ||
205 | - :term:`ROOTFS_POSTUNINSTALL_COMMAND` | ||
206 | - :term:`ROOTFS_POSTINSTALL_COMMAND` | ||
207 | |||
208 | For | ||
209 | migration purposes, you can simply wrap shell commands in a shell | ||
210 | function and then call the function. Here is an example: :: | ||
211 | |||
212 | my_postprocess_function() { | ||
213 | echo "hello" > ${IMAGE_ROOTFS}/hello.txt | ||
214 | } | ||
215 | ROOTFS_POSTPROCESS_COMMAND += "my_postprocess_function; " | ||
216 | |||
217 | .. _migration-1.6-package-test-ptest: | ||
218 | |||
219 | Package Test (ptest) | ||
220 | -------------------- | ||
221 | |||
222 | Package Tests (ptest) are built but not installed by default. For | ||
223 | information on using Package Tests, see the | ||
224 | ":ref:`dev-manual/common-tasks:testing packages with ptest`" | ||
225 | section in the Yocto Project Development Tasks Manual. For information on the | ||
226 | ``ptest`` class, see the ":ref:`ptest.bbclass <ref-classes-ptest>`" | ||
227 | section. | ||
228 | |||
229 | .. _migration-1.6-build-changes: | ||
230 | |||
231 | Build Changes | ||
232 | ------------- | ||
233 | |||
234 | Separate build and source directories have been enabled by default for | ||
235 | selected recipes where it is known to work (a whitelist) and for all | ||
236 | recipes that inherit the :ref:`cmake <ref-classes-cmake>` class. In | ||
237 | future releases the :ref:`autotools <ref-classes-autotools>` class | ||
238 | will enable a separate build directory by default as well. Recipes | ||
239 | building Autotools-based software that fails to build with a separate | ||
240 | build directory should be changed to inherit from the | ||
241 | :ref:`autotools-brokensep <ref-classes-autotools>` class instead of | ||
242 | the ``autotools`` or ``autotools_stage``\ classes. | ||
243 | |||
244 | .. _migration-1.6-building-qemu-native: | ||
245 | |||
246 | ``qemu-native`` | ||
247 | --------------- | ||
248 | |||
249 | ``qemu-native`` now builds without SDL-based graphical output support by | ||
250 | default. The following additional lines are needed in your | ||
251 | ``local.conf`` to enable it: | ||
252 | :: | ||
253 | |||
254 | PACKAGECONFIG_pn-qemu-native = "sdl" | ||
255 | ASSUME_PROVIDED += "libsdl-native" | ||
256 | |||
257 | .. note:: | ||
258 | |||
259 | The default ``local.conf`` contains these statements. Consequently, if you | ||
260 | are building a headless system and using a default ``local.conf`` | ||
261 | file, you will need comment these two lines out. | ||
262 | |||
263 | .. _migration-1.6-core-image-basic: | ||
264 | |||
265 | ``core-image-basic`` | ||
266 | -------------------- | ||
267 | |||
268 | ``core-image-basic`` has been renamed to ``core-image-full-cmdline``. | ||
269 | |||
270 | In addition to ``core-image-basic`` being renamed, | ||
271 | ``packagegroup-core-basic`` has been renamed to | ||
272 | ``packagegroup-core-full-cmdline`` to match. | ||
273 | |||
274 | .. _migration-1.6-licensing: | ||
275 | |||
276 | Licensing | ||
277 | --------- | ||
278 | |||
279 | The top-level ``LICENSE`` file has been changed to better describe the | ||
280 | license of the various components of :term:`OpenEmbedded-Core (OE-Core)`. However, | ||
281 | the licensing itself remains unchanged. | ||
282 | |||
283 | Normally, this change would not cause any side-effects. However, some | ||
284 | recipes point to this file within | ||
285 | :term:`LIC_FILES_CHKSUM` (as | ||
286 | ``${COREBASE}/LICENSE``) and thus the accompanying checksum must be | ||
287 | changed from 3f40d7994397109285ec7b81fdeb3b58 to | ||
288 | 4d92cd373abda3937c2bc47fbc49d690. A better alternative is to have | ||
289 | ``LIC_FILES_CHKSUM`` point to a file describing the license that is | ||
290 | distributed with the source that the recipe is building, if possible, | ||
291 | rather than pointing to ``${COREBASE}/LICENSE``. | ||
292 | |||
293 | .. _migration-1.6-cflags-options: | ||
294 | |||
295 | ``CFLAGS`` Options | ||
296 | ------------------ | ||
297 | |||
298 | The "-fpermissive" option has been removed from the default | ||
299 | :term:`CFLAGS` value. You need to take action on | ||
300 | individual recipes that fail when building with this option. You need to | ||
301 | either patch the recipes to fix the issues reported by the compiler, or | ||
302 | you need to add "-fpermissive" to ``CFLAGS`` in the recipes. | ||
303 | |||
304 | .. _migration-1.6-custom-images: | ||
305 | |||
306 | Custom Image Output Types | ||
307 | ------------------------- | ||
308 | |||
309 | Custom image output types, as selected using | ||
310 | :term:`IMAGE_FSTYPES`, must declare their | ||
311 | dependencies on other image types (if any) using a new | ||
312 | :term:`IMAGE_TYPEDEP` variable. | ||
313 | |||
314 | .. _migration-1.6-do-package-write-task: | ||
315 | |||
316 | Tasks | ||
317 | ----- | ||
318 | |||
319 | The ``do_package_write`` task has been removed. The task is no longer | ||
320 | needed. | ||
321 | |||
322 | .. _migration-1.6-update-alternatives-provider: | ||
323 | |||
324 | ``update-alternative`` Provider | ||
325 | ------------------------------- | ||
326 | |||
327 | The default ``update-alternatives`` provider has been changed from | ||
328 | ``opkg`` to ``opkg-utils``. This change resolves some troublesome | ||
329 | circular dependencies. The runtime package has also been renamed from | ||
330 | ``update-alternatives-cworth`` to ``update-alternatives-opkg``. | ||
331 | |||
332 | .. _migration-1.6-virtclass-overrides: | ||
333 | |||
334 | ``virtclass`` Overrides | ||
335 | ----------------------- | ||
336 | |||
337 | The ``virtclass`` overrides are now deprecated. Use the equivalent class | ||
338 | overrides instead (e.g. ``virtclass-native`` becomes ``class-native``.) | ||
339 | |||
340 | .. _migration-1.6-removed-renamed-recipes: | ||
341 | |||
342 | Removed and Renamed Recipes | ||
343 | --------------------------- | ||
344 | |||
345 | The following recipes have been removed: | ||
346 | |||
347 | - ``packagegroup-toolset-native`` - This recipe is largely unused. | ||
348 | |||
349 | - ``linux-yocto-3.8`` - Support for the Linux yocto 3.8 kernel has been | ||
350 | dropped. Support for the 3.10 and 3.14 kernels have been added with | ||
351 | the ``linux-yocto-3.10`` and ``linux-yocto-3.14`` recipes. | ||
352 | |||
353 | - ``ocf-linux`` - This recipe has been functionally replaced using | ||
354 | ``cryptodev-linux``. | ||
355 | |||
356 | - ``genext2fs`` - ``genext2fs`` is no longer used by the build system | ||
357 | and is unmaintained upstream. | ||
358 | |||
359 | - ``js`` - This provided an ancient version of Mozilla's javascript | ||
360 | engine that is no longer needed. | ||
361 | |||
362 | - ``zaurusd`` - The recipe has been moved to the ``meta-handheld`` | ||
363 | layer. | ||
364 | |||
365 | - ``eglibc 2.17`` - Replaced by the ``eglibc 2.19`` recipe. | ||
366 | |||
367 | - ``gcc 4.7.2`` - Replaced by the now stable ``gcc 4.8.2``. | ||
368 | |||
369 | - ``external-sourcery-toolchain`` - this recipe is now maintained in | ||
370 | the ``meta-sourcery`` layer. | ||
371 | |||
372 | - ``linux-libc-headers-yocto 3.4+git`` - Now using version 3.10 of the | ||
373 | ``linux-libc-headers`` by default. | ||
374 | |||
375 | - ``meta-toolchain-gmae`` - This recipe is obsolete. | ||
376 | |||
377 | - ``packagegroup-core-sdk-gmae`` - This recipe is obsolete. | ||
378 | |||
379 | - ``packagegroup-core-standalone-gmae-sdk-target`` - This recipe is | ||
380 | obsolete. | ||
381 | |||
382 | .. _migration-1.6-removed-classes: | ||
383 | |||
384 | Removed Classes | ||
385 | --------------- | ||
386 | |||
387 | The following classes have become obsolete and have been removed: | ||
388 | |||
389 | - ``module_strip`` | ||
390 | |||
391 | - ``pkg_metainfo`` | ||
392 | |||
393 | - ``pkg_distribute`` | ||
394 | |||
395 | - ``image-empty`` | ||
396 | |||
397 | .. _migration-1.6-reference-bsps: | ||
398 | |||
399 | Reference Board Support Packages (BSPs) | ||
400 | --------------------------------------- | ||
401 | |||
402 | The following reference BSPs changes occurred: | ||
403 | |||
404 | - The BeagleBoard (``beagleboard``) ARM reference hardware has been | ||
405 | replaced by the BeagleBone (``beaglebone``) hardware. | ||
406 | |||
407 | - The RouterStation Pro (``routerstationpro``) MIPS reference hardware | ||
408 | has been replaced by the EdgeRouter Lite (``edgerouter``) hardware. | ||
409 | |||
410 | The previous reference BSPs for the ``beagleboard`` and | ||
411 | ``routerstationpro`` machines are still available in a new | ||
412 | ``meta-yocto-bsp-old`` layer in the | ||
413 | :yocto_git:`Source Repositories <>` at | ||
414 | :yocto_git:`/meta-yocto-bsp-old/`. | ||
415 | |||
416 | |||