diff options
Diffstat (limited to 'documentation/migration-guides/migration-2.1.rst')
-rw-r--r-- | documentation/migration-guides/migration-2.1.rst | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/documentation/migration-guides/migration-2.1.rst b/documentation/migration-guides/migration-2.1.rst index 01352acbfa..18b05b52cc 100644 --- a/documentation/migration-guides/migration-2.1.rst +++ b/documentation/migration-guides/migration-2.1.rst | |||
@@ -66,7 +66,7 @@ Makefile Environment Changes | |||
66 | :term:`EXTRA_OEMAKE` now defaults to "" instead of | 66 | :term:`EXTRA_OEMAKE` now defaults to "" instead of |
67 | "-e MAKEFLAGS=". Setting :term:`EXTRA_OEMAKE` to "-e MAKEFLAGS=" by default | 67 | "-e MAKEFLAGS=". Setting :term:`EXTRA_OEMAKE` to "-e MAKEFLAGS=" by default |
68 | was a historical accident that has required many classes (e.g. | 68 | was a historical accident that has required many classes (e.g. |
69 | :ref:`autotools <ref-classes-autotools>`, ``module``) and recipes to override this default in order | 69 | :ref:`ref-classes-autotools`, ``module``) and recipes to override this default in order |
70 | to work with sensible build systems. When upgrading to the release, you | 70 | to work with sensible build systems. When upgrading to the release, you |
71 | must edit any recipe that relies upon this old default by either setting | 71 | must edit any recipe that relies upon this old default by either setting |
72 | :term:`EXTRA_OEMAKE` back to "-e MAKEFLAGS=" or by explicitly setting any | 72 | :term:`EXTRA_OEMAKE` back to "-e MAKEFLAGS=" or by explicitly setting any |
@@ -100,7 +100,7 @@ breaking FHS. | |||
100 | ``ac_cv_sizeof_off_t`` is No Longer Cached in Site Files | 100 | ``ac_cv_sizeof_off_t`` is No Longer Cached in Site Files |
101 | -------------------------------------------------------- | 101 | -------------------------------------------------------- |
102 | 102 | ||
103 | For recipes inheriting the :ref:`autotools <ref-classes-autotools>` | 103 | For recipes inheriting the :ref:`ref-classes-autotools` |
104 | class, ``ac_cv_sizeof_off_t`` is no longer cached in the site files for | 104 | class, ``ac_cv_sizeof_off_t`` is no longer cached in the site files for |
105 | ``autoconf``. The reason for this change is because the | 105 | ``autoconf``. The reason for this change is because the |
106 | ``ac_cv_sizeof_off_t`` value is not necessarily static per architecture | 106 | ``ac_cv_sizeof_off_t`` value is not necessarily static per architecture |
@@ -108,12 +108,12 @@ as was previously assumed. Rather, the value changes based on whether | |||
108 | large file support is enabled. For most software that uses ``autoconf``, | 108 | large file support is enabled. For most software that uses ``autoconf``, |
109 | this change should not be a problem. However, if you have a recipe that | 109 | this change should not be a problem. However, if you have a recipe that |
110 | bypasses the standard :ref:`ref-tasks-configure` task | 110 | bypasses the standard :ref:`ref-tasks-configure` task |
111 | from the :ref:`autotools <ref-classes-autotools>` class and the software the recipe is building | 111 | from the :ref:`ref-classes-autotools` class and the software the recipe is building |
112 | uses a very old version of ``autoconf``, the recipe might be incapable | 112 | uses a very old version of ``autoconf``, the recipe might be incapable |
113 | of determining the correct size of ``off_t`` during :ref:`ref-tasks-configure`. | 113 | of determining the correct size of ``off_t`` during :ref:`ref-tasks-configure`. |
114 | 114 | ||
115 | The best course of action is to patch the software as necessary to allow | 115 | The best course of action is to patch the software as necessary to allow |
116 | the default implementation from the :ref:`autotools <ref-classes-autotools>` class to work such | 116 | the default implementation from the :ref:`ref-classes-autotools` class to work such |
117 | that ``autoreconf`` succeeds and produces a working configure script, | 117 | that ``autoreconf`` succeeds and produces a working configure script, |
118 | and to remove the overridden :ref:`ref-tasks-configure` task such that the default | 118 | and to remove the overridden :ref:`ref-tasks-configure` task such that the default |
119 | implementation does get used. | 119 | implementation does get used. |
@@ -138,9 +138,8 @@ should make edits so that those tasks are after the | |||
138 | after :ref:`ref-tasks-rootfs` so that your added tasks run at the correct | 138 | after :ref:`ref-tasks-rootfs` so that your added tasks run at the correct |
139 | time. | 139 | time. |
140 | 140 | ||
141 | A minor part of this restructuring is that the post-processing | 141 | A minor part of this restructuring is that the post-processing definitions and |
142 | definitions and functions have been moved from the | 142 | functions have been moved from the :ref:`ref-classes-image` class to the |
143 | :ref:`image <ref-classes-image>` class to the | ||
144 | :ref:`rootfs-postcommands <ref-classes-rootfs*>` class. Functionally, | 143 | :ref:`rootfs-postcommands <ref-classes-rootfs*>` class. Functionally, |
145 | however, they remain unchanged. | 144 | however, they remain unchanged. |
146 | 145 | ||
@@ -191,18 +190,17 @@ Class Changes | |||
191 | The following classes have changed: | 190 | The following classes have changed: |
192 | 191 | ||
193 | - ``autotools_stage``: Removed because the | 192 | - ``autotools_stage``: Removed because the |
194 | :ref:`autotools <ref-classes-autotools>` class now provides its | 193 | :ref:`ref-classes-autotools` class now provides its |
195 | functionality. Recipes that inherited from ``autotools_stage`` should | 194 | functionality. Recipes that inherited from ``autotools_stage`` should |
196 | now inherit from :ref:`autotools <ref-classes-autotools>` instead. | 195 | now inherit from :ref:`ref-classes-autotools` instead. |
197 | 196 | ||
198 | - ``boot-directdisk``: Merged into the ``image-vm`` class. The | 197 | - ``boot-directdisk``: Merged into the ``image-vm`` class. The |
199 | ``boot-directdisk`` class was rarely directly used. Consequently, | 198 | ``boot-directdisk`` class was rarely directly used. Consequently, |
200 | this change should not cause any issues. | 199 | this change should not cause any issues. |
201 | 200 | ||
202 | - ``bootimg``: Merged into the | 201 | - ``bootimg``: Merged into the :ref:`ref-classes-image-live` class. The |
203 | :ref:`image-live <ref-classes-image-live>` class. The ``bootimg`` | 202 | ``bootimg`` class was rarely directly used. Consequently, this change should |
204 | class was rarely directly used. Consequently, this change should not | 203 | not cause any issues. |
205 | cause any issues. | ||
206 | 204 | ||
207 | - ``packageinfo``: Removed due to its limited use by the Hob UI, which | 205 | - ``packageinfo``: Removed due to its limited use by the Hob UI, which |
208 | has itself been removed. | 206 | has itself been removed. |
@@ -257,14 +255,14 @@ The following changes have been made for the Poky distribution: | |||
257 | not need to change anything unless you are relying on this naming | 255 | not need to change anything unless you are relying on this naming |
258 | elsewhere. | 256 | elsewhere. |
259 | 257 | ||
260 | - The :ref:`uninative <ref-classes-uninative>` class is now enabled | 258 | - The :ref:`ref-classes-uninative` class is now enabled |
261 | by default in Poky. This class attempts to isolate the build system | 259 | by default in Poky. This class attempts to isolate the build system |
262 | from the host distribution's C library and makes re-use of native | 260 | from the host distribution's C library and makes re-use of native |
263 | shared state artifacts across different host distributions practical. | 261 | shared state artifacts across different host distributions practical. |
264 | With this class enabled, a tarball containing a pre-built C library | 262 | With this class enabled, a tarball containing a pre-built C library |
265 | is downloaded at the start of the build. | 263 | is downloaded at the start of the build. |
266 | 264 | ||
267 | The :ref:`uninative <ref-classes-uninative>` class is enabled through the | 265 | The :ref:`ref-classes-uninative` class is enabled through the |
268 | ``meta/conf/distro/include/yocto-uninative.inc`` file, which for | 266 | ``meta/conf/distro/include/yocto-uninative.inc`` file, which for |
269 | those not using the Poky distribution, can include to easily enable | 267 | those not using the Poky distribution, can include to easily enable |
270 | the same functionality. | 268 | the same functionality. |
@@ -403,9 +401,9 @@ These additional changes exist: | |||
403 | as these directories are automatically found and added. | 401 | as these directories are automatically found and added. |
404 | 402 | ||
405 | - Inaccurate disk and CPU percentage data has been dropped from | 403 | - Inaccurate disk and CPU percentage data has been dropped from |
406 | :ref:`buildstats <ref-classes-buildstats>` output. This data has been replaced with | 404 | :ref:`ref-classes-buildstats` output. This data has been replaced with |
407 | ``getrusage()`` data and corrected IO statistics. You will probably | 405 | ``getrusage()`` data and corrected IO statistics. You will probably |
408 | need to update any custom code that reads the :ref:`buildstats <ref-classes-buildstats>` data. | 406 | need to update any custom code that reads the :ref:`ref-classes-buildstats` data. |
409 | 407 | ||
410 | - The ``meta/conf/distro/include/package_regex.inc`` is now deprecated. | 408 | - The ``meta/conf/distro/include/package_regex.inc`` is now deprecated. |
411 | The contents of this file have been moved to individual recipes. | 409 | The contents of this file have been moved to individual recipes. |