migration-1.5.rst 13 KB

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