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 | |
| 3 | ***** |
| 4 | Tasks |
| 5 | ***** |
| 6 | |
| 7 | Tasks are units of execution for BitBake. Recipes (``.bb`` files) use |
| 8 | tasks to complete configuring, compiling, and packaging software. This |
| 9 | chapter provides a reference of the tasks defined in the OpenEmbedded |
| 10 | build system. |
| 11 | |
| 12 | Normal Recipe Build Tasks |
| 13 | ========================= |
| 14 | |
| 15 | The following sections describe normal tasks associated with building a |
| 16 | recipe. For more information on tasks and dependencies, see the |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 17 | ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and |
| 18 | ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 19 | BitBake User Manual. |
| 20 | |
| 21 | .. _ref-tasks-build: |
| 22 | |
| 23 | ``do_build`` |
| 24 | ------------ |
| 25 | |
| 26 | The default task for all recipes. This task depends on all other normal |
| 27 | tasks required to build a recipe. |
| 28 | |
| 29 | .. _ref-tasks-compile: |
| 30 | |
| 31 | ``do_compile`` |
| 32 | -------------- |
| 33 | |
| 34 | Compiles the source code. This task runs with the current working |
| 35 | directory set to ``${``\ :term:`B`\ ``}``. |
| 36 | |
| 37 | The default behavior of this task is to run the ``oe_runmake`` function |
| 38 | if a makefile (``Makefile``, ``makefile``, or ``GNUmakefile``) is found. |
| 39 | If no such file is found, the ``do_compile`` task does nothing. |
| 40 | |
| 41 | .. _ref-tasks-compile_ptest_base: |
| 42 | |
| 43 | ``do_compile_ptest_base`` |
| 44 | ------------------------- |
| 45 | |
| 46 | Compiles the runtime test suite included in the software being built. |
| 47 | |
| 48 | .. _ref-tasks-configure: |
| 49 | |
| 50 | ``do_configure`` |
| 51 | ---------------- |
| 52 | |
| 53 | Configures the source by enabling and disabling any build-time and |
| 54 | configuration options for the software being built. The task runs with |
| 55 | the current working directory set to ``${``\ :term:`B`\ ``}``. |
| 56 | |
| 57 | The default behavior of this task is to run ``oe_runmake clean`` if a |
| 58 | makefile (``Makefile``, ``makefile``, or ``GNUmakefile``) is found and |
| 59 | :term:`CLEANBROKEN` is not set to "1". If no such |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 60 | file is found or the :term:`CLEANBROKEN` variable is set to "1", the |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 61 | ``do_configure`` task does nothing. |
| 62 | |
| 63 | .. _ref-tasks-configure_ptest_base: |
| 64 | |
| 65 | ``do_configure_ptest_base`` |
| 66 | --------------------------- |
| 67 | |
| 68 | Configures the runtime test suite included in the software being built. |
| 69 | |
| 70 | .. _ref-tasks-deploy: |
| 71 | |
| 72 | ``do_deploy`` |
| 73 | ------------- |
| 74 | |
| 75 | Writes output files that are to be deployed to |
| 76 | ``${``\ :term:`DEPLOY_DIR_IMAGE`\ ``}``. The |
| 77 | task runs with the current working directory set to |
| 78 | ``${``\ :term:`B`\ ``}``. |
| 79 | |
| 80 | Recipes implementing this task should inherit the |
| 81 | :ref:`deploy <ref-classes-deploy>` class and should write the output |
| 82 | to ``${``\ :term:`DEPLOYDIR`\ ``}``, which is not to be |
| 83 | confused with ``${DEPLOY_DIR}``. The ``deploy`` class sets up |
| 84 | ``do_deploy`` as a shared state (sstate) task that can be accelerated |
| 85 | through sstate use. The sstate mechanism takes care of copying the |
| 86 | output from ``${DEPLOYDIR}`` to ``${DEPLOY_DIR_IMAGE}``. |
| 87 | |
| 88 | .. note:: |
| 89 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 90 | Do not write the output directly to ``${DEPLOY_DIR_IMAGE}``, as this causes |
| 91 | the sstate mechanism to malfunction. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 92 | |
| 93 | The ``do_deploy`` task is not added as a task by default and |
| 94 | consequently needs to be added manually. If you want the task to run |
| 95 | after :ref:`ref-tasks-compile`, you can add it by doing |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 96 | the following:: |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 97 | |
| 98 | addtask deploy after do_compile |
| 99 | |
| 100 | Adding ``do_deploy`` after other tasks works the same way. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 101 | |
| 102 | .. note:: |
| 103 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 104 | You do not need to add ``before do_build`` to the ``addtask`` command |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 105 | (though it is harmless), because the ``base`` class contains the following:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 106 | |
| 107 | do_build[recrdeptask] += "do_deploy" |
| 108 | |
| 109 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 110 | See the ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`" |
| 111 | section in the BitBake User Manual for more information. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 112 | |
| 113 | If the ``do_deploy`` task re-executes, any previous output is removed |
| 114 | (i.e. "cleaned"). |
| 115 | |
| 116 | .. _ref-tasks-fetch: |
| 117 | |
| 118 | ``do_fetch`` |
| 119 | ------------ |
| 120 | |
| 121 | Fetches the source code. This task uses the |
| 122 | :term:`SRC_URI` variable and the argument's prefix to |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 123 | determine the correct :ref:`fetcher <bitbake:bitbake-user-manual/bitbake-user-manual-fetching:fetchers>` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 124 | module. |
| 125 | |
| 126 | .. _ref-tasks-image: |
| 127 | |
| 128 | ``do_image`` |
| 129 | ------------ |
| 130 | |
| 131 | Starts the image generation process. The ``do_image`` task runs after |
| 132 | the OpenEmbedded build system has run the |
| 133 | :ref:`ref-tasks-rootfs` task during which packages are |
| 134 | identified for installation into the image and the root filesystem is |
| 135 | created, complete with post-processing. |
| 136 | |
| 137 | The ``do_image`` task performs pre-processing on the image through the |
| 138 | :term:`IMAGE_PREPROCESS_COMMAND` and |
| 139 | dynamically generates supporting ``do_image_*`` tasks as needed. |
| 140 | |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 141 | For more information on image creation, see the ":ref:`overview-manual/concepts:image generation`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 142 | section in the Yocto Project Overview and Concepts Manual. |
| 143 | |
| 144 | .. _ref-tasks-image-complete: |
| 145 | |
| 146 | ``do_image_complete`` |
| 147 | --------------------- |
| 148 | |
| 149 | Completes the image generation process. The ``do_image_complete`` task |
| 150 | runs after the OpenEmbedded build system has run the |
| 151 | :ref:`ref-tasks-image` task during which image |
| 152 | pre-processing occurs and through dynamically generated ``do_image_*`` |
| 153 | tasks the image is constructed. |
| 154 | |
| 155 | The ``do_image_complete`` task performs post-processing on the image |
| 156 | through the |
| 157 | :term:`IMAGE_POSTPROCESS_COMMAND`. |
| 158 | |
| 159 | For more information on image creation, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 160 | ":ref:`overview-manual/concepts:image generation`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 161 | section in the Yocto Project Overview and Concepts Manual. |
| 162 | |
| 163 | .. _ref-tasks-install: |
| 164 | |
| 165 | ``do_install`` |
| 166 | -------------- |
| 167 | |
| 168 | Copies files that are to be packaged into the holding area |
| 169 | ``${``\ :term:`D`\ ``}``. This task runs with the current |
| 170 | working directory set to ``${``\ :term:`B`\ ``}``, which is the |
| 171 | compilation directory. The ``do_install`` task, as well as other tasks |
| 172 | that either directly or indirectly depend on the installed files (e.g. |
| 173 | :ref:`ref-tasks-package`, ``do_package_write_*``, and |
| 174 | :ref:`ref-tasks-rootfs`), run under |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 175 | :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 176 | |
| 177 | .. note:: |
| 178 | |
| 179 | When installing files, be careful not to set the owner and group IDs |
| 180 | of the installed files to unintended values. Some methods of copying |
| 181 | files, notably when using the recursive ``cp`` command, can preserve |
| 182 | the UID and/or GID of the original file, which is usually not what |
| 183 | you want. The ``host-user-contaminated`` QA check checks for files |
| 184 | that probably have the wrong ownership. |
| 185 | |
| 186 | Safe methods for installing files include the following: |
| 187 | |
| 188 | - The ``install`` utility. This utility is the preferred method. |
| 189 | |
| 190 | - The ``cp`` command with the "--no-preserve=ownership" option. |
| 191 | |
| 192 | - The ``tar`` command with the "--no-same-owner" option. See the |
| 193 | ``bin_package.bbclass`` file in the ``meta/classes`` directory of |
| 194 | the :term:`Source Directory` for an example. |
| 195 | |
| 196 | .. _ref-tasks-install_ptest_base: |
| 197 | |
| 198 | ``do_install_ptest_base`` |
| 199 | ------------------------- |
| 200 | |
| 201 | Copies the runtime test suite files from the compilation directory to a |
| 202 | holding area. |
| 203 | |
| 204 | .. _ref-tasks-package: |
| 205 | |
| 206 | ``do_package`` |
| 207 | -------------- |
| 208 | |
| 209 | Analyzes the content of the holding area |
| 210 | ``${``\ :term:`D`\ ``}`` and splits the content into subsets |
| 211 | based on available packages and files. This task makes use of the |
| 212 | :term:`PACKAGES` and :term:`FILES` |
| 213 | variables. |
| 214 | |
| 215 | The ``do_package`` task, in conjunction with the |
| 216 | :ref:`ref-tasks-packagedata` task, also saves some |
| 217 | important package metadata. For additional information, see the |
| 218 | :term:`PKGDESTWORK` variable and the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 219 | ":ref:`overview-manual/concepts:automatically added runtime dependencies`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 220 | section in the Yocto Project Overview and Concepts Manual. |
| 221 | |
| 222 | .. _ref-tasks-package_qa: |
| 223 | |
| 224 | ``do_package_qa`` |
| 225 | ----------------- |
| 226 | |
| 227 | Runs QA checks on packaged files. For more information on these checks, |
| 228 | see the :ref:`insane <ref-classes-insane>` class. |
| 229 | |
| 230 | .. _ref-tasks-package_write_deb: |
| 231 | |
| 232 | ``do_package_write_deb`` |
| 233 | ------------------------ |
| 234 | |
| 235 | Creates Debian packages (i.e. ``*.deb`` files) and places them in the |
| 236 | ``${``\ :term:`DEPLOY_DIR_DEB`\ ``}`` directory in |
| 237 | the package feeds area. For more information, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 238 | ":ref:`overview-manual/concepts:package feeds`" section in |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 239 | the Yocto Project Overview and Concepts Manual. |
| 240 | |
| 241 | .. _ref-tasks-package_write_ipk: |
| 242 | |
| 243 | ``do_package_write_ipk`` |
| 244 | ------------------------ |
| 245 | |
| 246 | Creates IPK packages (i.e. ``*.ipk`` files) and places them in the |
| 247 | ``${``\ :term:`DEPLOY_DIR_IPK`\ ``}`` directory in |
| 248 | the package feeds area. For more information, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 249 | ":ref:`overview-manual/concepts:package feeds`" section in |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 250 | the Yocto Project Overview and Concepts Manual. |
| 251 | |
| 252 | .. _ref-tasks-package_write_rpm: |
| 253 | |
| 254 | ``do_package_write_rpm`` |
| 255 | ------------------------ |
| 256 | |
| 257 | Creates RPM packages (i.e. ``*.rpm`` files) and places them in the |
| 258 | ``${``\ :term:`DEPLOY_DIR_RPM`\ ``}`` directory in |
| 259 | the package feeds area. For more information, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 260 | ":ref:`overview-manual/concepts:package feeds`" section in |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 261 | the Yocto Project Overview and Concepts Manual. |
| 262 | |
| 263 | .. _ref-tasks-package_write_tar: |
| 264 | |
| 265 | ``do_package_write_tar`` |
| 266 | ------------------------ |
| 267 | |
| 268 | Creates tarballs and places them in the |
| 269 | ``${``\ :term:`DEPLOY_DIR_TAR`\ ``}`` directory in |
| 270 | the package feeds area. For more information, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 271 | ":ref:`overview-manual/concepts:package feeds`" section in |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 272 | the Yocto Project Overview and Concepts Manual. |
| 273 | |
| 274 | .. _ref-tasks-packagedata: |
| 275 | |
| 276 | ``do_packagedata`` |
| 277 | ------------------ |
| 278 | |
| 279 | Saves package metadata generated by the |
| 280 | :ref:`ref-tasks-package` task in |
| 281 | :term:`PKGDATA_DIR` to make it available globally. |
| 282 | |
| 283 | .. _ref-tasks-patch: |
| 284 | |
| 285 | ``do_patch`` |
| 286 | ------------ |
| 287 | |
| 288 | Locates patch files and applies them to the source code. |
| 289 | |
| 290 | After fetching and unpacking source files, the build system uses the |
| 291 | recipe's :term:`SRC_URI` statements |
| 292 | to locate and apply patch files to the source code. |
| 293 | |
| 294 | .. note:: |
| 295 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 296 | The build system uses the :term:`FILESPATH` variable to determine the |
| 297 | default set of directories when searching for patches. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 298 | |
| 299 | Patch files, by default, are ``*.patch`` and ``*.diff`` files created |
| 300 | and kept in a subdirectory of the directory holding the recipe file. For |
| 301 | example, consider the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 302 | :yocto_git:`bluez5 </poky/tree/meta/recipes-connectivity/bluez5>` |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 303 | recipe from the OE-Core layer (i.e. ``poky/meta``):: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 304 | |
| 305 | poky/meta/recipes-connectivity/bluez5 |
| 306 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 307 | This recipe has two patch files located here:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 308 | |
| 309 | poky/meta/recipes-connectivity/bluez5/bluez5 |
| 310 | |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 311 | In the ``bluez5`` recipe, the :term:`SRC_URI` statements point to the source |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 312 | and patch files needed to build the package. |
| 313 | |
| 314 | .. note:: |
| 315 | |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 316 | In the case for the ``bluez5_5.48.bb`` recipe, the :term:`SRC_URI` statements |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 317 | are from an include file ``bluez5.inc``. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 318 | |
| 319 | As mentioned earlier, the build system treats files whose file types are |
| 320 | ``.patch`` and ``.diff`` as patch files. However, you can use the |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 321 | "apply=yes" parameter with the :term:`SRC_URI` statement to indicate any |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 322 | file as a patch file:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 323 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 324 | SRC_URI = " \ |
| 325 | git://path_to_repo/some_package \ |
| 326 | file://file;apply=yes \ |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 327 | " |
| 328 | |
| 329 | Conversely, if you have a directory full of patch files and you want to |
| 330 | exclude some so that the ``do_patch`` task does not apply them during |
| 331 | the patch phase, you can use the "apply=no" parameter with the |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 332 | :term:`SRC_URI` statement:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 333 | |
| 334 | SRC_URI = " \ |
| 335 | git://path_to_repo/some_package \ |
| 336 | file://path_to_lots_of_patch_files \ |
| 337 | file://path_to_lots_of_patch_files/patch_file5;apply=no \ |
| 338 | " |
| 339 | |
| 340 | In the |
| 341 | previous example, assuming all the files in the directory holding the |
| 342 | patch files end with either ``.patch`` or ``.diff``, every file would be |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 343 | applied as a patch by default except for the ``patch_file5`` patch. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 344 | |
| 345 | You can find out more about the patching process in the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 346 | ":ref:`overview-manual/concepts:patching`" section in |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 347 | the Yocto Project Overview and Concepts Manual and the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 348 | ":ref:`dev-manual/common-tasks:patching code`" section in the |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 349 | Yocto Project Development Tasks Manual. |
| 350 | |
| 351 | .. _ref-tasks-populate_lic: |
| 352 | |
| 353 | ``do_populate_lic`` |
| 354 | ------------------- |
| 355 | |
| 356 | Writes license information for the recipe that is collected later when |
| 357 | the image is constructed. |
| 358 | |
| 359 | .. _ref-tasks-populate_sdk: |
| 360 | |
| 361 | ``do_populate_sdk`` |
| 362 | ------------------- |
| 363 | |
| 364 | Creates the file and directory structure for an installable SDK. See the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 365 | ":ref:`overview-manual/concepts:sdk generation`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 366 | section in the Yocto Project Overview and Concepts Manual for more |
| 367 | information. |
| 368 | |
| 369 | .. _ref-tasks-populate_sdk_ext: |
| 370 | |
| 371 | ``do_populate_sdk_ext`` |
| 372 | ----------------------- |
| 373 | |
| 374 | Creates the file and directory structure for an installable extensible |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 375 | SDK (eSDK). See the ":ref:`overview-manual/concepts:sdk generation`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 376 | section in the Yocto Project Overview and Concepts Manual for more |
| 377 | information. |
| 378 | |
| 379 | |
| 380 | .. _ref-tasks-populate_sysroot: |
| 381 | |
| 382 | ``do_populate_sysroot`` |
| 383 | ----------------------- |
| 384 | |
| 385 | Stages (copies) a subset of the files installed by the |
| 386 | :ref:`ref-tasks-install` task into the appropriate |
| 387 | sysroot. For information on how to access these files from other |
| 388 | recipes, see the :term:`STAGING_DIR* <STAGING_DIR_HOST>` variables. |
| 389 | Directories that would typically not be needed by other recipes at build |
| 390 | time (e.g. ``/etc``) are not copied by default. |
| 391 | |
| 392 | For information on what directories are copied by default, see the |
| 393 | :term:`SYSROOT_DIRS* <SYSROOT_DIRS>` variables. You can change |
| 394 | these variables inside your recipe if you need to make additional (or |
| 395 | fewer) directories available to other recipes at build time. |
| 396 | |
| 397 | The ``do_populate_sysroot`` task is a shared state (sstate) task, which |
| 398 | means that the task can be accelerated through sstate use. Realize also |
| 399 | that if the task is re-executed, any previous output is removed (i.e. |
| 400 | "cleaned"). |
| 401 | |
| 402 | .. _ref-tasks-prepare_recipe_sysroot: |
| 403 | |
| 404 | ``do_prepare_recipe_sysroot`` |
| 405 | ----------------------------- |
| 406 | |
| 407 | Installs the files into the individual recipe specific sysroots (i.e. |
| 408 | ``recipe-sysroot`` and ``recipe-sysroot-native`` under |
| 409 | ``${``\ :term:`WORKDIR`\ ``}`` based upon the |
| 410 | dependencies specified by :term:`DEPENDS`). See the |
| 411 | ":ref:`staging <ref-classes-staging>`" class for more information. |
| 412 | |
| 413 | .. _ref-tasks-rm_work: |
| 414 | |
| 415 | ``do_rm_work`` |
| 416 | -------------- |
| 417 | |
| 418 | Removes work files after the OpenEmbedded build system has finished with |
| 419 | them. You can learn more by looking at the |
| 420 | ":ref:`rm_work.bbclass <ref-classes-rm-work>`" section. |
| 421 | |
| 422 | .. _ref-tasks-unpack: |
| 423 | |
| 424 | ``do_unpack`` |
| 425 | ------------- |
| 426 | |
| 427 | Unpacks the source code into a working directory pointed to by |
| 428 | ``${``\ :term:`WORKDIR`\ ``}``. The :term:`S` |
| 429 | variable also plays a role in where unpacked source files ultimately |
| 430 | reside. For more information on how source files are unpacked, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 431 | ":ref:`overview-manual/concepts:source fetching`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 432 | section in the Yocto Project Overview and Concepts Manual and also see |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 433 | the :term:`WORKDIR` and :term:`S` variable descriptions. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 434 | |
| 435 | Manually Called Tasks |
| 436 | ===================== |
| 437 | |
| 438 | These tasks are typically manually triggered (e.g. by using the |
| 439 | ``bitbake -c`` command-line option): |
| 440 | |
| 441 | .. _ref-tasks-checkpkg: |
| 442 | |
| 443 | ``do_checkpkg`` |
| 444 | --------------- |
| 445 | |
| 446 | Provides information about the recipe including its upstream version and |
| 447 | status. The upstream version and status reveals whether or not a version |
| 448 | of the recipe exists upstream and a status of not updated, updated, or |
| 449 | unknown. |
| 450 | |
| 451 | To check the upstream version and status of a recipe, use the following |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 452 | devtool commands:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 453 | |
| 454 | $ devtool latest-version |
| 455 | $ devtool check-upgrade-status |
| 456 | |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 457 | See the ":ref:`ref-manual/devtool-reference:\`\`devtool\`\` quick reference`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 458 | chapter for more information on |
| 459 | ``devtool``. See the ":ref:`devtool-checking-on-the-upgrade-status-of-a-recipe`" |
| 460 | section for information on checking the upgrade status of a recipe. |
| 461 | |
| 462 | To build the ``checkpkg`` task, use the ``bitbake`` command with the |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 463 | "-c" option and task name:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 464 | |
| 465 | $ bitbake core-image-minimal -c checkpkg |
| 466 | |
| 467 | By default, the results are stored in :term:`$LOG_DIR <LOG_DIR>` (e.g. |
| 468 | ``$BUILD_DIR/tmp/log``). |
| 469 | |
| 470 | .. _ref-tasks-checkuri: |
| 471 | |
| 472 | ``do_checkuri`` |
| 473 | --------------- |
| 474 | |
| 475 | Validates the :term:`SRC_URI` value. |
| 476 | |
| 477 | .. _ref-tasks-clean: |
| 478 | |
| 479 | ``do_clean`` |
| 480 | ------------ |
| 481 | |
| 482 | Removes all output files for a target from the |
| 483 | :ref:`ref-tasks-unpack` task forward (i.e. ``do_unpack``, |
| 484 | :ref:`ref-tasks-configure`, |
| 485 | :ref:`ref-tasks-compile`, |
| 486 | :ref:`ref-tasks-install`, and |
| 487 | :ref:`ref-tasks-package`). |
| 488 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 489 | You can run this task using BitBake as follows:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 490 | |
| 491 | $ bitbake -c clean recipe |
| 492 | |
| 493 | Running this task does not remove the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 494 | :ref:`sstate <overview-manual/concepts:shared state cache>` cache files. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 495 | Consequently, if no changes have been made and the recipe is rebuilt |
| 496 | after cleaning, output files are simply restored from the sstate cache. |
| 497 | If you want to remove the sstate cache files for the recipe, you need to |
| 498 | use the :ref:`ref-tasks-cleansstate` task instead |
| 499 | (i.e. ``bitbake -c cleansstate`` recipe). |
| 500 | |
| 501 | .. _ref-tasks-cleanall: |
| 502 | |
| 503 | ``do_cleanall`` |
| 504 | --------------- |
| 505 | |
| 506 | Removes all output files, shared state |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 507 | (:ref:`sstate <overview-manual/concepts:shared state cache>`) cache, and |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 508 | downloaded source files for a target (i.e. the contents of |
| 509 | :term:`DL_DIR`). Essentially, the ``do_cleanall`` task is |
| 510 | identical to the :ref:`ref-tasks-cleansstate` task |
| 511 | with the added removal of downloaded source files. |
| 512 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 513 | You can run this task using BitBake as follows:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 514 | |
| 515 | $ bitbake -c cleanall recipe |
| 516 | |
| 517 | Typically, you would not normally use the ``cleanall`` task. Do so only |
| 518 | if you want to start fresh with the :ref:`ref-tasks-fetch` |
| 519 | task. |
| 520 | |
| 521 | .. _ref-tasks-cleansstate: |
| 522 | |
| 523 | ``do_cleansstate`` |
| 524 | ------------------ |
| 525 | |
| 526 | Removes all output files and shared state |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 527 | (:ref:`sstate <overview-manual/concepts:shared state cache>`) cache for a |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 528 | target. Essentially, the ``do_cleansstate`` task is identical to the |
| 529 | :ref:`ref-tasks-clean` task with the added removal of |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 530 | shared state (:ref:`sstate <overview-manual/concepts:shared state cache>`) |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 531 | cache. |
| 532 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 533 | You can run this task using BitBake as follows:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 534 | |
| 535 | $ bitbake -c cleansstate recipe |
| 536 | |
| 537 | When you run the ``do_cleansstate`` task, the OpenEmbedded build system |
| 538 | no longer uses any sstate. Consequently, building the recipe from |
| 539 | scratch is guaranteed. |
| 540 | |
| 541 | .. note:: |
| 542 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 543 | The ``do_cleansstate`` task cannot remove sstate from a remote sstate |
| 544 | mirror. If you need to build a target from scratch using remote mirrors, use |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 545 | the "-f" option as follows:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 546 | |
| 547 | $ bitbake -f -c do_cleansstate target |
| 548 | |
| 549 | |
| 550 | .. _ref-tasks-devpyshell: |
| 551 | |
| 552 | ``do_devpyshell`` |
| 553 | ----------------- |
| 554 | |
| 555 | Starts a shell in which an interactive Python interpreter allows you to |
| 556 | interact with the BitBake build environment. From within this shell, you |
| 557 | can directly examine and set bits from the data store and execute |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 558 | functions as if within the BitBake environment. See the ":ref:`dev-manual/common-tasks:using a development python shell`" section in |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 559 | the Yocto Project Development Tasks Manual for more information about |
| 560 | using ``devpyshell``. |
| 561 | |
| 562 | .. _ref-tasks-devshell: |
| 563 | |
| 564 | ``do_devshell`` |
| 565 | --------------- |
| 566 | |
| 567 | Starts a shell whose environment is set up for development, debugging, |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 568 | or both. See the ":ref:`dev-manual/common-tasks:using a development shell`" section in the |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 569 | Yocto Project Development Tasks Manual for more information about using |
| 570 | ``devshell``. |
| 571 | |
| 572 | .. _ref-tasks-listtasks: |
| 573 | |
| 574 | ``do_listtasks`` |
| 575 | ---------------- |
| 576 | |
| 577 | Lists all defined tasks for a target. |
| 578 | |
| 579 | .. _ref-tasks-package_index: |
| 580 | |
| 581 | ``do_package_index`` |
| 582 | -------------------- |
| 583 | |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 584 | Creates or updates the index in the :ref:`overview-manual/concepts:package feeds` area. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 585 | |
| 586 | .. note:: |
| 587 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 588 | This task is not triggered with the ``bitbake -c`` command-line option as |
| 589 | are the other tasks in this section. Because this task is specifically for |
| 590 | the ``package-index`` recipe, you run it using ``bitbake package-index``. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 591 | |
| 592 | Image-Related Tasks |
| 593 | =================== |
| 594 | |
| 595 | The following tasks are applicable to image recipes. |
| 596 | |
| 597 | .. _ref-tasks-bootimg: |
| 598 | |
| 599 | ``do_bootimg`` |
| 600 | -------------- |
| 601 | |
| 602 | Creates a bootable live image. See the |
| 603 | :term:`IMAGE_FSTYPES` variable for additional |
| 604 | information on live image types. |
| 605 | |
| 606 | .. _ref-tasks-bundle_initramfs: |
| 607 | |
| 608 | ``do_bundle_initramfs`` |
| 609 | ----------------------- |
| 610 | |
| 611 | Combines an initial RAM disk (initramfs) image and kernel together to |
| 612 | form a single image. The |
| 613 | :term:`CONFIG_INITRAMFS_SOURCE` variable |
| 614 | has some more information about these types of images. |
| 615 | |
| 616 | .. _ref-tasks-rootfs: |
| 617 | |
| 618 | ``do_rootfs`` |
| 619 | ------------- |
| 620 | |
| 621 | Creates the root filesystem (file and directory structure) for an image. |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 622 | See the ":ref:`overview-manual/concepts:image generation`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 623 | section in the Yocto Project Overview and Concepts Manual for more |
| 624 | information on how the root filesystem is created. |
| 625 | |
| 626 | .. _ref-tasks-testimage: |
| 627 | |
| 628 | ``do_testimage`` |
| 629 | ---------------- |
| 630 | |
| 631 | Boots an image and performs runtime tests within the image. For |
| 632 | information on automatically testing images, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 633 | ":ref:`dev-manual/common-tasks:performing automated runtime testing`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 634 | section in the Yocto Project Development Tasks Manual. |
| 635 | |
| 636 | .. _ref-tasks-testimage_auto: |
| 637 | |
| 638 | ``do_testimage_auto`` |
| 639 | --------------------- |
| 640 | |
| 641 | Boots an image and performs runtime tests within the image immediately |
| 642 | after it has been built. This task is enabled when you set |
| 643 | :term:`TESTIMAGE_AUTO` equal to "1". |
| 644 | |
| 645 | For information on automatically testing images, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 646 | ":ref:`dev-manual/common-tasks:performing automated runtime testing`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 647 | section in the Yocto Project Development Tasks Manual. |
| 648 | |
| 649 | Kernel-Related Tasks |
| 650 | ==================== |
| 651 | |
| 652 | The following tasks are applicable to kernel recipes. Some of these |
| 653 | tasks (e.g. the :ref:`ref-tasks-menuconfig` task) are |
| 654 | also applicable to recipes that use Linux kernel style configuration |
| 655 | such as the BusyBox recipe. |
| 656 | |
| 657 | .. _ref-tasks-compile_kernelmodules: |
| 658 | |
| 659 | ``do_compile_kernelmodules`` |
| 660 | ---------------------------- |
| 661 | |
| 662 | Runs the step that builds the kernel modules (if needed). Building a |
| 663 | kernel consists of two steps: 1) the kernel (``vmlinux``) is built, and |
| 664 | 2) the modules are built (i.e. ``make modules``). |
| 665 | |
| 666 | .. _ref-tasks-diffconfig: |
| 667 | |
| 668 | ``do_diffconfig`` |
| 669 | ----------------- |
| 670 | |
| 671 | When invoked by the user, this task creates a file containing the |
| 672 | differences between the original config as produced by |
| 673 | :ref:`ref-tasks-kernel_configme` task and the |
| 674 | changes made by the user with other methods (i.e. using |
| 675 | (:ref:`ref-tasks-kernel_menuconfig`). Once the |
| 676 | file of differences is created, it can be used to create a config |
| 677 | fragment that only contains the differences. You can invoke this task |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 678 | from the command line as follows:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 679 | |
| 680 | $ bitbake linux-yocto -c diffconfig |
| 681 | |
| 682 | For more information, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 683 | ":ref:`kernel-dev/common:creating configuration fragments`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 684 | section in the Yocto Project Linux Kernel Development Manual. |
| 685 | |
| 686 | .. _ref-tasks-kernel_checkout: |
| 687 | |
| 688 | ``do_kernel_checkout`` |
| 689 | ---------------------- |
| 690 | |
| 691 | Converts the newly unpacked kernel source into a form with which the |
| 692 | OpenEmbedded build system can work. Because the kernel source can be |
| 693 | fetched in several different ways, the ``do_kernel_checkout`` task makes |
| 694 | sure that subsequent tasks are given a clean working tree copy of the |
| 695 | kernel with the correct branches checked out. |
| 696 | |
| 697 | .. _ref-tasks-kernel_configcheck: |
| 698 | |
| 699 | ``do_kernel_configcheck`` |
| 700 | ------------------------- |
| 701 | |
| 702 | Validates the configuration produced by the |
| 703 | :ref:`ref-tasks-kernel_menuconfig` task. The |
| 704 | ``do_kernel_configcheck`` task produces warnings when a requested |
| 705 | configuration does not appear in the final ``.config`` file or when you |
| 706 | override a policy configuration in a hardware configuration fragment. |
| 707 | You can run this task explicitly and view the output by using the |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 708 | following command:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 709 | |
| 710 | $ bitbake linux-yocto -c kernel_configcheck -f |
| 711 | |
| 712 | For more information, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 713 | ":ref:`kernel-dev/common:validating configuration`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 714 | section in the Yocto Project Linux Kernel Development Manual. |
| 715 | |
| 716 | .. _ref-tasks-kernel_configme: |
| 717 | |
| 718 | ``do_kernel_configme`` |
| 719 | ---------------------- |
| 720 | |
| 721 | After the kernel is patched by the :ref:`ref-tasks-patch` |
| 722 | task, the ``do_kernel_configme`` task assembles and merges all the |
| 723 | kernel config fragments into a merged configuration that can then be |
| 724 | passed to the kernel configuration phase proper. This is also the time |
| 725 | during which user-specified defconfigs are applied if present, and where |
| 726 | configuration modes such as ``--allnoconfig`` are applied. |
| 727 | |
| 728 | .. _ref-tasks-kernel_menuconfig: |
| 729 | |
| 730 | ``do_kernel_menuconfig`` |
| 731 | ------------------------ |
| 732 | |
| 733 | Invoked by the user to manipulate the ``.config`` file used to build a |
| 734 | linux-yocto recipe. This task starts the Linux kernel configuration |
| 735 | tool, which you then use to modify the kernel configuration. |
| 736 | |
| 737 | .. note:: |
| 738 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 739 | You can also invoke this tool from the command line as follows:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 740 | |
| 741 | $ bitbake linux-yocto -c menuconfig |
| 742 | |
| 743 | |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 744 | See the ":ref:`kernel-dev/common:using \`\`menuconfig\`\``" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 745 | section in the Yocto Project Linux Kernel Development Manual for more |
| 746 | information on this configuration tool. |
| 747 | |
| 748 | .. _ref-tasks-kernel_metadata: |
| 749 | |
| 750 | ``do_kernel_metadata`` |
| 751 | ---------------------- |
| 752 | |
| 753 | Collects all the features required for a given kernel build, whether the |
| 754 | features come from :term:`SRC_URI` or from Git |
| 755 | repositories. After collection, the ``do_kernel_metadata`` task |
| 756 | processes the features into a series of config fragments and patches, |
| 757 | which can then be applied by subsequent tasks such as |
| 758 | :ref:`ref-tasks-patch` and |
| 759 | :ref:`ref-tasks-kernel_configme`. |
| 760 | |
| 761 | .. _ref-tasks-menuconfig: |
| 762 | |
| 763 | ``do_menuconfig`` |
| 764 | ----------------- |
| 765 | |
| 766 | Runs ``make menuconfig`` for the kernel. For information on |
| 767 | ``menuconfig``, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 768 | ":ref:`kernel-dev/common:using \`\`menuconfig\`\``" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 769 | section in the Yocto Project Linux Kernel Development Manual. |
| 770 | |
| 771 | .. _ref-tasks-savedefconfig: |
| 772 | |
| 773 | ``do_savedefconfig`` |
| 774 | -------------------- |
| 775 | |
| 776 | When invoked by the user, creates a defconfig file that can be used |
| 777 | instead of the default defconfig. The saved defconfig contains the |
| 778 | differences between the default defconfig and the changes made by the |
| 779 | user using other methods (i.e. the |
| 780 | :ref:`ref-tasks-kernel_menuconfig` task. You |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 781 | can invoke the task using the following command:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 782 | |
| 783 | $ bitbake linux-yocto -c savedefconfig |
| 784 | |
| 785 | .. _ref-tasks-shared_workdir: |
| 786 | |
| 787 | ``do_shared_workdir`` |
| 788 | --------------------- |
| 789 | |
| 790 | After the kernel has been compiled but before the kernel modules have |
| 791 | been compiled, this task copies files required for module builds and |
| 792 | which are generated from the kernel build into the shared work |
| 793 | directory. With these copies successfully copied, the |
| 794 | :ref:`ref-tasks-compile_kernelmodules` task |
| 795 | can successfully build the kernel modules in the next step of the build. |
| 796 | |
| 797 | .. _ref-tasks-sizecheck: |
| 798 | |
| 799 | ``do_sizecheck`` |
| 800 | ---------------- |
| 801 | |
| 802 | After the kernel has been built, this task checks the size of the |
| 803 | stripped kernel image against |
| 804 | :term:`KERNEL_IMAGE_MAXSIZE`. If that |
| 805 | variable was set and the size of the stripped kernel exceeds that size, |
| 806 | the kernel build produces a warning to that effect. |
| 807 | |
| 808 | .. _ref-tasks-strip: |
| 809 | |
| 810 | ``do_strip`` |
| 811 | ------------ |
| 812 | |
| 813 | If ``KERNEL_IMAGE_STRIP_EXTRA_SECTIONS`` is defined, this task strips |
| 814 | the sections named in that variable from ``vmlinux``. This stripping is |
| 815 | typically used to remove nonessential sections such as ``.comment`` |
| 816 | sections from a size-sensitive configuration. |
| 817 | |
| 818 | .. _ref-tasks-validate_branches: |
| 819 | |
| 820 | ``do_validate_branches`` |
| 821 | ------------------------ |
| 822 | |
| 823 | After the kernel is unpacked but before it is patched, this task makes |
| 824 | sure that the machine and metadata branches as specified by the |
| 825 | :term:`SRCREV` variables actually exist on the specified |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 826 | branches. Otherwise, if :term:`AUTOREV` is not being used, the |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 827 | ``do_validate_branches`` task fails during the build. |