diff options
| -rw-r--r-- | documentation/migration-guides/migration-5.3.rst | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/documentation/migration-guides/migration-5.3.rst b/documentation/migration-guides/migration-5.3.rst index 09095c7bb2..4d2e1763ce 100644 --- a/documentation/migration-guides/migration-5.3.rst +++ b/documentation/migration-guides/migration-5.3.rst | |||
| @@ -14,6 +14,56 @@ Migration notes for |yocto-ver| (|yocto-codename|) | |||
| 14 | This section provides migration information for moving to the Yocto | 14 | This section provides migration information for moving to the Yocto |
| 15 | Project |yocto-ver| Release (codename "|yocto-codename|") from the prior release. | 15 | Project |yocto-ver| Release (codename "|yocto-codename|") from the prior release. |
| 16 | 16 | ||
| 17 | :term:`WORKDIR` changes | ||
| 18 | ~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 19 | |||
| 20 | ``S = ${WORKDIR}/something`` no longer supported | ||
| 21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| 22 | |||
| 23 | If a recipe has :term:`S` set to be ``${``\ :term:`WORKDIR`\ ``}/something``, | ||
| 24 | this is no longer supported, and an error will be issued. The recipe should be | ||
| 25 | changed to:: | ||
| 26 | |||
| 27 | S = "${UNPACKDIR}/something" | ||
| 28 | |||
| 29 | ``S = ${WORKDIR}/git`` and ``S = ${UNPACKDIR}/git`` should be removed | ||
| 30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| 31 | |||
| 32 | The Git fetcher now unpacks into the :term:`BB_GIT_DEFAULT_DESTSUFFIX` directory | ||
| 33 | rather than the ``git/`` directory under :term:`UNPACKDIR`. | ||
| 34 | :term:`BB_GIT_DEFAULT_DESTSUFFIX` is set in :term:`OpenEmbedded-Core | ||
| 35 | (OE-Core)`'s :oe_git:`bitbake.conf | ||
| 36 | </openembedded-core/tree/meta/conf/bitbake.conf>` to :term:`BP`. | ||
| 37 | |||
| 38 | This location matches the default value of :term:`S` set by bitbake.conf, so :term:`S` | ||
| 39 | setting in recipes can and should be removed. | ||
| 40 | |||
| 41 | Note that when :term:`S` is set to a subdirectory of the git checkout, then it | ||
| 42 | should be instead adjusted according to the previous point:: | ||
| 43 | |||
| 44 | S = "${UNPACKDIR}/${BP}/something" | ||
| 45 | |||
| 46 | Note that "git" as the source checkout location can be hardcoded | ||
| 47 | in other places in recipes; when it's in :term:`SRC_URI`, replace with | ||
| 48 | :term:`BB_GIT_DEFAULT_DESTSUFFIX`, otherwise replace with :term:`BP`. | ||
| 49 | |||
| 50 | How to make those adjustments without tedious manual editing | ||
| 51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| 52 | |||
| 53 | The following sed command can be used to remove S = "${WORKDIR}/git | ||
| 54 | across a whole layer:: | ||
| 55 | |||
| 56 | sed -i "/^S = \"\${WORKDIR}\/git\"/d" `find . -name *.bb -o -name *.inc -o -name *.bbclass` | ||
| 57 | |||
| 58 | Then, the following command can tweak the remaining :term:`S` assignments to | ||
| 59 | refer to :term:`UNPACKDIR` instead of :term:`WORKDIR`:: | ||
| 60 | |||
| 61 | sed -i "s/^S = \"\${WORKDIR}\//S = \"\${UNPACKDIR}\//g" `find . -name *.bb -o -name *.inc -o -name *.bbclass` | ||
| 62 | |||
| 63 | The first change can introduce a lot of consecutive empty lines, so those can be removed with:: | ||
| 64 | |||
| 65 | sed -i -z -E 's/([ \t\f\v\r]*\n){3,}/\n\n/g' `find . -name *.bb -o -name *.inc` | ||
| 66 | |||
| 17 | Supported kernel versions | 67 | Supported kernel versions |
| 18 | ~~~~~~~~~~~~~~~~~~~~~~~~~ | 68 | ~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 19 | 69 | ||
