migration-2.6.rst 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. Release 2.6 (thud)
  2. ==================
  3. This section provides migration information for moving to the Yocto
  4. Project 2.6 Release (codename "thud") from the prior release.
  5. .. _migration-2.6-gcc-changes:
  6. GCC 8.2 is Now Used by Default
  7. ------------------------------
  8. The GNU Compiler Collection version 8.2 is now used by default for
  9. compilation. For more information on what has changed in the GCC 8.x
  10. release, see https://gcc.gnu.org/gcc-8/changes.html.
  11. If you still need to compile with version 7.x, GCC 7.3 is also provided.
  12. You can select this version by setting the and can be selected by
  13. setting the :term:`GCCVERSION` variable to "7.%" in
  14. your configuration.
  15. .. _migration-2.6-removed-recipes:
  16. Removed Recipes
  17. ---------------
  18. The following recipes have been removed:
  19. - *beecrypt*: No longer needed since moving to RPM 4.
  20. - *bigreqsproto*: Replaced by ``xorgproto``.
  21. - *calibrateproto*: Removed in favor of ``xinput``.
  22. - *compositeproto*: Replaced by ``xorgproto``.
  23. - *damageproto*: Replaced by ``xorgproto``.
  24. - *dmxproto*: Replaced by ``xorgproto``.
  25. - *dri2proto*: Replaced by ``xorgproto``.
  26. - *dri3proto*: Replaced by ``xorgproto``.
  27. - *eee-acpi-scripts*: Became obsolete.
  28. - *fixesproto*: Replaced by ``xorgproto``.
  29. - *fontsproto*: Replaced by ``xorgproto``.
  30. - *fstests*: Became obsolete.
  31. - *gccmakedep*: No longer used.
  32. - *glproto*: Replaced by ``xorgproto``.
  33. - *gnome-desktop3*: No longer needed. This recipe has moved to ``meta-oe``.
  34. - *icon-naming-utils*: No longer used since the Sato theme was removed in 2016.
  35. - *inputproto*: Replaced by ``xorgproto``.
  36. - *kbproto*: Replaced by ``xorgproto``.
  37. - *libusb-compat*: Became obsolete.
  38. - *libuser*: Became obsolete.
  39. - *libnfsidmap*: No longer an external requirement since ``nfs-utils`` 2.2.1. ``libnfsidmap`` is now integrated.
  40. - *libxcalibrate*: No longer needed with ``xinput``
  41. - *mktemp*: Became obsolete. The ``mktemp`` command is provided by both ``busybox`` and ``coreutils``.
  42. - *ossp-uuid*: Is not being maintained and has mostly been replaced by ``uuid.h`` in ``util-linux``.
  43. - *pax-utils*: No longer needed. Previous QA tests that did use this recipe are now done at build time.
  44. - *pcmciautils*: Became obsolete.
  45. - *pixz*: No longer needed. ``xz`` now supports multi-threaded compression.
  46. - *presentproto*: Replaced by ``xorgproto``.
  47. - *randrproto*: Replaced by ``xorgproto``.
  48. - *recordproto*: Replaced by ``xorgproto``.
  49. - *renderproto*: Replaced by ``xorgproto``.
  50. - *resourceproto*: Replaced by ``xorgproto``.
  51. - *scrnsaverproto*: Replaced by ``xorgproto``.
  52. - *trace-cmd*: Became obsolete. ``perf`` replaced this recipe's functionally.
  53. - *videoproto*: Replaced by ``xorgproto``.
  54. - *wireless-tools*: Became obsolete. Superseded by ``iw``.
  55. - *xcmiscproto*: Replaced by ``xorgproto``.
  56. - *xextproto*: Replaced by ``xorgproto``.
  57. - *xf86dgaproto*: Replaced by ``xorgproto``.
  58. - *xf86driproto*: Replaced by ``xorgproto``.
  59. - *xf86miscproto*: Replaced by ``xorgproto``.
  60. - *xf86-video-omapfb*: Became obsolete. Use kernel modesetting driver instead.
  61. - *xf86-video-omap*: Became obsolete. Use kernel modesetting driver instead.
  62. - *xf86vidmodeproto*: Replaced by ``xorgproto``.
  63. - *xineramaproto*: Replaced by ``xorgproto``.
  64. - *xproto*: Replaced by ``xorgproto``.
  65. - *yasm*: No longer needed since previous usages are now satisfied by ``nasm``.
  66. .. _migration-2.6-packaging-changes:
  67. Packaging Changes
  68. -----------------
  69. The following packaging changes have been made:
  70. - *cmake*: ``cmake.m4`` and ``toolchain`` files have been moved to
  71. the main package.
  72. - *iptables*: The ``iptables`` modules have been split into
  73. separate packages.
  74. - *alsa-lib*: ``libasound`` is now in the main ``alsa-lib`` package
  75. instead of ``libasound``.
  76. - *glibc*: ``libnss-db`` is now in its own package along with a
  77. ``/var/db/makedbs.sh`` script to update databases.
  78. - *python and python3*: The main package has been removed from
  79. the recipe. You must install specific packages or ``python-modules``
  80. / ``python3-modules`` for everything.
  81. - *systemtap*: Moved ``systemtap-exporter`` into its own package.
  82. .. _migration-2.6-xorg-protocol-dependencies:
  83. XOrg Protocol dependencies
  84. --------------------------
  85. The ``*proto`` upstream repositories have been combined into one
  86. "xorgproto" repository. Thus, the corresponding recipes have also been
  87. combined into a single ``xorgproto`` recipe. Any recipes that depend
  88. upon the older ``*proto`` recipes need to be changed to depend on the
  89. newer ``xorgproto`` recipe instead.
  90. For names of recipes removed because of this repository change, see the
  91. :ref:`migration-guides/migration-2.6:removed recipes` section.
  92. .. _migration-2.6-distutils-distutils3-fetching-dependencies:
  93. ``distutils`` and ``distutils3`` Now Prevent Fetching Dependencies During the ``do_configure`` Task
  94. ---------------------------------------------------------------------------------------------------
  95. Previously, it was possible for Python recipes that inherited the
  96. ``distutils`` and ``distutils3`` classes to fetch code
  97. during the :ref:`ref-tasks-configure` task to satisfy
  98. dependencies mentioned in ``setup.py`` if those dependencies were not
  99. provided in the sysroot (i.e. recipes providing the dependencies were
  100. missing from :term:`DEPENDS`).
  101. .. note::
  102. This change affects classes beyond just the two mentioned (i.e.
  103. ``distutils`` and ``distutils3``). Any recipe that inherits ``distutils*``
  104. classes are affected. For example, the ``setuptools`` and
  105. :ref:`setuptools3 <ref-classes-setuptools3>`
  106. recipes are affected since they inherit the ``distutils*`` classes.
  107. Fetching these types of dependencies that are not provided in the
  108. sysroot negatively affects the ability to reproduce builds. This type of
  109. fetching is now explicitly disabled. Consequently, any missing
  110. dependencies in Python recipes that use these classes now result in an
  111. error during the :ref:`ref-tasks-configure` task.
  112. .. _migration-2.6-linux-yocto-configuration-audit-issues-now-correctly-reported:
  113. ``linux-yocto`` Configuration Audit Issues Now Correctly Reported
  114. -----------------------------------------------------------------
  115. Due to a bug, the kernel configuration audit functionality was not
  116. writing out any resulting warnings during the build. This issue is now
  117. corrected. You might notice these warnings now if you have a custom
  118. kernel configuration with a ``linux-yocto`` style kernel recipe.
  119. .. _migration-2.6-image-kernel-artifact-naming-changes:
  120. Image/Kernel Artifact Naming Changes
  121. ------------------------------------
  122. The following changes have been made:
  123. - Name variables (e.g. :term:`IMAGE_NAME`) use a new
  124. :term:`IMAGE_VERSION_SUFFIX` variable instead of
  125. :term:`DATETIME`. Using :term:`IMAGE_VERSION_SUFFIX`
  126. allows easier and more direct changes.
  127. The :term:`IMAGE_VERSION_SUFFIX` variable is set in the ``bitbake.conf``
  128. configuration file as follows::
  129. IMAGE_VERSION_SUFFIX = "-${DATETIME}"
  130. - Several variables have changed names for consistency::
  131. Old Variable Name New Variable Name
  132. ========================================================
  133. KERNEL_IMAGE_BASE_NAME KERNEL_IMAGE_NAME
  134. KERNEL_IMAGE_SYMLINK_NAME KERNEL_IMAGE_LINK_NAME
  135. MODULE_TARBALL_BASE_NAME MODULE_TARBALL_NAME
  136. MODULE_TARBALL_SYMLINK_NAME MODULE_TARBALL_LINK_NAME
  137. INITRAMFS_BASE_NAME INITRAMFS_NAME
  138. - The ``MODULE_IMAGE_BASE_NAME`` variable has been removed. The module
  139. tarball name is now controlled directly with the
  140. :term:`MODULE_TARBALL_NAME` variable.
  141. - The :term:`KERNEL_DTB_NAME` and
  142. :term:`KERNEL_DTB_LINK_NAME` variables
  143. have been introduced to control kernel Device Tree Binary (DTB)
  144. artifact names instead of mangling ``KERNEL_IMAGE_*`` variables.
  145. - The :term:`KERNEL_FIT_NAME` and
  146. :term:`KERNEL_FIT_LINK_NAME` variables
  147. have been introduced to specify the name of flattened image tree
  148. (FIT) kernel images similar to other deployed artifacts.
  149. - The :term:`MODULE_TARBALL_NAME` and
  150. :term:`MODULE_TARBALL_LINK_NAME`
  151. variable values no longer include the "module-" prefix or ".tgz"
  152. suffix. These parts are now hardcoded so that the values are
  153. consistent with other artifact naming variables.
  154. - Added the :term:`INITRAMFS_LINK_NAME`
  155. variable so that the symlink can be controlled similarly to other
  156. artifact types.
  157. - :term:`INITRAMFS_NAME` now uses
  158. "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" instead
  159. of "${PV}-${PR}-${MACHINE}-${DATETIME}", which makes it consistent
  160. with other variables.
  161. .. _migration-2.6-serial-console-deprecated:
  162. ``SERIAL_CONSOLE`` Deprecated
  163. -----------------------------
  164. The :term:`SERIAL_CONSOLE` variable has been
  165. functionally replaced by the
  166. :term:`SERIAL_CONSOLES` variable for some time.
  167. With the Yocto Project 2.6 release, :term:`SERIAL_CONSOLE` has been
  168. officially deprecated.
  169. :term:`SERIAL_CONSOLE` will continue to work as before for the 2.6 release.
  170. However, for the sake of future compatibility, it is recommended that
  171. you replace all instances of :term:`SERIAL_CONSOLE` with
  172. :term:`SERIAL_CONSOLES`.
  173. .. note::
  174. The only difference in usage is that :term:`SERIAL_CONSOLES`
  175. expects entries to be separated using semicolons as compared to
  176. :term:`SERIAL_CONSOLE`, which expects spaces.
  177. .. _migration-2.6-poky-sets-unknown-configure-option-to-qa-error:
  178. Configure Script Reports Unknown Options as Errors
  179. --------------------------------------------------
  180. If the configure script reports an unknown option, this now triggers a
  181. QA error instead of a warning. Any recipes that previously got away with
  182. specifying such unknown options now need to be fixed.
  183. .. _migration-2.6-override-changes:
  184. Override Changes
  185. ----------------
  186. The following changes have occurred:
  187. - The ``virtclass-native`` and ``virtclass-nativesdk`` Overrides Have
  188. Been Removed: The ``virtclass-native`` and ``virtclass-nativesdk``
  189. overrides have been deprecated since 2012 in favor of
  190. ``class-native`` and ``class-nativesdk``, respectively. Both
  191. ``virtclass-native`` and ``virtclass-nativesdk`` are now dropped.
  192. .. note::
  193. The ``virtclass-multilib-`` overrides for multilib are still valid.
  194. - The ``forcevariable`` Override Now Has a Higher Priority Than
  195. ``libc`` Overrides: The ``forcevariable`` override is documented to
  196. be the highest priority override. However, due to a long-standing
  197. quirk of how :term:`OVERRIDES` is set, the ``libc``
  198. overrides (e.g. ``libc-glibc``, ``libc-musl``, and so forth)
  199. erroneously had a higher priority. This issue is now corrected.
  200. It is likely this change will not cause any problems. However, it is
  201. possible with some unusual configurations that you might see a change
  202. in behavior if you were relying on the previous behavior. Be sure to
  203. check how you use ``forcevariable`` and ``libc-*`` overrides in your
  204. custom layers and configuration files to ensure they make sense.
  205. - The ``build-${BUILD_OS}`` Override Has Been Removed: The
  206. ``build-${BUILD_OS}``, which is typically ``build-linux``, override
  207. has been removed because building on a host operating system other
  208. than a recent version of Linux is neither supported nor recommended.
  209. Dropping the override avoids giving the impression that other host
  210. operating systems might be supported.
  211. - The "_remove" operator now preserves whitespace. Consequently, when
  212. specifying list items to remove, be aware that leading and trailing
  213. whitespace resulting from the removal is retained.
  214. See the ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:removal (override style syntax)`"
  215. section in the BitBake User Manual for a detailed example.
  216. .. _migration-2.6-systemd-configuration-now-split-out-to-system-conf:
  217. ``systemd`` Configuration is Now Split Into ``systemd-conf``
  218. ------------------------------------------------------------
  219. The configuration for the ``systemd`` recipe has been moved into a
  220. ``system-conf`` recipe. Moving this configuration to a separate recipe
  221. avoids the ``systemd`` recipe from becoming machine-specific for cases
  222. where machine-specific configurations need to be applied (e.g. for
  223. ``qemu*`` machines).
  224. Currently, the new recipe packages the following files::
  225. ${sysconfdir}/machine-id
  226. ${sysconfdir}/systemd/coredump.conf
  227. ${sysconfdir}/systemd/journald.conf
  228. ${sysconfdir}/systemd/logind.conf
  229. ${sysconfdir}/systemd/system.conf
  230. ${sysconfdir}/systemd/user.conf
  231. If you previously used bbappend files to append the ``systemd`` recipe to
  232. change any of the listed files, you must do so for the ``systemd-conf``
  233. recipe instead.
  234. .. _migration-2.6-automatic-testing-changes:
  235. Automatic Testing Changes
  236. -------------------------
  237. This section provides information about automatic testing changes:
  238. - ``TEST_IMAGE`` Variable Removed: Prior to this release, you set the
  239. ``TEST_IMAGE`` variable to "1" to enable automatic testing for
  240. successfully built images. The ``TEST_IMAGE`` variable no longer
  241. exists and has been replaced by the
  242. :term:`TESTIMAGE_AUTO` variable.
  243. - Inheriting the :ref:`testimage <ref-classes-testimage>` and
  244. :ref:`testsdk <ref-classes-testsdk>` classes: best practices now dictate
  245. that you use the :term:`IMAGE_CLASSES` variable rather than the
  246. :term:`INHERIT` variable when you inherit the
  247. :ref:`testimage <ref-classes-testimage>` and
  248. :ref:`testsdk <ref-classes-testsdk>` classes used for automatic testing.
  249. .. _migration-2.6-openssl-changes:
  250. OpenSSL Changes
  251. ---------------
  252. `OpenSSL <https://www.openssl.org/>`__ has been upgraded from 1.0 to
  253. 1.1. By default, this upgrade could cause problems for recipes that have
  254. both versions in their dependency chains. The problem is that both
  255. versions cannot be installed together at build time.
  256. .. note::
  257. It is possible to have both versions of the library at runtime.
  258. .. _migration-2.6-bitbake-changes:
  259. BitBake Changes
  260. ---------------
  261. The server logfile ``bitbake-cookerdaemon.log`` is now always placed in
  262. the :term:`Build Directory` instead of the current directory.
  263. .. _migration-2.6-security-changes:
  264. Security Changes
  265. ----------------
  266. The Poky distribution now uses security compiler flags by default.
  267. Inclusion of these flags could cause new failures due to stricter
  268. checking for various potential security issues in code.
  269. .. _migration-2.6-post-installation-changes:
  270. Post Installation Changes
  271. -------------------------
  272. You must explicitly mark post installs to defer to the target. If you
  273. want to explicitly defer a postinstall to first boot on the target
  274. rather than at root filesystem creation time, use ``pkg_postinst_ontarget()`` or
  275. call ``postinst_intercept delay_to_first_boot`` from ``pkg_postinst()``.
  276. Any failure of a ``pkg_postinst()`` script (including exit 1) triggers
  277. an error during the :ref:`ref-tasks-rootfs` task.
  278. For more information on post-installation behavior, see the
  279. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  280. section in the Yocto Project Development Tasks Manual.
  281. .. _migration-2.6-python-3-profile-guided-optimizations:
  282. Python 3 Profile-Guided Optimization
  283. ------------------------------------
  284. The ``python3`` recipe now enables profile-guided optimization. Using
  285. this optimization requires a little extra build time in exchange for
  286. improved performance on the target at runtime. Additionally, the
  287. optimization is only enabled if the current
  288. :term:`MACHINE` has support for user-mode emulation in
  289. QEMU (i.e. "qemu-usermode" is in
  290. :term:`MACHINE_FEATURES`, which it is by
  291. default).
  292. If you wish to disable Python profile-guided optimization regardless of
  293. the value of :term:`MACHINE_FEATURES`, then ensure that
  294. :term:`PACKAGECONFIG` for the ``python3`` recipe
  295. does not contain "pgo". You could accomplish the latter using the
  296. following at the configuration level::
  297. PACKAGECONFIG_remove_pn-python3 = "pgo"
  298. Alternatively, you can set :term:`PACKAGECONFIG` using an append file
  299. for the ``python3`` recipe.
  300. .. _migration-2.6-miscellaneous-changes:
  301. Miscellaneous Changes
  302. ---------------------
  303. The following miscellaneous changes occurred:
  304. - Default to using the Thumb-2 instruction set for armv7a and above. If
  305. you have any custom recipes that build software that needs to be
  306. built with the ARM instruction set, change the recipe to set the
  307. instruction set as follows::
  308. ARM_INSTRUCTION_SET = "arm"
  309. - ``run-postinsts`` no longer uses ``/etc/*-postinsts`` for
  310. ``dpkg/opkg`` in favor of built-in postinst support. RPM behavior
  311. remains unchanged.
  312. - The ``NOISO`` and ``NOHDD`` variables are no longer used. You now
  313. control building ``*.iso`` and ``*.hddimg`` image types directly by
  314. using the :term:`IMAGE_FSTYPES` variable.
  315. - The ``scripts/contrib/mkefidisk.sh`` has been removed in favor of
  316. Wic.
  317. - ``kernel-modules`` has been removed from
  318. :term:`RRECOMMENDS` for ``qemumips`` and
  319. ``qemumips64`` machines. Removal also impacts the ``x86-base.inc``
  320. file.
  321. .. note::
  322. ``genericx86`` and ``genericx86-64`` retain ``kernel-modules`` as part of
  323. the :term:`RRECOMMENDS` variable setting.
  324. - The ``LGPLv2_WHITELIST_GPL-3.0`` variable has been removed. If you
  325. are setting this variable in your configuration, set or append it to
  326. the ``WHITELIST_GPL-3.0`` variable instead.
  327. - ``${ASNEEDED}`` is now included in the
  328. :term:`TARGET_LDFLAGS` variable directly. The
  329. remaining definitions from ``meta/conf/distro/include/as-needed.inc``
  330. have been moved to corresponding recipes.
  331. - Support for DSA host keys has been dropped from the OpenSSH recipes.
  332. If you are still using DSA keys, you must switch over to a more
  333. secure algorithm as recommended by OpenSSH upstream.
  334. - The ``dhcp`` recipe now uses the ``dhcpd6.conf`` configuration file
  335. in ``dhcpd6.service`` for IPv6 DHCP rather than re-using
  336. ``dhcpd.conf``, which is now reserved for IPv4.