migration-1.6.rst 13 KB

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