migration-1.5.rst 13 KB

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