migration-1.5.rst 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. Release 1.5 (dora)
  3. ==================
  4. This section provides migration information for moving to the Yocto
  5. Project 1.5 Release (codename "dora") from the prior release.
  6. .. _migration-1.5-host-dependency-changes:
  7. Host Dependency Changes
  8. -----------------------
  9. The OpenEmbedded build system now has some additional requirements on
  10. the host system:
  11. - Python 2.7.3+
  12. - Tar 1.24+
  13. - Git 1.7.8+
  14. - Patched version of Make if you are using 3.82. Most distributions
  15. that provide Make 3.82 use the patched version.
  16. If the Linux distribution you are using on your build host does not
  17. provide packages for these, you can install and use the Buildtools
  18. tarball, which provides an SDK-like environment containing them.
  19. For more information on this requirement, see the
  20. ":ref:`system-requirements-buildtools`" section.
  21. .. _migration-1.5-atom-pc-bsp:
  22. ``atom-pc`` Board Support Package (BSP)
  23. ---------------------------------------
  24. The ``atom-pc`` hardware reference BSP has been replaced by a
  25. ``genericx86`` BSP. This BSP is not necessarily guaranteed to work on
  26. all x86 hardware, but it will run on a wider range of systems than the
  27. ``atom-pc`` did.
  28. .. note::
  29. Additionally, a ``genericx86-64`` BSP has been added for 64-bit Atom
  30. systems.
  31. .. _migration-1.5-bitbake:
  32. BitBake
  33. -------
  34. The following changes have been made that relate to BitBake:
  35. - BitBake now supports a ``_remove`` operator. The addition of this
  36. operator means you will have to rename any items in recipe space
  37. (functions, variables) whose names currently contain ``_remove_`` or
  38. end with ``_remove`` to avoid unexpected behavior.
  39. - BitBake's global method pool has been removed. This method is not
  40. particularly useful and led to clashes between recipes containing
  41. functions that had the same name.
  42. - The "none" server backend has been removed. The "process" server
  43. backend has been serving well as the default for a long time now.
  44. - The ``bitbake-runtask`` script has been removed.
  45. - ``${``\ :term:`P`\ ``}`` and
  46. ``${``\ :term:`PF`\ ``}`` are no longer added to
  47. :term:`PROVIDES` by default in ``bitbake.conf``.
  48. These version-specific :term:`PROVIDES` items were seldom used.
  49. Attempting to use them could result in two versions being built
  50. simultaneously rather than just one version due to the way BitBake
  51. resolves dependencies.
  52. .. _migration-1.5-qa-warnings:
  53. QA Warnings
  54. -----------
  55. The following changes have been made to the package QA checks:
  56. - If you have customized :term:`ERROR_QA` or
  57. :term:`WARN_QA` values in your configuration, check
  58. that they contain all of the issues that you wish to be reported.
  59. Previous Yocto Project versions contained a bug that meant that any
  60. item not mentioned in :term:`ERROR_QA` or :term:`WARN_QA` would be treated as
  61. a warning. Consequently, several important items were not already in
  62. the default value of :term:`WARN_QA`. All of the possible QA checks are
  63. now documented in the ":ref:`ref-classes-insane`" section.
  64. - An additional QA check has been added to check if
  65. ``/usr/share/info/dir`` is being installed. Your recipe should delete
  66. this file within :ref:`ref-tasks-install` if "make
  67. install" is installing it.
  68. - If you are using the :ref:`ref-classes-buildhistory` class, the check for the
  69. package version going backwards is now controlled using a standard QA check.
  70. Thus, if you have customized your :term:`ERROR_QA` or :term:`WARN_QA` values
  71. and still wish to have this check performed, you should add
  72. "version-going-backwards" to your value for one or the other
  73. variables depending on how you wish it to be handled. See the
  74. documented QA checks in the ":ref:`ref-classes-insane`" section.
  75. .. _migration-1.5-directory-layout-changes:
  76. Directory Layout Changes
  77. ------------------------
  78. The following directory changes exist:
  79. - Output SDK installer files are now named to include the image name
  80. and tuning architecture through the :term:`SDK_NAME`
  81. variable.
  82. - Images and related files are now installed into a directory that is
  83. specific to the machine, instead of a parent directory containing
  84. output files for multiple machines. The
  85. :term:`DEPLOY_DIR_IMAGE` variable continues
  86. to point to the directory containing images for the current
  87. :term:`MACHINE` and should be used anywhere there is a
  88. need to refer to this directory. The ``runqemu`` script now uses this
  89. variable to find images and kernel binaries and will use BitBake to
  90. determine the directory. Alternatively, you can set the
  91. :term:`DEPLOY_DIR_IMAGE` variable in the external environment.
  92. - When buildhistory is enabled, its output is now written under the
  93. :term:`Build Directory` rather than :term:`TMPDIR`. Doing so makes
  94. it easier to delete :term:`TMPDIR` and preserve the build history.
  95. Additionally, data for produced SDKs is now split by :term:`IMAGE_NAME`.
  96. - When :ref:`ref-classes-buildhistory` is enabled, its output
  97. is now written under the :term:`Build Directory` rather than :term:`TMPDIR`.
  98. Doing so makes it easier to delete :term:`TMPDIR` and preserve the build
  99. history. Additionally, data for produced SDKs is now split by :term:`IMAGE_NAME`.
  100. - The ``pkgdata`` directory produced as part of the packaging process
  101. has been collapsed into a single machine-specific directory. This
  102. directory is located under ``sysroots`` and uses a machine-specific
  103. name (i.e. ``tmp/sysroots/machine/pkgdata``).
  104. .. _migration-1.5-shortened-git-srcrev-values:
  105. Shortened Git ``SRCREV`` Values
  106. -------------------------------
  107. BitBake will now shorten revisions from Git repositories from the normal
  108. 40 characters down to 10 characters within :term:`SRCPV`
  109. for improved usability in path and filenames. This change should be
  110. safe within contexts where these revisions are used because the chances
  111. of spatially close collisions is very low. Distant collisions are not a
  112. major issue in the way the values are used.
  113. .. _migration-1.5-image-features:
  114. ``IMAGE_FEATURES``
  115. ------------------
  116. The following changes have been made that relate to
  117. :term:`IMAGE_FEATURES`:
  118. - The value of :term:`IMAGE_FEATURES` is now validated to ensure invalid
  119. feature items are not added. Some users mistakenly add package names
  120. to this variable instead of using
  121. :term:`IMAGE_INSTALL` in order to have the
  122. package added to the image, which does not work. This change is
  123. intended to catch those kinds of situations. Valid :term:`IMAGE_FEATURES`
  124. are drawn from ``PACKAGE_GROUP`` definitions,
  125. :term:`COMPLEMENTARY_GLOB` and a new
  126. "validitems" varflag on :term:`IMAGE_FEATURES`. The "validitems" varflag
  127. change allows additional features to be added if they are not
  128. provided using the previous two mechanisms.
  129. - The previously deprecated "apps-console-core" :term:`IMAGE_FEATURES` item
  130. is no longer supported. Add "splash" to :term:`IMAGE_FEATURES` if you
  131. wish to have the splash screen enabled, since this is all that
  132. apps-console-core was doing.
  133. .. _migration-1.5-run:
  134. ``/run``
  135. --------
  136. The ``/run`` directory from the Filesystem Hierarchy Standard 3.0 has
  137. been introduced. You can find some of the implications for this change
  138. :oe_git:`here </openembedded-core/commit/?id=0e326280a15b0f2c4ef2ef4ec441f63f55b75873>`.
  139. The change also means that recipes that install files to ``/var/run``
  140. must be changed. You can find a guide on how to make these changes
  141. `here <https://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg31649.html>`__.
  142. .. _migration-1.5-removal-of-package-manager-database-within-image-recipes:
  143. Removal of Package Manager Database Within Image Recipes
  144. --------------------------------------------------------
  145. The image ``core-image-minimal`` no longer adds
  146. ``remove_packaging_data_files`` to
  147. :term:`ROOTFS_POSTPROCESS_COMMAND`.
  148. This addition is now handled automatically when "package-management" is
  149. not in :term:`IMAGE_FEATURES`. If you have custom
  150. image recipes that make this addition, you should remove the lines, as
  151. they are not needed and might interfere with correct operation of
  152. postinstall scripts.
  153. .. _migration-1.5-images-now-rebuild-only-on-changes-instead-of-every-time:
  154. Images Now Rebuild Only on Changes Instead of Every Time
  155. --------------------------------------------------------
  156. The :ref:`ref-tasks-rootfs` and other related image
  157. construction tasks are no longer marked as "nostamp". Consequently, they
  158. will only be re-executed when their inputs have changed. Previous
  159. versions of the OpenEmbedded build system always rebuilt the image when
  160. requested rather when necessary.
  161. .. _migration-1.5-task-recipes:
  162. Task Recipes
  163. ------------
  164. The previously deprecated ``task.bbclass`` has now been dropped. For
  165. recipes that previously inherited from this class, you should rename
  166. them from ``task-*`` to ``packagegroup-*`` and inherit
  167. :ref:`ref-classes-packagegroup` instead.
  168. For more information, see the ":ref:`ref-classes-packagegroup`" section.
  169. .. _migration-1.5-busybox:
  170. BusyBox
  171. -------
  172. By default, we now split BusyBox into two binaries: one that is suid
  173. root for those components that need it, and another for the rest of the
  174. components. Splitting BusyBox allows for optimization that eliminates
  175. the ``tinylogin`` recipe as recommended by upstream. You can disable
  176. this split by setting
  177. :term:`BUSYBOX_SPLIT_SUID` to "0".
  178. .. _migration-1.5-automated-image-testing:
  179. Automated Image Testing
  180. -----------------------
  181. A new automated image testing framework has been added through the
  182. :ref:`ref-classes-testimage` classes. This
  183. framework replaces the older ``imagetest-qemu`` framework.
  184. You can learn more about performing automated image tests in the
  185. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  186. section in the Yocto Project Test Environment Manual.
  187. .. _migration-1.5-build-history:
  188. Build History
  189. -------------
  190. The changes to Build History are:
  191. - Installed package sizes: ``installed-package-sizes.txt`` for an image
  192. now records the size of the files installed by each package instead
  193. of the size of each compressed package archive file.
  194. - The dependency graphs (``depends*.dot``) now use the actual package
  195. names instead of replacing dashes, dots and plus signs with
  196. underscores.
  197. - The ``buildhistory-diff`` and ``buildhistory-collect-srcrevs``
  198. utilities have improved command-line handling. Use the ``--help``
  199. option for each utility for more information on the new syntax.
  200. For more information on Build History, see the
  201. ":ref:`dev-manual/build-quality:maintaining build output quality`"
  202. section in the Yocto Project Development Tasks Manual.
  203. .. _migration-1.5-udev:
  204. ``udev``
  205. --------
  206. The changes to ``udev`` are:
  207. - ``udev`` no longer brings in ``udev-extraconf`` automatically through
  208. :term:`RRECOMMENDS`, since this was originally
  209. intended to be optional. If you need the extra rules, then add
  210. ``udev-extraconf`` to your image.
  211. - ``udev`` no longer brings in ``pciutils-ids`` or ``usbutils-ids``
  212. through :term:`RRECOMMENDS`. These are not needed by ``udev`` itself and
  213. removing them saves around 350KB.
  214. .. _migration-1.5-removed-renamed-recipes:
  215. Removed and Renamed Recipes
  216. ---------------------------
  217. - The ``linux-yocto`` 3.2 kernel has been removed.
  218. - ``libtool-nativesdk`` has been renamed to ``nativesdk-libtool``.
  219. - ``tinylogin`` has been removed. It has been replaced by a suid
  220. portion of Busybox. See the ":ref:`migration-1.5-busybox`"
  221. section for more information.
  222. - ``external-python-tarball`` has been renamed to
  223. ``buildtools-tarball``.
  224. - ``web-webkit`` has been removed. It has been functionally replaced by
  225. ``midori``.
  226. - ``imake`` has been removed. It is no longer needed by any other
  227. recipe.
  228. - ``transfig-native`` has been removed. It is no longer needed by any
  229. other recipe.
  230. - ``anjuta-remote-run`` has been removed. Anjuta IDE integration has
  231. not been officially supported for several releases.
  232. .. _migration-1.5-other-changes:
  233. Other Changes
  234. -------------
  235. Here is a list of short entries describing other changes:
  236. - ``run-postinsts``: Make this generic.
  237. - ``base-files``: Remove the unnecessary ``media/``\ xxx directories.
  238. - ``alsa-state``: Provide an empty ``asound.conf`` by default.
  239. - ``classes/image``: Ensure
  240. :term:`BAD_RECOMMENDATIONS` supports
  241. pre-renamed package names.
  242. - ``classes/rootfs_rpm``: Implement :term:`BAD_RECOMMENDATIONS` for RPM.
  243. - ``systemd``: Remove ``systemd_unitdir`` if ``systemd`` is not in
  244. :term:`DISTRO_FEATURES`.
  245. - ``systemd``: Remove ``init.d`` dir if ``systemd`` unit file is
  246. present and ``sysvinit`` is not a distro feature.
  247. - ``libpam``: Deny all services for the ``OTHER`` entries.
  248. - :ref:`ref-classes-image`: Move ``runtime_mapping_rename`` to avoid conflict
  249. with ``multilib``. See :yocto_bugs:`YOCTO #4993 </show_bug.cgi?id=4993>`
  250. in Bugzilla for more information.
  251. - ``linux-dtb``: Use kernel build system to generate the ``dtb`` files.
  252. - ``kern-tools``: Switch from guilt to new ``kgit-s2q`` tool.