migration-1.6.rst 13 KB

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