Andrew Geissler | f034379 | 2020-11-18 10:42:21 -0600 | [diff] [blame] | 1 | .. SPDX-License-Identifier: CC-BY-SA-2.0-UK |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 2 | |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 3 | Release 1.3 (danny) |
| 4 | =================== |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 5 | |
| 6 | This section provides migration information for moving to the Yocto |
Andrew Geissler | 3b8a17c | 2021-04-15 15:55:55 -0500 | [diff] [blame] | 7 | Project 1.3 Release (codename "danny") from the prior release. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 8 | |
| 9 | .. _1.3-local-configuration: |
| 10 | |
| 11 | Local Configuration |
| 12 | ------------------- |
| 13 | |
| 14 | Differences include changes for |
| 15 | :term:`SSTATE_MIRRORS` and ``bblayers.conf``. |
| 16 | |
| 17 | .. _migration-1.3-sstate-mirrors: |
| 18 | |
| 19 | SSTATE_MIRRORS |
| 20 | ~~~~~~~~~~~~~~ |
| 21 | |
| 22 | The shared state cache (sstate-cache), as pointed to by |
| 23 | :term:`SSTATE_DIR`, by default now has two-character |
| 24 | subdirectories to prevent issues arising from too many files in the same |
| 25 | directory. Also, native sstate-cache packages, which are built to run on |
| 26 | the host system, will go into a subdirectory named using the distro ID |
| 27 | string. If you copy the newly structured sstate-cache to a mirror |
| 28 | location (either local or remote) and then point to it in |
| 29 | :term:`SSTATE_MIRRORS`, you need to append "PATH" |
| 30 | to the end of the mirror URL so that the path used by BitBake before the |
| 31 | mirror substitution is appended to the path used to access the mirror. |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 32 | Here is an example:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 33 | |
| 34 | SSTATE_MIRRORS = "file://.* http://someserver.tld/share/sstate/PATH" |
| 35 | |
| 36 | .. _migration-1.3-bblayers-conf: |
| 37 | |
| 38 | bblayers.conf |
| 39 | ~~~~~~~~~~~~~ |
| 40 | |
| 41 | The ``meta-yocto`` layer consists of two parts that correspond to the |
| 42 | Poky reference distribution and the reference hardware Board Support |
| 43 | Packages (BSPs), respectively: ``meta-yocto`` and ``meta-yocto-bsp``. |
| 44 | When running BitBake for the first time after upgrading, your |
| 45 | ``conf/bblayers.conf`` file will be updated to handle this change and |
| 46 | you will be asked to re-run or restart for the changes to take effect. |
| 47 | |
| 48 | .. _1.3-recipes: |
| 49 | |
| 50 | Recipes |
| 51 | ------- |
| 52 | |
| 53 | Differences include changes for the following: |
| 54 | |
| 55 | .. _migration-1.3-python-function-whitespace: |
| 56 | |
| 57 | Python Function Whitespace |
| 58 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 59 | |
| 60 | All Python functions must now use four spaces for indentation. |
| 61 | Previously, an inconsistent mix of spaces and tabs existed, which made |
| 62 | extending these functions using ``_append`` or ``_prepend`` complicated |
| 63 | given that Python treats whitespace as syntactically significant. If you |
| 64 | are defining or extending any Python functions (e.g. |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 65 | ``populate_packages``, :ref:`ref-tasks-unpack`, :ref:`ref-tasks-patch` and so forth) in |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 66 | custom recipes or classes, you need to ensure you are using consistent |
| 67 | four-space indentation. |
| 68 | |
| 69 | .. _migration-1.3-proto=-in-src-uri: |
| 70 | |
| 71 | proto= in SRC_URI |
| 72 | ~~~~~~~~~~~~~~~~~ |
| 73 | |
| 74 | Any use of ``proto=`` in :term:`SRC_URI` needs to be |
| 75 | changed to ``protocol=``. In particular, this applies to the following |
| 76 | URIs: |
| 77 | |
| 78 | - ``svn://`` |
| 79 | |
| 80 | - ``bzr://`` |
| 81 | |
| 82 | - ``hg://`` |
| 83 | |
| 84 | - ``osc://`` |
| 85 | |
| 86 | Other URIs were already using ``protocol=``. This change improves |
| 87 | consistency. |
| 88 | |
| 89 | .. _migration-1.3-nativesdk: |
| 90 | |
| 91 | nativesdk |
| 92 | ~~~~~~~~~ |
| 93 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 94 | The suffix ``nativesdk`` is now implemented as a prefix, which simplifies a lot |
| 95 | of the packaging code for :ref:`ref-classes-nativesdk` recipes. All custom |
| 96 | :ref:`ref-classes-nativesdk` recipes, which are relocatable packages that are |
| 97 | native to :term:`SDK_ARCH`, and any references need to be updated to use |
| 98 | ``nativesdk-*`` instead of ``*-nativesdk``. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 99 | |
| 100 | .. _migration-1.3-task-recipes: |
| 101 | |
| 102 | Task Recipes |
| 103 | ~~~~~~~~~~~~ |
| 104 | |
| 105 | "Task" recipes are now known as "Package groups" and have been renamed |
| 106 | from ``task-*.bb`` to ``packagegroup-*.bb``. Existing references to the |
| 107 | previous ``task-*`` names should work in most cases as there is an |
| 108 | automatic upgrade path for most packages. However, you should update |
| 109 | references in your own recipes and configurations as they could be |
| 110 | removed in future releases. You should also rename any custom ``task-*`` |
| 111 | recipes to ``packagegroup-*``, and change them to inherit |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 112 | :ref:`ref-classes-packagegroup` instead of ``task``, as well |
| 113 | as taking the opportunity to remove anything now handled by |
| 114 | :ref:`ref-classes-packagegroup`, such as providing ``-dev`` and ``-dbg`` |
| 115 | packages, setting :term:`LIC_FILES_CHKSUM`, and so forth. See the |
| 116 | :ref:`ref-classes-packagegroup` section for further details. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 117 | |
| 118 | .. _migration-1.3-image-features: |
| 119 | |
| 120 | IMAGE_FEATURES |
| 121 | ~~~~~~~~~~~~~~ |
| 122 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 123 | Image recipes that previously included ``apps-console-core`` in |
| 124 | :term:`IMAGE_FEATURES` should now include ``splash`` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 125 | instead to enable the boot-up splash screen. Retaining |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 126 | ``apps-console-core`` will still include the splash screen but generates a |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 127 | warning. The ``apps-x11-core`` and ``apps-x11-games`` :term:`IMAGE_FEATURES` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 128 | features have been removed. |
| 129 | |
| 130 | .. _migration-1.3-removed-recipes: |
| 131 | |
| 132 | Removed Recipes |
| 133 | ~~~~~~~~~~~~~~~ |
| 134 | |
| 135 | The following recipes have been removed. For most of them, it is |
| 136 | unlikely that you would have any references to them in your own |
| 137 | :term:`Metadata`. However, you should check your metadata |
| 138 | against this list to be sure: |
| 139 | |
| 140 | - ``libx11-trim``: Replaced by ``libx11``, which has a negligible |
| 141 | size difference with modern Xorg. |
| 142 | |
| 143 | - ``xserver-xorg-lite``: Use ``xserver-xorg``, which has a negligible |
| 144 | size difference when DRI and GLX modules are not installed. |
| 145 | |
| 146 | - ``xserver-kdrive``: Effectively unmaintained for many years. |
| 147 | |
| 148 | - ``mesa-xlib``: No longer serves any purpose. |
| 149 | |
| 150 | - ``galago``: Replaced by telepathy. |
| 151 | |
| 152 | - ``gail``: Functionality was integrated into GTK+ 2.13. |
| 153 | |
| 154 | - ``eggdbus``: No longer needed. |
| 155 | |
| 156 | - ``gcc-*-intermediate``: The build has been restructured to avoid |
| 157 | the need for this step. |
| 158 | |
| 159 | - ``libgsmd``: Unmaintained for many years. Functionality now |
| 160 | provided by ``ofono`` instead. |
| 161 | |
| 162 | - *contacts, dates, tasks, eds-tools*: Largely unmaintained PIM |
| 163 | application suite. It has been moved to ``meta-gnome`` in |
| 164 | ``meta-openembedded``. |
| 165 | |
| 166 | In addition to the previously listed changes, the ``meta-demoapps`` |
| 167 | directory has also been removed because the recipes in it were not being |
| 168 | maintained and many had become obsolete or broken. Additionally, these |
| 169 | recipes were not parsed in the default configuration. Many of these |
| 170 | recipes are already provided in an updated and maintained form within |
| 171 | the OpenEmbedded community layers such as ``meta-oe`` and |
| 172 | ``meta-gnome``. For the remainder, you can now find them in the |
| 173 | ``meta-extras`` repository, which is in the |
| 174 | :yocto_git:`Source Repositories <>` at |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 175 | :yocto_git:`/meta-extras/`. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 176 | |
| 177 | .. _1.3-linux-kernel-naming: |
| 178 | |
| 179 | Linux Kernel Naming |
| 180 | ------------------- |
| 181 | |
| 182 | The naming scheme for kernel output binaries has been changed to now |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 183 | include :term:`PE` as part of the filename:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 184 | |
| 185 | KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PE}-${PV}-${PR}-${MACHINE}-${DATETIME}" |
| 186 | |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 187 | Because the :term:`PE` variable is not set by default, these binary files |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 188 | could result with names that include two dash characters. Here is an |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 189 | example:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 190 | |
| 191 | bzImage--3.10.9+git0+cd502a8814_7144bcc4b8-r0-qemux86-64-20130830085431.bin |
| 192 | |
| 193 | |