migration-1.6.rst 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. Release 1.6 (daisy)
  2. ===================
  3. This section provides migration information for moving to the Yocto
  4. Project 1.6 Release (codename "daisy") from the prior release.
  5. .. _migration-1.6-archiver-class:
  6. ``archiver`` Class
  7. ------------------
  8. The :ref:`archiver <ref-classes-archiver>` class has been rewritten
  9. and its configuration has been simplified. For more details on the
  10. source archiver, see the
  11. ":ref:`dev-manual/licenses:maintaining open source license compliance during your product's lifecycle`"
  12. section in the Yocto Project Development Tasks Manual.
  13. .. _migration-1.6-packaging-changes:
  14. Packaging Changes
  15. -----------------
  16. The following packaging changes have been made:
  17. - The ``binutils`` recipe no longer produces a ``binutils-symlinks``
  18. package. ``update-alternatives`` is now used to handle the preferred
  19. ``binutils`` variant on the target instead.
  20. - The tc (traffic control) utilities have been split out of the main
  21. ``iproute2`` package and put into the ``iproute2-tc`` package.
  22. - The ``gtk-engines`` schemas have been moved to a dedicated
  23. ``gtk-engines-schemas`` package.
  24. - The ``armv7a`` with thumb package architecture suffix has changed.
  25. The suffix for these packages with the thumb optimization enabled is
  26. "t2" as it should be. Use of this suffix was not the case in the 1.5
  27. release. Architecture names will change within package feeds as a
  28. result.
  29. .. _migration-1.6-bitbake:
  30. BitBake
  31. -------
  32. The following changes have been made to :term:`BitBake`.
  33. .. _migration-1.6-matching-branch-requirement-for-git-fetching:
  34. Matching Branch Requirement for Git Fetching
  35. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36. When fetching source from a Git repository using
  37. :term:`SRC_URI`, BitBake will now validate the
  38. :term:`SRCREV` value against the branch. You can specify
  39. the branch using the following form::
  40. SRC_URI = "git://server.name/repository;branch=branchname"
  41. If you do not specify a branch, BitBake looks in the default "master" branch.
  42. Alternatively, if you need to bypass this check (e.g. if you are
  43. fetching a revision corresponding to a tag that is not on any branch),
  44. you can add ";nobranch=1" to the end of the URL within :term:`SRC_URI`.
  45. .. _migration-1.6-bitbake-deps:
  46. Python Definition substitutions
  47. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  48. BitBake had some previously deprecated Python definitions within its
  49. ``bb`` module removed. You should use their sub-module counterparts
  50. instead:
  51. - ``bb.MalformedUrl``: Use ``bb.fetch.MalformedUrl``.
  52. - ``bb.encodeurl``: Use ``bb.fetch.encodeurl``.
  53. - ``bb.decodeurl``: Use ``bb.fetch.decodeurl``
  54. - ``bb.mkdirhier``: Use ``bb.utils.mkdirhier``.
  55. - ``bb.movefile``: Use ``bb.utils.movefile``.
  56. - ``bb.copyfile``: Use ``bb.utils.copyfile``.
  57. - ``bb.which``: Use ``bb.utils.which``.
  58. - ``bb.vercmp_string``: Use ``bb.utils.vercmp_string``.
  59. - ``bb.vercmp``: Use ``bb.utils.vercmp``.
  60. .. _migration-1.6-bitbake-fetcher:
  61. SVK Fetcher
  62. ~~~~~~~~~~~
  63. The SVK fetcher has been removed from BitBake.
  64. .. _migration-1.6-bitbake-console-output:
  65. Console Output Error Redirection
  66. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  67. The BitBake console UI will now output errors to ``stderr`` instead of
  68. ``stdout``. Consequently, if you are piping or redirecting the output of
  69. ``bitbake`` to somewhere else, and you wish to retain the errors, you
  70. will need to add ``2>&1`` (or something similar) to the end of your
  71. ``bitbake`` command line.
  72. .. _migration-1.6-task-taskname-overrides:
  73. ``task-``\ taskname Overrides
  74. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  75. ``task-``\ taskname overrides have been adjusted so that tasks whose
  76. names contain underscores have the underscores replaced by hyphens for
  77. the override so that they now function properly. For example, the task
  78. override for :ref:`ref-tasks-populate_sdk` is
  79. ``task-populate-sdk``.
  80. .. _migration-1.6-variable-changes:
  81. Changes to Variables
  82. --------------------
  83. The following variables have changed. For information on the
  84. OpenEmbedded build system variables, see the ":doc:`/ref-manual/variables`" Chapter.
  85. .. _migration-1.6-variable-changes-TMPDIR:
  86. ``TMPDIR``
  87. ~~~~~~~~~~
  88. :term:`TMPDIR` can no longer be on an NFS mount. NFS does
  89. not offer full POSIX locking and inode consistency and can cause
  90. unexpected issues if used to store :term:`TMPDIR`.
  91. The check for this occurs on startup. If :term:`TMPDIR` is detected on an
  92. NFS mount, an error occurs.
  93. .. _migration-1.6-variable-changes-PRINC:
  94. ``PRINC``
  95. ~~~~~~~~~
  96. The ``PRINC`` variable has been deprecated and triggers a warning if
  97. detected during a build. For :term:`PR` increments on changes,
  98. use the PR service instead. You can find out more about this service in
  99. the ":ref:`dev-manual/packages:working with a pr service`"
  100. section in the Yocto Project Development Tasks Manual.
  101. .. _migration-1.6-variable-changes-IMAGE_TYPES:
  102. ``IMAGE_TYPES``
  103. ~~~~~~~~~~~~~~~
  104. The "sum.jffs2" option for :term:`IMAGE_TYPES` has
  105. been replaced by the "jffs2.sum" option, which fits the processing
  106. order.
  107. .. _migration-1.6-variable-changes-COPY_LIC_MANIFEST:
  108. ``COPY_LIC_MANIFEST``
  109. ~~~~~~~~~~~~~~~~~~~~~
  110. The :term:`COPY_LIC_MANIFEST` variable must now
  111. be set to "1" rather than any value in order to enable it.
  112. .. _migration-1.6-variable-changes-COPY_LIC_DIRS:
  113. ``COPY_LIC_DIRS``
  114. ~~~~~~~~~~~~~~~~~
  115. The :term:`COPY_LIC_DIRS` variable must now be set
  116. to "1" rather than any value in order to enable it.
  117. .. _migration-1.6-variable-changes-PACKAGE_GROUP:
  118. ``PACKAGE_GROUP``
  119. ~~~~~~~~~~~~~~~~~
  120. The ``PACKAGE_GROUP`` variable has been renamed to
  121. :term:`FEATURE_PACKAGES` to more accurately
  122. reflect its purpose. You can still use ``PACKAGE_GROUP`` but the
  123. OpenEmbedded build system produces a warning message when it encounters
  124. the variable.
  125. .. _migration-1.6-variable-changes-variable-entry-behavior:
  126. Preprocess and Post Process Command Variable Behavior
  127. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  128. The following variables now expect a semicolon separated list of
  129. functions to call and not arbitrary shell commands:
  130. - :term:`ROOTFS_PREPROCESS_COMMAND`
  131. - :term:`ROOTFS_POSTPROCESS_COMMAND`
  132. - :term:`SDK_POSTPROCESS_COMMAND`
  133. - :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  134. - :term:`POPULATE_SDK_POST_HOST_COMMAND`
  135. - :term:`IMAGE_POSTPROCESS_COMMAND`
  136. - :term:`IMAGE_PREPROCESS_COMMAND`
  137. - :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  138. - :term:`ROOTFS_POSTINSTALL_COMMAND`
  139. For
  140. migration purposes, you can simply wrap shell commands in a shell
  141. function and then call the function. Here is an example::
  142. my_postprocess_function() {
  143. echo "hello" > ${IMAGE_ROOTFS}/hello.txt
  144. }
  145. ROOTFS_POSTPROCESS_COMMAND += "my_postprocess_function; "
  146. .. _migration-1.6-package-test-ptest:
  147. Package Test (ptest)
  148. --------------------
  149. Package Tests (ptest) are built but not installed by default. For
  150. information on using Package Tests, see the
  151. ":ref:`dev-manual/packages:testing packages with ptest`" section in the
  152. Yocto Project Development Tasks Manual. For information on the
  153. :ref:`ptest <ref-classes-ptest>` class, see the ":ref:`ref-classes-ptest`"
  154. section.
  155. .. _migration-1.6-build-changes:
  156. Build Changes
  157. -------------
  158. Separate build and source directories have been enabled by default for
  159. selected recipes where it is known to work and for all
  160. recipes that inherit the :ref:`cmake <ref-classes-cmake>` class. In
  161. future releases the :ref:`autotools <ref-classes-autotools>` class
  162. will enable a separate :term:`Build Directory` by default as well. Recipes
  163. building Autotools-based software that fails to build with a separate
  164. :term:`Build Directory` should be changed to inherit from the
  165. :ref:`autotools-brokensep <ref-classes-autotools>` class instead of
  166. the :ref:`autotools <ref-classes-autotools>` or ``autotools_stage`` classes.
  167. .. _migration-1.6-building-qemu-native:
  168. ``qemu-native``
  169. ---------------
  170. ``qemu-native`` now builds without SDL-based graphical output support by
  171. default. The following additional lines are needed in your
  172. ``local.conf`` to enable it::
  173. PACKAGECONFIG_pn-qemu-native = "sdl"
  174. ASSUME_PROVIDED += "libsdl-native"
  175. .. note::
  176. The default ``local.conf`` contains these statements. Consequently, if you
  177. are building a headless system and using a default ``local.conf``
  178. file, you will need comment these two lines out.
  179. .. _migration-1.6-core-image-basic:
  180. ``core-image-basic``
  181. --------------------
  182. ``core-image-basic`` has been renamed to ``core-image-full-cmdline``.
  183. In addition to ``core-image-basic`` being renamed,
  184. ``packagegroup-core-basic`` has been renamed to
  185. ``packagegroup-core-full-cmdline`` to match.
  186. .. _migration-1.6-licensing:
  187. Licensing
  188. ---------
  189. The top-level :term:`LICENSE` file has been changed to better describe the
  190. license of the various components of :term:`OpenEmbedded-Core (OE-Core)`. However,
  191. the licensing itself remains unchanged.
  192. Normally, this change would not cause any side-effects. However, some
  193. recipes point to this file within
  194. :term:`LIC_FILES_CHKSUM` (as
  195. ``${COREBASE}/LICENSE``) and thus the accompanying checksum must be
  196. changed from 3f40d7994397109285ec7b81fdeb3b58 to
  197. 4d92cd373abda3937c2bc47fbc49d690. A better alternative is to have
  198. :term:`LIC_FILES_CHKSUM` point to a file describing the license that is
  199. distributed with the source that the recipe is building, if possible,
  200. rather than pointing to ``${COREBASE}/LICENSE``.
  201. .. _migration-1.6-cflags-options:
  202. ``CFLAGS`` Options
  203. ------------------
  204. The "-fpermissive" option has been removed from the default
  205. :term:`CFLAGS` value. You need to take action on
  206. individual recipes that fail when building with this option. You need to
  207. either patch the recipes to fix the issues reported by the compiler, or
  208. you need to add "-fpermissive" to :term:`CFLAGS` in the recipes.
  209. .. _migration-1.6-custom-images:
  210. Custom Image Output Types
  211. -------------------------
  212. Custom image output types, as selected using
  213. :term:`IMAGE_FSTYPES`, must declare their
  214. dependencies on other image types (if any) using a new
  215. :term:`IMAGE_TYPEDEP` variable.
  216. .. _migration-1.6-do-package-write-task:
  217. Tasks
  218. -----
  219. The ``do_package_write`` task has been removed. The task is no longer
  220. needed.
  221. .. _migration-1.6-update-alternatives-provider:
  222. ``update-alternative`` Provider
  223. -------------------------------
  224. The default ``update-alternatives`` provider has been changed from
  225. ``opkg`` to ``opkg-utils``. This change resolves some troublesome
  226. circular dependencies. The runtime package has also been renamed from
  227. ``update-alternatives-cworth`` to ``update-alternatives-opkg``.
  228. .. _migration-1.6-virtclass-overrides:
  229. ``virtclass`` Overrides
  230. -----------------------
  231. The ``virtclass`` overrides are now deprecated. Use the equivalent class
  232. overrides instead (e.g. ``virtclass-native`` becomes ``class-native``.)
  233. .. _migration-1.6-removed-renamed-recipes:
  234. Removed and Renamed Recipes
  235. ---------------------------
  236. The following recipes have been removed:
  237. - ``packagegroup-toolset-native`` --- this recipe is largely unused.
  238. - ``linux-yocto-3.8`` --- support for the Linux yocto 3.8 kernel has been
  239. dropped. Support for the 3.10 and 3.14 kernels have been added with
  240. the ``linux-yocto-3.10`` and ``linux-yocto-3.14`` recipes.
  241. - ``ocf-linux`` --- this recipe has been functionally replaced using
  242. ``cryptodev-linux``.
  243. - ``genext2fs`` --- ``genext2fs`` is no longer used by the build system
  244. and is unmaintained upstream.
  245. - ``js`` --- this provided an ancient version of Mozilla's javascript
  246. engine that is no longer needed.
  247. - ``zaurusd`` --- the recipe has been moved to the ``meta-handheld``
  248. layer.
  249. - ``eglibc 2.17`` --- replaced by the ``eglibc 2.19`` recipe.
  250. - ``gcc 4.7.2`` --- replaced by the now stable ``gcc 4.8.2``.
  251. - ``external-sourcery-toolchain`` --- this recipe is now maintained in
  252. the ``meta-sourcery`` layer.
  253. - ``linux-libc-headers-yocto 3.4+git`` --- now using version 3.10 of the
  254. ``linux-libc-headers`` by default.
  255. - ``meta-toolchain-gmae`` --- this recipe is obsolete.
  256. - ``packagegroup-core-sdk-gmae`` --- this recipe is obsolete.
  257. - ``packagegroup-core-standalone-gmae-sdk-target`` --- this recipe is
  258. obsolete.
  259. .. _migration-1.6-removed-classes:
  260. Removed Classes
  261. ---------------
  262. The following classes have become obsolete and have been removed:
  263. - ``module_strip``
  264. - ``pkg_metainfo``
  265. - ``pkg_distribute``
  266. - ``image-empty``
  267. .. _migration-1.6-reference-bsps:
  268. Reference Board Support Packages (BSPs)
  269. ---------------------------------------
  270. The following reference BSPs changes occurred:
  271. - The BeagleBoard (``beagleboard``) ARM reference hardware has been
  272. replaced by the BeagleBone (``beaglebone``) hardware.
  273. - The RouterStation Pro (``routerstationpro``) MIPS reference hardware
  274. has been replaced by the EdgeRouter Lite (``edgerouter``) hardware.
  275. The previous reference BSPs for the ``beagleboard`` and
  276. ``routerstationpro`` machines are still available in a new
  277. ``meta-yocto-bsp-old`` layer in the
  278. :yocto_git:`Source Repositories <>` at
  279. :yocto_git:`/meta-yocto-bsp-old/`.