migration-1.3.rst 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. Moving to the Yocto Project 1.3 Release
  3. =======================================
  4. This section provides migration information for moving to the Yocto
  5. Project 1.3 Release from the prior release.
  6. .. _1.3-local-configuration:
  7. Local Configuration
  8. -------------------
  9. Differences include changes for
  10. :term:`SSTATE_MIRRORS` and ``bblayers.conf``.
  11. .. _migration-1.3-sstate-mirrors:
  12. SSTATE_MIRRORS
  13. ~~~~~~~~~~~~~~
  14. The shared state cache (sstate-cache), as pointed to by
  15. :term:`SSTATE_DIR`, by default now has two-character
  16. subdirectories to prevent issues arising from too many files in the same
  17. directory. Also, native sstate-cache packages, which are built to run on
  18. the host system, will go into a subdirectory named using the distro ID
  19. string. If you copy the newly structured sstate-cache to a mirror
  20. location (either local or remote) and then point to it in
  21. :term:`SSTATE_MIRRORS`, you need to append "PATH"
  22. to the end of the mirror URL so that the path used by BitBake before the
  23. mirror substitution is appended to the path used to access the mirror.
  24. Here is an example: ::
  25. SSTATE_MIRRORS = "file://.* http://someserver.tld/share/sstate/PATH"
  26. .. _migration-1.3-bblayers-conf:
  27. bblayers.conf
  28. ~~~~~~~~~~~~~
  29. The ``meta-yocto`` layer consists of two parts that correspond to the
  30. Poky reference distribution and the reference hardware Board Support
  31. Packages (BSPs), respectively: ``meta-yocto`` and ``meta-yocto-bsp``.
  32. When running BitBake for the first time after upgrading, your
  33. ``conf/bblayers.conf`` file will be updated to handle this change and
  34. you will be asked to re-run or restart for the changes to take effect.
  35. .. _1.3-recipes:
  36. Recipes
  37. -------
  38. Differences include changes for the following:
  39. .. _migration-1.3-python-function-whitespace:
  40. Python Function Whitespace
  41. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  42. All Python functions must now use four spaces for indentation.
  43. Previously, an inconsistent mix of spaces and tabs existed, which made
  44. extending these functions using ``_append`` or ``_prepend`` complicated
  45. given that Python treats whitespace as syntactically significant. If you
  46. are defining or extending any Python functions (e.g.
  47. ``populate_packages``, ``do_unpack``, ``do_patch`` and so forth) in
  48. custom recipes or classes, you need to ensure you are using consistent
  49. four-space indentation.
  50. .. _migration-1.3-proto=-in-src-uri:
  51. proto= in SRC_URI
  52. ~~~~~~~~~~~~~~~~~
  53. Any use of ``proto=`` in :term:`SRC_URI` needs to be
  54. changed to ``protocol=``. In particular, this applies to the following
  55. URIs:
  56. - ``svn://``
  57. - ``bzr://``
  58. - ``hg://``
  59. - ``osc://``
  60. Other URIs were already using ``protocol=``. This change improves
  61. consistency.
  62. .. _migration-1.3-nativesdk:
  63. nativesdk
  64. ~~~~~~~~~
  65. The suffix ``nativesdk`` is now implemented as a prefix, which
  66. simplifies a lot of the packaging code for ``nativesdk`` recipes. All
  67. custom ``nativesdk`` recipes, which are relocatable packages that are
  68. native to :term:`SDK_ARCH`, and any references need to
  69. be updated to use ``nativesdk-*`` instead of ``*-nativesdk``.
  70. .. _migration-1.3-task-recipes:
  71. Task Recipes
  72. ~~~~~~~~~~~~
  73. "Task" recipes are now known as "Package groups" and have been renamed
  74. from ``task-*.bb`` to ``packagegroup-*.bb``. Existing references to the
  75. previous ``task-*`` names should work in most cases as there is an
  76. automatic upgrade path for most packages. However, you should update
  77. references in your own recipes and configurations as they could be
  78. removed in future releases. You should also rename any custom ``task-*``
  79. recipes to ``packagegroup-*``, and change them to inherit
  80. ``packagegroup`` instead of ``task``, as well as taking the opportunity
  81. to remove anything now handled by ``packagegroup.bbclass``, such as
  82. providing ``-dev`` and ``-dbg`` packages, setting
  83. :term:`LIC_FILES_CHKSUM`, and so forth. See the
  84. ":ref:`packagegroup.bbclass <ref-classes-packagegroup>`" section for
  85. further details.
  86. .. _migration-1.3-image-features:
  87. IMAGE_FEATURES
  88. ~~~~~~~~~~~~~~
  89. Image recipes that previously included "apps-console-core" in
  90. :term:`IMAGE_FEATURES` should now include "splash"
  91. instead to enable the boot-up splash screen. Retaining
  92. "apps-console-core" will still include the splash screen but generates a
  93. warning. The "apps-x11-core" and "apps-x11-games" ``IMAGE_FEATURES``
  94. features have been removed.
  95. .. _migration-1.3-removed-recipes:
  96. Removed Recipes
  97. ~~~~~~~~~~~~~~~
  98. The following recipes have been removed. For most of them, it is
  99. unlikely that you would have any references to them in your own
  100. :term:`Metadata`. However, you should check your metadata
  101. against this list to be sure:
  102. - ``libx11-trim``: Replaced by ``libx11``, which has a negligible
  103. size difference with modern Xorg.
  104. - ``xserver-xorg-lite``: Use ``xserver-xorg``, which has a negligible
  105. size difference when DRI and GLX modules are not installed.
  106. - ``xserver-kdrive``: Effectively unmaintained for many years.
  107. - ``mesa-xlib``: No longer serves any purpose.
  108. - ``galago``: Replaced by telepathy.
  109. - ``gail``: Functionality was integrated into GTK+ 2.13.
  110. - ``eggdbus``: No longer needed.
  111. - ``gcc-*-intermediate``: The build has been restructured to avoid
  112. the need for this step.
  113. - ``libgsmd``: Unmaintained for many years. Functionality now
  114. provided by ``ofono`` instead.
  115. - *contacts, dates, tasks, eds-tools*: Largely unmaintained PIM
  116. application suite. It has been moved to ``meta-gnome`` in
  117. ``meta-openembedded``.
  118. In addition to the previously listed changes, the ``meta-demoapps``
  119. directory has also been removed because the recipes in it were not being
  120. maintained and many had become obsolete or broken. Additionally, these
  121. recipes were not parsed in the default configuration. Many of these
  122. recipes are already provided in an updated and maintained form within
  123. the OpenEmbedded community layers such as ``meta-oe`` and
  124. ``meta-gnome``. For the remainder, you can now find them in the
  125. ``meta-extras`` repository, which is in the
  126. :yocto_git:`Source Repositories <>` at
  127. http://git.yoctoproject.org/cgit/cgit.cgi/meta-extras/.
  128. .. _1.3-linux-kernel-naming:
  129. Linux Kernel Naming
  130. -------------------
  131. The naming scheme for kernel output binaries has been changed to now
  132. include :term:`PE` as part of the filename:
  133. ::
  134. KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PE}-${PV}-${PR}-${MACHINE}-${DATETIME}"
  135. Because the ``PE`` variable is not set by default, these binary files
  136. could result with names that include two dash characters. Here is an
  137. example: ::
  138. bzImage--3.10.9+git0+cd502a8814_7144bcc4b8-r0-qemux86-64-20130830085431.bin