migration-1.5.rst 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. Moving to the Yocto Project 1.5 Release
  2. =======================================
  3. This section provides migration information for moving to the Yocto
  4. Project 1.5 Release 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 "`Required Git, tar,
  19. Python and gcc Versions <#required-git-tar-python-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
  30. genericx86-64
  31. BSP has been added for 64-bit Atom systems.
  32. .. _migration-1.5-bitbake:
  33. BitBake
  34. -------
  35. The following changes have been made that relate to BitBake:
  36. - BitBake now supports a ``_remove`` operator. The addition of this
  37. operator means you will have to rename any items in recipe space
  38. (functions, variables) whose names currently contain ``_remove_`` or
  39. end with ``_remove`` to avoid unexpected behavior.
  40. - BitBake's global method pool has been removed. This method is not
  41. particularly useful and led to clashes between recipes containing
  42. functions that had the same name.
  43. - The "none" server backend has been removed. The "process" server
  44. backend has been serving well as the default for a long time now.
  45. - The ``bitbake-runtask`` script has been removed.
  46. - ``${``\ :term:`P`\ ``}`` and
  47. ``${``\ :term:`PF`\ ``}`` are no longer added to
  48. :term:`PROVIDES` by default in ``bitbake.conf``.
  49. These version-specific ``PROVIDES`` items were seldom used.
  50. Attempting to use them could result in two versions being built
  51. simultaneously rather than just one version due to the way BitBake
  52. resolves dependencies.
  53. .. _migration-1.5-qa-warnings:
  54. QA Warnings
  55. -----------
  56. The following changes have been made to the package QA checks:
  57. - If you have customized :term:`ERROR_QA` or
  58. :term:`WARN_QA` values in your configuration, check
  59. that they contain all of the issues that you wish to be reported.
  60. Previous Yocto Project versions contained a bug that meant that any
  61. item not mentioned in ``ERROR_QA`` or ``WARN_QA`` would be treated as
  62. a warning. Consequently, several important items were not already in
  63. the default value of ``WARN_QA``. All of the possible QA checks are
  64. now documented in the ":ref:`insane.bbclass <ref-classes-insane>`"
  65. section.
  66. - An additional QA check has been added to check if
  67. ``/usr/share/info/dir`` is being installed. Your recipe should delete
  68. this file within :ref:`ref-tasks-install` if "make
  69. install" is installing it.
  70. - If you are using the buildhistory class, the check for the package
  71. version going backwards is now controlled using a standard QA check.
  72. Thus, if you have customized your ``ERROR_QA`` or ``WARN_QA`` values
  73. and still wish to have this check performed, you should add
  74. "version-going-backwards" to your value for one or the other
  75. variables depending on how you wish it to be handled. See the
  76. documented QA checks in the
  77. ":ref:`insane.bbclass <ref-classes-insane>`" section.
  78. .. _migration-1.5-directory-layout-changes:
  79. Directory Layout Changes
  80. ------------------------
  81. The following directory changes exist:
  82. - Output SDK installer files are now named to include the image name
  83. and tuning architecture through the :term:`SDK_NAME`
  84. variable.
  85. - Images and related files are now installed into a directory that is
  86. specific to the machine, instead of a parent directory containing
  87. output files for multiple machines. The
  88. :term:`DEPLOY_DIR_IMAGE` variable continues
  89. to point to the directory containing images for the current
  90. :term:`MACHINE` and should be used anywhere there is a
  91. need to refer to this directory. The ``runqemu`` script now uses this
  92. variable to find images and kernel binaries and will use BitBake to
  93. determine the directory. Alternatively, you can set the
  94. ``DEPLOY_DIR_IMAGE`` variable in the external environment.
  95. - When buildhistory is enabled, its output is now written under the
  96. :term:`Build Directory` rather than
  97. :term:`TMPDIR`. Doing so makes it easier to delete
  98. ``TMPDIR`` and preserve the build history. Additionally, data for
  99. 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 file names. 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 ``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 ``IMAGE_FEATURES``
  124. are drawn from ``PACKAGE_GROUP`` definitions,
  125. :term:`COMPLEMENTARY_GLOB` and a new
  126. "validitems" varflag on ``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" ``IMAGE_FEATURES`` item
  130. is no longer supported. Add "splash" to ``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. `here <http://cgit.openembedded.org/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 <http://permalink.gmane.org/gmane.comp.handhelds.openembedded/58530>`__.
  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 packagegroup
  167. instead.
  168. For more information, see the
  169. ":ref:`packagegroup.bbclass <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:`testimage.bbclass <ref-classes-testimage*>` class. 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/dev-manual-common-tasks: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/dev-manual-common-tasks: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 ``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 "`BusyBox <#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 ``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. - ``image.bbclass``: Move ``runtime_mapping_rename`` to avoid conflict
  250. with ``multilib``. See
  251. `YOCTO #4993 <https://bugzilla.yoctoproject.org/show_bug.cgi?id=4993>`_
  252. in Bugzilla for more information.
  253. - ``linux-dtb``: Use kernel build system to generate the ``dtb`` files.
  254. - ``kern-tools``: Switch from guilt to new ``kgit-s2q`` tool.