migration-1.3.rst 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. Release 1.3 (danny)
  3. ===================
  4. This section provides migration information for moving to the Yocto
  5. Project 1.3 Release (codename "danny") 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``, :ref:`ref-tasks-unpack`, :ref:`ref-tasks-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 simplifies a lot
  66. of the packaging code for :ref:`ref-classes-nativesdk` recipes. All custom
  67. :ref:`ref-classes-nativesdk` recipes, which are relocatable packages that are
  68. native to :term:`SDK_ARCH`, and any references need to be updated to use
  69. ``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. :ref:`ref-classes-packagegroup` instead of ``task``, as well
  81. as taking the opportunity to remove anything now handled by
  82. :ref:`ref-classes-packagegroup`, such as providing ``-dev`` and ``-dbg``
  83. packages, setting :term:`LIC_FILES_CHKSUM`, and so forth. See the
  84. :ref:`ref-classes-packagegroup` section for further details.
  85. .. _migration-1.3-image-features:
  86. IMAGE_FEATURES
  87. ~~~~~~~~~~~~~~
  88. Image recipes that previously included ``apps-console-core`` in
  89. :term:`IMAGE_FEATURES` should now include ``splash``
  90. instead to enable the boot-up splash screen. Retaining
  91. ``apps-console-core`` will still include the splash screen but generates a
  92. warning. The ``apps-x11-core`` and ``apps-x11-games`` :term:`IMAGE_FEATURES`
  93. features have been removed.
  94. .. _migration-1.3-removed-recipes:
  95. Removed Recipes
  96. ~~~~~~~~~~~~~~~
  97. The following recipes have been removed. For most of them, it is
  98. unlikely that you would have any references to them in your own
  99. :term:`Metadata`. However, you should check your metadata
  100. against this list to be sure:
  101. - ``libx11-trim``: Replaced by ``libx11``, which has a negligible
  102. size difference with modern Xorg.
  103. - ``xserver-xorg-lite``: Use ``xserver-xorg``, which has a negligible
  104. size difference when DRI and GLX modules are not installed.
  105. - ``xserver-kdrive``: Effectively unmaintained for many years.
  106. - ``mesa-xlib``: No longer serves any purpose.
  107. - ``galago``: Replaced by telepathy.
  108. - ``gail``: Functionality was integrated into GTK+ 2.13.
  109. - ``eggdbus``: No longer needed.
  110. - ``gcc-*-intermediate``: The build has been restructured to avoid
  111. the need for this step.
  112. - ``libgsmd``: Unmaintained for many years. Functionality now
  113. provided by ``ofono`` instead.
  114. - *contacts, dates, tasks, eds-tools*: Largely unmaintained PIM
  115. application suite. It has been moved to ``meta-gnome`` in
  116. ``meta-openembedded``.
  117. In addition to the previously listed changes, the ``meta-demoapps``
  118. directory has also been removed because the recipes in it were not being
  119. maintained and many had become obsolete or broken. Additionally, these
  120. recipes were not parsed in the default configuration. Many of these
  121. recipes are already provided in an updated and maintained form within
  122. the OpenEmbedded community layers such as ``meta-oe`` and
  123. ``meta-gnome``. For the remainder, you can now find them in the
  124. ``meta-extras`` repository, which is in the
  125. :yocto_git:`Source Repositories <>` at
  126. :yocto_git:`/meta-extras/`.
  127. .. _1.3-linux-kernel-naming:
  128. Linux Kernel Naming
  129. -------------------
  130. The naming scheme for kernel output binaries has been changed to now
  131. include :term:`PE` as part of the filename::
  132. KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PE}-${PV}-${PR}-${MACHINE}-${DATETIME}"
  133. Because the :term:`PE` variable is not set by default, these binary files
  134. could result with names that include two dash characters. Here is an
  135. example::
  136. bzImage--3.10.9+git0+cd502a8814_7144bcc4b8-r0-qemux86-64-20130830085431.bin