diff options
author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2023-01-05 08:34:26 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-06 17:39:09 +0000 |
commit | 8b1909aa6f7a51a878dc3d4a9223403ad3e164a9 (patch) | |
tree | e1418f545ad6640afb5fde004696eef2a9e6e67b /documentation/ref-manual | |
parent | ae280972ffba62d7ed839b692957f61b0955cbca (diff) | |
download | poky-8b1909aa6f7a51a878dc3d4a9223403ad3e164a9.tar.gz |
manuals: simplify references to classes
Now that .bbclass is removed from class section titles.
We can now have, for example, :ref:`ref-classes-insane`
instead of :ref:`insane <ref-classes-insane>`.
Then, when necessary, rework paragraphs so that they
have lines of even length, not exceeding 80 characters.
(From yocto-docs rev: e76190e3be78c1e483bec0469f1e437dbf8f3791)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Suggested-by: Quentin Schulz <foss+yocto@0leil.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual')
-rw-r--r-- | documentation/ref-manual/classes.rst | 611 | ||||
-rw-r--r-- | documentation/ref-manual/features.rst | 2 | ||||
-rw-r--r-- | documentation/ref-manual/qa-checks.rst | 12 | ||||
-rw-r--r-- | documentation/ref-manual/structure.rst | 4 | ||||
-rw-r--r-- | documentation/ref-manual/tasks.rst | 10 | ||||
-rw-r--r-- | documentation/ref-manual/variables.rst | 690 |
6 files changed, 632 insertions, 697 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index fed3dcc066..7dba617db5 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst | |||
@@ -37,7 +37,7 @@ information. | |||
37 | ``allarch`` | 37 | ``allarch`` |
38 | =========== | 38 | =========== |
39 | 39 | ||
40 | The :ref:`allarch <ref-classes-allarch>` class is inherited by recipes that do not produce | 40 | The :ref:`ref-classes-allarch` class is inherited by recipes that do not produce |
41 | architecture-specific output. The class disables functionality that is | 41 | architecture-specific output. The class disables functionality that is |
42 | normally needed for recipes that produce executable binaries (such as | 42 | normally needed for recipes that produce executable binaries (such as |
43 | building the cross-compiler and a C library as pre-requisites, and | 43 | building the cross-compiler and a C library as pre-requisites, and |
@@ -49,7 +49,7 @@ splitting out of debug symbols during packaging). | |||
49 | produce packages that depend on tunings through use of the | 49 | produce packages that depend on tunings through use of the |
50 | :term:`RDEPENDS` and | 50 | :term:`RDEPENDS` and |
51 | :term:`TUNE_PKGARCH` variables, should never be | 51 | :term:`TUNE_PKGARCH` variables, should never be |
52 | configured for all architectures using :ref:`allarch <ref-classes-allarch>`. This is the case | 52 | configured for all architectures using :ref:`ref-classes-allarch`. This is the case |
53 | even if the recipes do not produce architecture-specific output. | 53 | even if the recipes do not produce architecture-specific output. |
54 | 54 | ||
55 | Configuring such recipes for all architectures causes the | 55 | Configuring such recipes for all architectures causes the |
@@ -58,22 +58,22 @@ splitting out of debug symbols during packaging). | |||
58 | Additionally, unnecessary rebuilds occur every time an image for a | 58 | Additionally, unnecessary rebuilds occur every time an image for a |
59 | different :term:`MACHINE` is built even when the recipe never changes. | 59 | different :term:`MACHINE` is built even when the recipe never changes. |
60 | 60 | ||
61 | By default, all recipes inherit the :ref:`base <ref-classes-base>` and | 61 | By default, all recipes inherit the :ref:`ref-classes-base` and |
62 | :ref:`package <ref-classes-package>` classes, which enable | 62 | :ref:`ref-classes-package` classes, which enable |
63 | functionality needed for recipes that produce executable output. If your | 63 | functionality needed for recipes that produce executable output. If your |
64 | recipe, for example, only produces packages that contain configuration | 64 | recipe, for example, only produces packages that contain configuration |
65 | files, media files, or scripts (e.g. Python and Perl), then it should | 65 | files, media files, or scripts (e.g. Python and Perl), then it should |
66 | inherit the :ref:`allarch <ref-classes-allarch>` class. | 66 | inherit the :ref:`ref-classes-allarch` class. |
67 | 67 | ||
68 | .. _ref-classes-archiver: | 68 | .. _ref-classes-archiver: |
69 | 69 | ||
70 | ``archiver`` | 70 | ``archiver`` |
71 | ============ | 71 | ============ |
72 | 72 | ||
73 | The :ref:`archiver <ref-classes-archiver>` class supports releasing source code and other | 73 | The :ref:`ref-classes-archiver` class supports releasing source code and other |
74 | materials with the binaries. | 74 | materials with the binaries. |
75 | 75 | ||
76 | For more details on the source :ref:`archiver <ref-classes-archiver>`, see the | 76 | For more details on the source :ref:`ref-classes-archiver`, see the |
77 | ":ref:`dev-manual/licenses:maintaining open source license compliance during your product's lifecycle`" | 77 | ":ref:`dev-manual/licenses:maintaining open source license compliance during your product's lifecycle`" |
78 | section in the Yocto Project Development Tasks Manual. You can also see | 78 | section in the Yocto Project Development Tasks Manual. You can also see |
79 | the :term:`ARCHIVER_MODE` variable for information | 79 | the :term:`ARCHIVER_MODE` variable for information |
@@ -102,7 +102,7 @@ By default, the :ref:`autotools* <ref-classes-autotools>` classes use out-of-tre | |||
102 | If the software being built by a recipe does not support using | 102 | If the software being built by a recipe does not support using |
103 | out-of-tree builds, you should have the recipe inherit the | 103 | out-of-tree builds, you should have the recipe inherit the |
104 | :ref:`autotools-brokensep <ref-classes-autotools>` class. The :ref:`autotools-brokensep <ref-classes-autotools>` class behaves | 104 | :ref:`autotools-brokensep <ref-classes-autotools>` class. The :ref:`autotools-brokensep <ref-classes-autotools>` class behaves |
105 | the same as the :ref:`autotools <ref-classes-autotools>` class but builds with :term:`B` | 105 | the same as the :ref:`ref-classes-autotools` class but builds with :term:`B` |
106 | == :term:`S`. This method is useful when out-of-tree build | 106 | == :term:`S`. This method is useful when out-of-tree build |
107 | support is either not present or is broken. | 107 | support is either not present or is broken. |
108 | 108 | ||
@@ -133,14 +133,13 @@ It's useful to have some idea of how the tasks defined by the | |||
133 | ``base`` | 133 | ``base`` |
134 | ======== | 134 | ======== |
135 | 135 | ||
136 | The :ref:`base <ref-classes-base>` class is special in that every ``.bb`` file implicitly | 136 | The :ref:`ref-classes-base` class is special in that every ``.bb`` file implicitly |
137 | inherits the class. This class contains definitions for standard basic | 137 | inherits the class. This class contains definitions for standard basic |
138 | tasks such as fetching, unpacking, configuring (empty by default), | 138 | tasks such as fetching, unpacking, configuring (empty by default), |
139 | compiling (runs any ``Makefile`` present), installing (empty by default) | 139 | compiling (runs any ``Makefile`` present), installing (empty by default) |
140 | and packaging (empty by default). These classes are often overridden or | 140 | and packaging (empty by default). These classes are often overridden or |
141 | extended by other classes such as the | 141 | extended by other classes such as the :ref:`ref-classes-autotools` class or the |
142 | :ref:`autotools <ref-classes-autotools>` class or the | 142 | :ref:`ref-classes-package` class. |
143 | :ref:`package <ref-classes-package>` class. | ||
144 | 143 | ||
145 | The class also contains some commonly used functions such as | 144 | The class also contains some commonly used functions such as |
146 | ``oe_runmake``, which runs ``make`` with the arguments specified in | 145 | ``oe_runmake``, which runs ``make`` with the arguments specified in |
@@ -160,7 +159,7 @@ software that includes bash-completion data. | |||
160 | ``bin_package`` | 159 | ``bin_package`` |
161 | =============== | 160 | =============== |
162 | 161 | ||
163 | The :ref:`bin_package <ref-classes-bin-package>` class is a helper class for recipes that extract the | 162 | The :ref:`ref-classes-bin-package` class is a helper class for recipes that extract the |
164 | contents of a binary package (e.g. an RPM) and install those contents | 163 | contents of a binary package (e.g. an RPM) and install those contents |
165 | rather than building the binary from source. The binary package is | 164 | rather than building the binary from source. The binary package is |
166 | extracted and new packages in the configured output package format are | 165 | extracted and new packages in the configured output package format are |
@@ -187,7 +186,7 @@ example use for this class. | |||
187 | ``binconfig`` | 186 | ``binconfig`` |
188 | ============= | 187 | ============= |
189 | 188 | ||
190 | The :ref:`binconfig <ref-classes-binconfig>` class helps to correct paths in shell scripts. | 189 | The :ref:`ref-classes-binconfig` class helps to correct paths in shell scripts. |
191 | 190 | ||
192 | Before ``pkg-config`` had become widespread, libraries shipped shell | 191 | Before ``pkg-config`` had become widespread, libraries shipped shell |
193 | scripts to give information about the libraries and include paths needed | 192 | scripts to give information about the libraries and include paths needed |
@@ -207,7 +206,7 @@ information. | |||
207 | ``binconfig-disabled`` | 206 | ``binconfig-disabled`` |
208 | ====================== | 207 | ====================== |
209 | 208 | ||
210 | An alternative version of the :ref:`binconfig <ref-classes-binconfig>` | 209 | An alternative version of the :ref:`ref-classes-binconfig` |
211 | class, which disables binary configuration scripts by making them return | 210 | class, which disables binary configuration scripts by making them return |
212 | an error in favor of using ``pkg-config`` to query the information. The | 211 | an error in favor of using ``pkg-config`` to query the information. The |
213 | scripts to be disabled should be specified using the :term:`BINCONFIG` | 212 | scripts to be disabled should be specified using the :term:`BINCONFIG` |
@@ -218,7 +217,7 @@ variable within the recipe inheriting the class. | |||
218 | ``buildhistory`` | 217 | ``buildhistory`` |
219 | ================ | 218 | ================ |
220 | 219 | ||
221 | The :ref:`buildhistory <ref-classes-buildhistory>` class records a history of build output metadata, | 220 | The :ref:`ref-classes-buildhistory` class records a history of build output metadata, |
222 | which can be used to detect possible regressions as well as used for | 221 | which can be used to detect possible regressions as well as used for |
223 | analysis of the build output. For more information on using Build | 222 | analysis of the build output. For more information on using Build |
224 | History, see the | 223 | History, see the |
@@ -230,7 +229,7 @@ section in the Yocto Project Development Tasks Manual. | |||
230 | ``buildstats`` | 229 | ``buildstats`` |
231 | ============== | 230 | ============== |
232 | 231 | ||
233 | The :ref:`buildstats <ref-classes-buildstats>` class records performance statistics about each task | 232 | The :ref:`ref-classes-buildstats` class records performance statistics about each task |
234 | executed during the build (e.g. elapsed time, CPU usage, and I/O usage). | 233 | executed during the build (e.g. elapsed time, CPU usage, and I/O usage). |
235 | 234 | ||
236 | When you use this class, the output goes into the | 235 | When you use this class, the output goes into the |
@@ -244,7 +243,7 @@ Collecting build statistics is enabled by default through the | |||
244 | :term:`USER_CLASSES` variable from your | 243 | :term:`USER_CLASSES` variable from your |
245 | ``local.conf`` file. Consequently, you do not have to do anything to | 244 | ``local.conf`` file. Consequently, you do not have to do anything to |
246 | enable the class. However, if you want to disable the class, simply | 245 | enable the class. However, if you want to disable the class, simply |
247 | remove ":ref:`buildstats <ref-classes-buildstats>`" from the :term:`USER_CLASSES` list. | 246 | remove ":ref:`ref-classes-buildstats`" from the :term:`USER_CLASSES` list. |
248 | 247 | ||
249 | .. _ref-classes-buildstats-summary: | 248 | .. _ref-classes-buildstats-summary: |
250 | 249 | ||
@@ -253,14 +252,14 @@ remove ":ref:`buildstats <ref-classes-buildstats>`" from the :term:`USER_CLASSES | |||
253 | 252 | ||
254 | When inherited globally, prints statistics at the end of the build on | 253 | When inherited globally, prints statistics at the end of the build on |
255 | sstate re-use. In order to function, this class requires the | 254 | sstate re-use. In order to function, this class requires the |
256 | :ref:`buildstats <ref-classes-buildstats>` class be enabled. | 255 | :ref:`ref-classes-buildstats` class be enabled. |
257 | 256 | ||
258 | .. _ref-classes-ccache: | 257 | .. _ref-classes-ccache: |
259 | 258 | ||
260 | ``ccache`` | 259 | ``ccache`` |
261 | ========== | 260 | ========== |
262 | 261 | ||
263 | The :ref:`ccache <ref-classes-ccache>` class enables the C/C++ Compiler Cache for the build. | 262 | The :ref:`ref-classes-ccache` class enables the C/C++ Compiler Cache for the build. |
264 | This class is used to give a minor performance boost during the build. | 263 | This class is used to give a minor performance boost during the build. |
265 | 264 | ||
266 | See https://ccache.samba.org/ for information on the C/C++ Compiler | 265 | See https://ccache.samba.org/ for information on the C/C++ Compiler |
@@ -277,9 +276,9 @@ this class is not recommended. | |||
277 | ``chrpath`` | 276 | ``chrpath`` |
278 | =========== | 277 | =========== |
279 | 278 | ||
280 | The :ref:`chrpath <ref-classes-chrpath>` class is a wrapper around the "chrpath" utility, which | 279 | The :ref:`ref-classes-chrpath` class is a wrapper around the "chrpath" utility, which |
281 | is used during the build process for :ref:`nativesdk <ref-classes-nativesdk>`, :ref:`cross <ref-classes-cross>`, and | 280 | is used during the build process for :ref:`ref-classes-nativesdk`, :ref:`ref-classes-cross`, and |
282 | :ref:`cross-canadian <ref-classes-cross-canadian>` recipes to change ``RPATH`` records within binaries | 281 | :ref:`ref-classes-cross-canadian` recipes to change ``RPATH`` records within binaries |
283 | in order to make them relocatable. | 282 | in order to make them relocatable. |
284 | 283 | ||
285 | .. _ref-classes-cmake: | 284 | .. _ref-classes-cmake: |
@@ -287,7 +286,7 @@ in order to make them relocatable. | |||
287 | ``cmake`` | 286 | ``cmake`` |
288 | ========= | 287 | ========= |
289 | 288 | ||
290 | The ref:`cmake <ref-classes-cmake>` class allows for recipes that need to build software using | 289 | The ref:`ref-classes-cmake` class allows for recipes that need to build software using |
291 | the `CMake <https://cmake.org/overview/>`__ build system. You can use | 290 | the `CMake <https://cmake.org/overview/>`__ build system. You can use |
292 | the :term:`EXTRA_OECMAKE` variable to specify | 291 | the :term:`EXTRA_OECMAKE` variable to specify |
293 | additional configuration options to be passed using the ``cmake`` | 292 | additional configuration options to be passed using the ``cmake`` |
@@ -304,7 +303,7 @@ Modules during | |||
304 | ``cml1`` | 303 | ``cml1`` |
305 | ======== | 304 | ======== |
306 | 305 | ||
307 | The :ref:`cml1 <ref-classes-cml1>` class provides basic support for the Linux kernel style | 306 | The :ref:`ref-classes-cml1` class provides basic support for the Linux kernel style |
308 | build configuration system. | 307 | build configuration system. |
309 | 308 | ||
310 | .. _ref-classes-compress_doc: | 309 | .. _ref-classes-compress_doc: |
@@ -322,18 +321,18 @@ but you can select an alternative mechanism by setting the | |||
322 | ``copyleft_compliance`` | 321 | ``copyleft_compliance`` |
323 | ======================= | 322 | ======================= |
324 | 323 | ||
325 | The :ref:`copyleft_compliance <ref-classes-copyleft_compliance>` class preserves source code for the purposes | 324 | The :ref:`ref-classes-copyleft_compliance` class preserves source code for the purposes |
326 | of license compliance. This class is an alternative to the :ref:`archiver <ref-classes-archiver>` | 325 | of license compliance. This class is an alternative to the :ref:`ref-classes-archiver` |
327 | class and is still used by some users even though it has been deprecated | 326 | class and is still used by some users even though it has been deprecated |
328 | in favor of the :ref:`archiver <ref-classes-archiver>` class. | 327 | in favor of the :ref:`ref-classes-archiver` class. |
329 | 328 | ||
330 | .. _ref-classes-copyleft_filter: | 329 | .. _ref-classes-copyleft_filter: |
331 | 330 | ||
332 | ``copyleft_filter`` | 331 | ``copyleft_filter`` |
333 | =================== | 332 | =================== |
334 | 333 | ||
335 | A class used by the :ref:`archiver <ref-classes-archiver>` and | 334 | A class used by the :ref:`ref-classes-archiver` and |
336 | :ref:`copyleft_compliance <ref-classes-copyleft_compliance>` classes | 335 | :ref:`ref-classes-copyleft_compliance` classes |
337 | for filtering licenses. The ``copyleft_filter`` class is an internal | 336 | for filtering licenses. The ``copyleft_filter`` class is an internal |
338 | class and is not intended to be used directly. | 337 | class and is not intended to be used directly. |
339 | 338 | ||
@@ -342,7 +341,7 @@ class and is not intended to be used directly. | |||
342 | ``core-image`` | 341 | ``core-image`` |
343 | ============== | 342 | ============== |
344 | 343 | ||
345 | The :ref:`core-image <ref-classes-core-image>` class provides common definitions for the | 344 | The :ref:`ref-classes-core-image` class provides common definitions for the |
346 | ``core-image-*`` image recipes, such as support for additional | 345 | ``core-image-*`` image recipes, such as support for additional |
347 | :term:`IMAGE_FEATURES`. | 346 | :term:`IMAGE_FEATURES`. |
348 | 347 | ||
@@ -372,7 +371,7 @@ support. | |||
372 | ``create-spdx`` | 371 | ``create-spdx`` |
373 | =============== | 372 | =============== |
374 | 373 | ||
375 | The :ref:`create-spdx <ref-classes-create-spdx>` class provides support for | 374 | The :ref:`ref-classes-create-spdx` class provides support for |
376 | automatically creating :term:`SPDX` :term:`SBOM` documents based upon image | 375 | automatically creating :term:`SPDX` :term:`SBOM` documents based upon image |
377 | and SDK contents. | 376 | and SDK contents. |
378 | 377 | ||
@@ -398,7 +397,7 @@ section in the Yocto Project Development Manual for more details. | |||
398 | ``cross`` | 397 | ``cross`` |
399 | ========= | 398 | ========= |
400 | 399 | ||
401 | The :ref:`cross <ref-classes-cross>` class provides support for the recipes that build the | 400 | The :ref:`ref-classes-cross` class provides support for the recipes that build the |
402 | cross-compilation tools. | 401 | cross-compilation tools. |
403 | 402 | ||
404 | .. _ref-classes-cross-canadian: | 403 | .. _ref-classes-cross-canadian: |
@@ -406,7 +405,7 @@ cross-compilation tools. | |||
406 | ``cross-canadian`` | 405 | ``cross-canadian`` |
407 | ================== | 406 | ================== |
408 | 407 | ||
409 | The :ref:`cross-canadian <ref-classes-cross-canadian>` class provides support for the recipes that build | 408 | The :ref:`ref-classes-cross-canadian` class provides support for the recipes that build |
410 | the Canadian Cross-compilation tools for SDKs. See the | 409 | the Canadian Cross-compilation tools for SDKs. See the |
411 | ":ref:`overview-manual/concepts:cross-development toolchain generation`" | 410 | ":ref:`overview-manual/concepts:cross-development toolchain generation`" |
412 | section in the Yocto Project Overview and Concepts Manual for more | 411 | section in the Yocto Project Overview and Concepts Manual for more |
@@ -417,7 +416,7 @@ discussion on these cross-compilation tools. | |||
417 | ``crosssdk`` | 416 | ``crosssdk`` |
418 | ============ | 417 | ============ |
419 | 418 | ||
420 | The :ref:`crosssdk <ref-classes-crosssdk>` class provides support for the recipes that build the | 419 | The :ref:`ref-classes-crosssdk` class provides support for the recipes that build the |
421 | cross-compilation tools used for building SDKs. See the | 420 | cross-compilation tools used for building SDKs. See the |
422 | ":ref:`overview-manual/concepts:cross-development toolchain generation`" | 421 | ":ref:`overview-manual/concepts:cross-development toolchain generation`" |
423 | section in the Yocto Project Overview and Concepts Manual for more | 422 | section in the Yocto Project Overview and Concepts Manual for more |
@@ -428,7 +427,7 @@ discussion on these cross-compilation tools. | |||
428 | ``cve-check`` | 427 | ``cve-check`` |
429 | ============= | 428 | ============= |
430 | 429 | ||
431 | The :ref:`cve-check <ref-classes-cve-check>` class looks for known CVEs (Common Vulnerabilities | 430 | The :ref:`ref-classes-cve-check` class looks for known CVEs (Common Vulnerabilities |
432 | and Exposures) while building with BitBake. This class is meant to be | 431 | and Exposures) while building with BitBake. This class is meant to be |
433 | inherited globally from a configuration file:: | 432 | inherited globally from a configuration file:: |
434 | 433 | ||
@@ -492,7 +491,7 @@ section in the Development Tasks Manual. | |||
492 | ``debian`` | 491 | ``debian`` |
493 | ========== | 492 | ========== |
494 | 493 | ||
495 | The :ref:`debian <ref-classes-debian>` class renames output packages so that they follow the | 494 | The :ref:`ref-classes-debian` class renames output packages so that they follow the |
496 | Debian naming policy (i.e. ``glibc`` becomes ``libc6`` and | 495 | Debian naming policy (i.e. ``glibc`` becomes ``libc6`` and |
497 | ``glibc-devel`` becomes ``libc6-dev``.) Renaming includes the library | 496 | ``glibc-devel`` becomes ``libc6-dev``.) Renaming includes the library |
498 | name and version as part of the package name. | 497 | name and version as part of the package name. |
@@ -507,7 +506,7 @@ naming scheme. | |||
507 | ``deploy`` | 506 | ``deploy`` |
508 | ========== | 507 | ========== |
509 | 508 | ||
510 | The :ref:`deploy <ref-classes-deploy>` class handles deploying files to the | 509 | The :ref:`ref-classes-deploy` class handles deploying files to the |
511 | :term:`DEPLOY_DIR_IMAGE` directory. The main | 510 | :term:`DEPLOY_DIR_IMAGE` directory. The main |
512 | function of this class is to allow the deploy step to be accelerated by | 511 | function of this class is to allow the deploy step to be accelerated by |
513 | shared state. Recipes that inherit this class should define their own | 512 | shared state. Recipes that inherit this class should define their own |
@@ -523,17 +522,17 @@ staging the files from :term:`DEPLOYDIR` to :term:`DEPLOY_DIR_IMAGE`. | |||
523 | ``devshell`` | 522 | ``devshell`` |
524 | ============ | 523 | ============ |
525 | 524 | ||
526 | The :ref:`devshell <ref-classes-devshell>` class adds the :ref:`ref-tasks-devshell` task. Distribution | 525 | The :ref:`ref-classes-devshell` class adds the :ref:`ref-tasks-devshell` task. Distribution |
527 | policy dictates whether to include this class. See the ":ref:`dev-manual/development-shell:using a development shell`" | 526 | policy dictates whether to include this class. See the ":ref:`dev-manual/development-shell:using a development shell`" |
528 | section in the Yocto Project Development Tasks Manual for more | 527 | section in the Yocto Project Development Tasks Manual for more |
529 | information about using :ref:`devshell <ref-classes-devshell>`. | 528 | information about using :ref:`ref-classes-devshell`. |
530 | 529 | ||
531 | .. _ref-classes-devupstream: | 530 | .. _ref-classes-devupstream: |
532 | 531 | ||
533 | ``devupstream`` | 532 | ``devupstream`` |
534 | =============== | 533 | =============== |
535 | 534 | ||
536 | The :ref:`devupstream <ref-classes-devupstream>` class uses | 535 | The :ref:`ref-classes-devupstream` class uses |
537 | :term:`BBCLASSEXTEND` to add a variant of the | 536 | :term:`BBCLASSEXTEND` to add a variant of the |
538 | recipe that fetches from an alternative URI (e.g. Git) instead of a | 537 | recipe that fetches from an alternative URI (e.g. Git) instead of a |
539 | tarball. Following is an example:: | 538 | tarball. Following is an example:: |
@@ -555,10 +554,10 @@ Any development-specific adjustments can be done by using the | |||
555 | 554 | ||
556 | The class | 555 | The class |
557 | currently only supports creating a development variant of the target | 556 | currently only supports creating a development variant of the target |
558 | recipe, not :ref:`native <ref-classes-native>` or :ref:`nativesdk <ref-classes-nativesdk>` variants. | 557 | recipe, not :ref:`ref-classes-native` or :ref:`ref-classes-nativesdk` variants. |
559 | 558 | ||
560 | The :term:`BBCLASSEXTEND` syntax (i.e. ``devupstream:target``) provides | 559 | The :term:`BBCLASSEXTEND` syntax (i.e. ``devupstream:target``) provides |
561 | support for :ref:`native <ref-classes-native>` and :ref:`nativesdk <ref-classes-nativesdk>` variants. Consequently, this | 560 | support for :ref:`ref-classes-native` and :ref:`ref-classes-nativesdk` variants. Consequently, this |
562 | functionality can be added in a future release. | 561 | functionality can be added in a future release. |
563 | 562 | ||
564 | Support for other version control systems such as Subversion is limited | 563 | Support for other version control systems such as Subversion is limited |
@@ -570,7 +569,7 @@ due to BitBake's automatic fetch dependencies (e.g. | |||
570 | ``externalsrc`` | 569 | ``externalsrc`` |
571 | =============== | 570 | =============== |
572 | 571 | ||
573 | The :ref:`externalsrc <ref-classes-externalsrc>` class supports building software from source code | 572 | The :ref:`ref-classes-externalsrc` class supports building software from source code |
574 | that is external to the OpenEmbedded build system. Building software | 573 | that is external to the OpenEmbedded build system. Building software |
575 | from an external source tree means that the build system's normal fetch, | 574 | from an external source tree means that the build system's normal fetch, |
576 | unpack, and patch process is not used. | 575 | unpack, and patch process is not used. |
@@ -578,7 +577,7 @@ unpack, and patch process is not used. | |||
578 | By default, the OpenEmbedded build system uses the :term:`S` | 577 | By default, the OpenEmbedded build system uses the :term:`S` |
579 | and :term:`B` variables to locate unpacked recipe source code | 578 | and :term:`B` variables to locate unpacked recipe source code |
580 | and to build it, respectively. When your recipe inherits the | 579 | and to build it, respectively. When your recipe inherits the |
581 | :ref:`externalsrc <ref-classes-externalsrc>` class, you use the | 580 | :ref:`ref-classes-externalsrc` class, you use the |
582 | :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD` variables to | 581 | :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD` variables to |
583 | ultimately define :term:`S` and :term:`B`. | 582 | ultimately define :term:`S` and :term:`B`. |
584 | 583 | ||
@@ -594,10 +593,9 @@ See these variables for more information: | |||
594 | :term:`WORKDIR`, :term:`BPN`, and | 593 | :term:`WORKDIR`, :term:`BPN`, and |
595 | :term:`PV`, | 594 | :term:`PV`, |
596 | 595 | ||
597 | For more information on the :ref:`externalsrc <ref-classes-externalsrc>` class, see the comments in | 596 | For more information on the :ref:`ref-classes-externalsrc` class, see the comments in |
598 | ``meta/classes/externalsrc.bbclass`` in the :term:`Source Directory`. | 597 | ``meta/classes/externalsrc.bbclass`` in the :term:`Source Directory`. |
599 | For information on how to use the | 598 | For information on how to use the :ref:`ref-classes-externalsrc` class, see the |
600 | :ref:`externalsrc <ref-classes-externalsrc>` class, see the | ||
601 | ":ref:`dev-manual/building:building software from an external source`" | 599 | ":ref:`dev-manual/building:building software from an external source`" |
602 | section in the Yocto Project Development Tasks Manual. | 600 | section in the Yocto Project Development Tasks Manual. |
603 | 601 | ||
@@ -606,7 +604,7 @@ section in the Yocto Project Development Tasks Manual. | |||
606 | ``extrausers`` | 604 | ``extrausers`` |
607 | ============== | 605 | ============== |
608 | 606 | ||
609 | The :ref:`extrausers <ref-classes-extrausers>` class allows additional user and group configuration | 607 | The :ref:`ref-classes-extrausers` class allows additional user and group configuration |
610 | to be applied at the image level. Inheriting this class either globally | 608 | to be applied at the image level. Inheriting this class either globally |
611 | or from an image recipe allows additional user and group operations to | 609 | or from an image recipe allows additional user and group operations to |
612 | be performed using the | 610 | be performed using the |
@@ -614,13 +612,11 @@ be performed using the | |||
614 | 612 | ||
615 | .. note:: | 613 | .. note:: |
616 | 614 | ||
617 | The user and group operations added using the | 615 | The user and group operations added using the :ref:`ref-classes-extrausers` |
618 | :ref:`extrausers <ref-classes-extrausers>` | ||
619 | class are not tied to a specific recipe outside of the recipe for the | 616 | class are not tied to a specific recipe outside of the recipe for the |
620 | image. Thus, the operations can be performed across the image as a | 617 | image. Thus, the operations can be performed across the image as a |
621 | whole. Use the | 618 | whole. Use the :ref:`ref-classes-useradd` class to add user and group |
622 | :ref:`useradd <ref-classes-useradd>` | 619 | configuration to a specific recipe. |
623 | class to add user and group configuration to a specific recipe. | ||
624 | 620 | ||
625 | Here is an example that uses this class in an image recipe:: | 621 | Here is an example that uses this class in an image recipe:: |
626 | 622 | ||
@@ -668,9 +664,9 @@ Finally, here is an example that sets the root password:: | |||
668 | ``features_check`` | 664 | ``features_check`` |
669 | ================== | 665 | ================== |
670 | 666 | ||
671 | The :ref:`features_check <ref-classes-features_check>` class allows individual recipes to check | 667 | The :ref:`ref-classes-features_check` class allows individual recipes to check |
672 | for required and conflicting | 668 | for required and conflicting :term:`DISTRO_FEATURES`, :term:`MACHINE_FEATURES` |
673 | :term:`DISTRO_FEATURES`, :term:`MACHINE_FEATURES` or :term:`COMBINED_FEATURES`. | 669 | or :term:`COMBINED_FEATURES`. |
674 | 670 | ||
675 | This class provides support for the following variables: | 671 | This class provides support for the following variables: |
676 | 672 | ||
@@ -694,7 +690,7 @@ triggered. | |||
694 | ``fontcache`` | 690 | ``fontcache`` |
695 | ============= | 691 | ============= |
696 | 692 | ||
697 | The :ref:`fontcache <ref-classes-fontcache>` class generates the proper post-install and | 693 | The :ref:`ref-classes-fontcache` class generates the proper post-install and |
698 | post-remove (postinst and postrm) scriptlets for font packages. These | 694 | post-remove (postinst and postrm) scriptlets for font packages. These |
699 | scriptlets call ``fc-cache`` (part of ``Fontconfig``) to add the fonts | 695 | scriptlets call ``fc-cache`` (part of ``Fontconfig``) to add the fonts |
700 | to the font information cache. Since the cache files are | 696 | to the font information cache. Since the cache files are |
@@ -710,9 +706,9 @@ packages containing the fonts. | |||
710 | ``fs-uuid`` | 706 | ``fs-uuid`` |
711 | =========== | 707 | =========== |
712 | 708 | ||
713 | The :ref:`fs-uuid <ref-classes-fs-uuid>` class extracts UUID from | 709 | The :ref:`ref-classes-fs-uuid` class extracts UUID from |
714 | ``${``\ :term:`ROOTFS`\ ``}``, which must have been built | 710 | ``${``\ :term:`ROOTFS`\ ``}``, which must have been built |
715 | by the time that this function gets called. The :ref:`fs-uuid <ref-classes-fs-uuid>` class only | 711 | by the time that this function gets called. The :ref:`ref-classes-fs-uuid` class only |
716 | works on ``ext`` file systems and depends on ``tune2fs``. | 712 | works on ``ext`` file systems and depends on ``tune2fs``. |
717 | 713 | ||
718 | .. _ref-classes-gconf: | 714 | .. _ref-classes-gconf: |
@@ -720,7 +716,7 @@ works on ``ext`` file systems and depends on ``tune2fs``. | |||
720 | ``gconf`` | 716 | ``gconf`` |
721 | ========= | 717 | ========= |
722 | 718 | ||
723 | The :ref:`gconf <ref-classes-gconf>` class provides common functionality for recipes that need | 719 | The :ref:`ref-classes-gconf` class provides common functionality for recipes that need |
724 | to install GConf schemas. The schemas will be put into a separate | 720 | to install GConf schemas. The schemas will be put into a separate |
725 | package (``${``\ :term:`PN`\ ``}-gconf``) that is created | 721 | package (``${``\ :term:`PN`\ ``}-gconf``) that is created |
726 | automatically when this class is inherited. This package uses the | 722 | automatically when this class is inherited. This package uses the |
@@ -732,7 +728,7 @@ register and unregister the schemas in the target image. | |||
732 | ``gettext`` | 728 | ``gettext`` |
733 | =========== | 729 | =========== |
734 | 730 | ||
735 | The :ref:`gettext <ref-classes-gettext>` class provides support for building | 731 | The :ref:`ref-classes-gettext` class provides support for building |
736 | software that uses the GNU ``gettext`` internationalization and localization | 732 | software that uses the GNU ``gettext`` internationalization and localization |
737 | system. All recipes building software that use ``gettext`` should inherit this | 733 | system. All recipes building software that use ``gettext`` should inherit this |
738 | class. | 734 | class. |
@@ -742,11 +738,11 @@ class. | |||
742 | ``github-releases`` | 738 | ``github-releases`` |
743 | =================== | 739 | =================== |
744 | 740 | ||
745 | For recipes that fetch release tarballs from github, the :ref:`github-releases <ref-classes-github-releases>` | 741 | For recipes that fetch release tarballs from github, the :ref:`ref-classes-github-releases` |
746 | class sets up a standard way for checking available upstream versions | 742 | class sets up a standard way for checking available upstream versions |
747 | (to support ``devtool upgrade`` and the Automated Upgrade Helper (AUH)). | 743 | (to support ``devtool upgrade`` and the Automated Upgrade Helper (AUH)). |
748 | 744 | ||
749 | To use it, add ":ref:`github-releases <ref-classes-github-releases>`" to the inherit line in the recipe, | 745 | To use it, add ":ref:`ref-classes-github-releases`" to the inherit line in the recipe, |
750 | and if the default value of :term:`GITHUB_BASE_URI` is not suitable, | 746 | and if the default value of :term:`GITHUB_BASE_URI` is not suitable, |
751 | then set your own value in the recipe. You should then use ``${GITHUB_BASE_URI}`` | 747 | then set your own value in the recipe. You should then use ``${GITHUB_BASE_URI}`` |
752 | in the value you set for :term:`SRC_URI` within the recipe. | 748 | in the value you set for :term:`SRC_URI` within the recipe. |
@@ -756,7 +752,7 @@ in the value you set for :term:`SRC_URI` within the recipe. | |||
756 | ``gnomebase`` | 752 | ``gnomebase`` |
757 | ============= | 753 | ============= |
758 | 754 | ||
759 | The :ref:`gnomebase <ref-classes-gnomebase>` class is the base class for recipes that build | 755 | The :ref:`ref-classes-gnomebase` class is the base class for recipes that build |
760 | software from the GNOME stack. This class sets | 756 | software from the GNOME stack. This class sets |
761 | :term:`SRC_URI` to download the source from the GNOME | 757 | :term:`SRC_URI` to download the source from the GNOME |
762 | mirrors as well as extending :term:`FILES` with the typical | 758 | mirrors as well as extending :term:`FILES` with the typical |
@@ -785,7 +781,7 @@ introspection. This functionality is only enabled if the | |||
785 | ``grub-efi`` | 781 | ``grub-efi`` |
786 | ============ | 782 | ============ |
787 | 783 | ||
788 | The :ref:`grub-efi <ref-classes-grub-efi>` class provides ``grub-efi``-specific functions for | 784 | The :ref:`ref-classes-grub-efi` class provides ``grub-efi``-specific functions for |
789 | building bootable images. | 785 | building bootable images. |
790 | 786 | ||
791 | This class supports several variables: | 787 | This class supports several variables: |
@@ -817,7 +813,7 @@ This class supports several variables: | |||
817 | ``gsettings`` | 813 | ``gsettings`` |
818 | ============= | 814 | ============= |
819 | 815 | ||
820 | The :ref:`gsettings <ref-classes-gsettings>` class provides common functionality for recipes that | 816 | The :ref:`ref-classes-gsettings` class provides common functionality for recipes that |
821 | need to install GSettings (glib) schemas. The schemas are assumed to be | 817 | need to install GSettings (glib) schemas. The schemas are assumed to be |
822 | part of the main package. Appropriate post-install and post-remove | 818 | part of the main package. Appropriate post-install and post-remove |
823 | (postinst/postrm) scriptlets are added to register and unregister the | 819 | (postinst/postrm) scriptlets are added to register and unregister the |
@@ -828,7 +824,7 @@ schemas in the target image. | |||
828 | ``gtk-doc`` | 824 | ``gtk-doc`` |
829 | =========== | 825 | =========== |
830 | 826 | ||
831 | The :ref:`gtk-doc <ref-classes-gtk-doc>` class is a helper class to pull in the appropriate | 827 | The :ref:`ref-classes-gtk-doc` class is a helper class to pull in the appropriate |
832 | ``gtk-doc`` dependencies and disable ``gtk-doc``. | 828 | ``gtk-doc`` dependencies and disable ``gtk-doc``. |
833 | 829 | ||
834 | .. _ref-classes-gtk-icon-cache: | 830 | .. _ref-classes-gtk-icon-cache: |
@@ -836,7 +832,7 @@ The :ref:`gtk-doc <ref-classes-gtk-doc>` class is a helper class to pull in the | |||
836 | ``gtk-icon-cache`` | 832 | ``gtk-icon-cache`` |
837 | ================== | 833 | ================== |
838 | 834 | ||
839 | The :ref:`gtk-icon-cache <ref-classes-gtk-icon-cache>` class generates the proper post-install and | 835 | The :ref:`ref-classes-gtk-icon-cache` class generates the proper post-install and |
840 | post-remove (postinst/postrm) scriptlets for packages that use GTK+ and | 836 | post-remove (postinst/postrm) scriptlets for packages that use GTK+ and |
841 | install icons. These scriptlets call ``gtk-update-icon-cache`` to add | 837 | install icons. These scriptlets call ``gtk-update-icon-cache`` to add |
842 | the fonts to GTK+'s icon cache. Since the cache files are | 838 | the fonts to GTK+'s icon cache. Since the cache files are |
@@ -849,7 +845,7 @@ creation. | |||
849 | ``gtk-immodules-cache`` | 845 | ``gtk-immodules-cache`` |
850 | ======================= | 846 | ======================= |
851 | 847 | ||
852 | The :ref:`gtk-immodules-cache <ref-classes-gtk-immodules-cache>` class generates the proper post-install and | 848 | The :ref:`ref-classes-gtk-immodules-cache` class generates the proper post-install and |
853 | post-remove (postinst/postrm) scriptlets for packages that install GTK+ | 849 | post-remove (postinst/postrm) scriptlets for packages that install GTK+ |
854 | input method modules for virtual keyboards. These scriptlets call | 850 | input method modules for virtual keyboards. These scriptlets call |
855 | ``gtk-update-icon-cache`` to add the input method modules to the cache. | 851 | ``gtk-update-icon-cache`` to add the input method modules to the cache. |
@@ -867,7 +863,7 @@ the packages containing the modules. | |||
867 | ``gzipnative`` | 863 | ``gzipnative`` |
868 | ============== | 864 | ============== |
869 | 865 | ||
870 | The :ref:`gzipnative <ref-classes-gzipnative>` class enables the use of different native versions of | 866 | The :ref:`ref-classes-gzipnative` class enables the use of different native versions of |
871 | ``gzip`` and ``pigz`` rather than the versions of these tools from the | 867 | ``gzip`` and ``pigz`` rather than the versions of these tools from the |
872 | build host. | 868 | build host. |
873 | 869 | ||
@@ -876,7 +872,7 @@ build host. | |||
876 | ``icecc`` | 872 | ``icecc`` |
877 | ========= | 873 | ========= |
878 | 874 | ||
879 | The :ref:`icecc <ref-classes-icecc>` class supports | 875 | The :ref:`ref-classes-icecc` class supports |
880 | `Icecream <https://github.com/icecc/icecream>`__, which facilitates | 876 | `Icecream <https://github.com/icecc/icecream>`__, which facilitates |
881 | taking compile jobs and distributing them among remote machines. | 877 | taking compile jobs and distributing them among remote machines. |
882 | 878 | ||
@@ -924,13 +920,13 @@ Additionally, you can list recipes using the | |||
924 | your ``local.conf`` file to force ``icecc`` to be enabled for recipes | 920 | your ``local.conf`` file to force ``icecc`` to be enabled for recipes |
925 | using an empty :term:`PARALLEL_MAKE` variable. | 921 | using an empty :term:`PARALLEL_MAKE` variable. |
926 | 922 | ||
927 | Inheriting the :ref:`icecc <ref-classes-icecc>` class changes all sstate signatures. | 923 | Inheriting the :ref:`ref-classes-icecc` class changes all sstate signatures. |
928 | Consequently, if a development team has a dedicated build system that | 924 | Consequently, if a development team has a dedicated build system that |
929 | populates :term:`SSTATE_MIRRORS` and they want to | 925 | populates :term:`SSTATE_MIRRORS` and they want to |
930 | reuse sstate from :term:`SSTATE_MIRRORS`, then all developers and the build | 926 | reuse sstate from :term:`SSTATE_MIRRORS`, then all developers and the build |
931 | system need to either inherit the :ref:`icecc <ref-classes-icecc>` class or nobody should. | 927 | system need to either inherit the :ref:`ref-classes-icecc` class or nobody should. |
932 | 928 | ||
933 | At the distribution level, you can inherit the :ref:`icecc <ref-classes-icecc>` class to be | 929 | At the distribution level, you can inherit the :ref:`ref-classes-icecc` class to be |
934 | sure that all builders start with the same sstate signatures. After | 930 | sure that all builders start with the same sstate signatures. After |
935 | inheriting the class, you can then disable the feature by setting the | 931 | inheriting the class, you can then disable the feature by setting the |
936 | :term:`ICECC_DISABLED` variable to "1" as follows:: | 932 | :term:`ICECC_DISABLED` variable to "1" as follows:: |
@@ -950,7 +946,7 @@ individually as follows in your ``local.conf`` file:: | |||
950 | ``image`` | 946 | ``image`` |
951 | ========= | 947 | ========= |
952 | 948 | ||
953 | The :ref:`image <ref-classes-image>` class helps support creating images in different formats. | 949 | The :ref:`ref-classes-image` class helps support creating images in different formats. |
954 | First, the root filesystem is created from packages using one of the | 950 | First, the root filesystem is created from packages using one of the |
955 | ``rootfs*.bbclass`` files (depending on the package format used) and | 951 | ``rootfs*.bbclass`` files (depending on the package format used) and |
956 | then one or more image files are created. | 952 | then one or more image files are created. |
@@ -973,7 +969,7 @@ Yocto Project Overview and Concepts Manual. | |||
973 | ``image-buildinfo`` | 969 | ``image-buildinfo`` |
974 | =================== | 970 | =================== |
975 | 971 | ||
976 | The :ref:`image-buildinfo <ref-classes-image-buildinfo>` class writes a plain text file containing | 972 | The :ref:`ref-classes-image-buildinfo` class writes a plain text file containing |
977 | build information to the target filesystem at ``${sysconfdir}/buildinfo`` | 973 | build information to the target filesystem at ``${sysconfdir}/buildinfo`` |
978 | by default (as specified by :term:`IMAGE_BUILDINFO_FILE`). | 974 | by default (as specified by :term:`IMAGE_BUILDINFO_FILE`). |
979 | This can be useful for manually determining the origin of any given | 975 | This can be useful for manually determining the origin of any given |
@@ -995,14 +991,14 @@ to ``/buildinfo`` by default (as specified by | |||
995 | ``image_types`` | 991 | ``image_types`` |
996 | =============== | 992 | =============== |
997 | 993 | ||
998 | The :ref:`image_types <ref-classes-image_types>` class defines all of the standard image output types | 994 | The :ref:`ref-classes-image_types` class defines all of the standard image output types |
999 | that you can enable through the | 995 | that you can enable through the |
1000 | :term:`IMAGE_FSTYPES` variable. You can use this | 996 | :term:`IMAGE_FSTYPES` variable. You can use this |
1001 | class as a reference on how to add support for custom image output | 997 | class as a reference on how to add support for custom image output |
1002 | types. | 998 | types. |
1003 | 999 | ||
1004 | By default, the :ref:`image <ref-classes-image>` class automatically | 1000 | By default, the :ref:`ref-classes-image` class automatically |
1005 | enables the :ref:`image_types <ref-classes-image_types>` class. The :ref:`image <ref-classes-image>` class uses the | 1001 | enables the :ref:`ref-classes-image_types` class. The :ref:`ref-classes-image` class uses the |
1006 | ``IMGCLASSES`` variable as follows:: | 1002 | ``IMGCLASSES`` variable as follows:: |
1007 | 1003 | ||
1008 | IMGCLASSES = "rootfs_${IMAGE_PKGTYPE} image_types ${IMAGE_CLASSES}" | 1004 | IMGCLASSES = "rootfs_${IMAGE_PKGTYPE} image_types ${IMAGE_CLASSES}" |
@@ -1014,7 +1010,7 @@ enables the :ref:`image_types <ref-classes-image_types>` class. The :ref:`image | |||
1014 | IMGCLASSES += "image-postinst-intercepts" | 1010 | IMGCLASSES += "image-postinst-intercepts" |
1015 | inherit ${IMGCLASSES} | 1011 | inherit ${IMGCLASSES} |
1016 | 1012 | ||
1017 | The :ref:`image_types <ref-classes-image_types>` class also handles conversion and compression of images. | 1013 | The :ref:`ref-classes-image_types` class also handles conversion and compression of images. |
1018 | 1014 | ||
1019 | .. note:: | 1015 | .. note:: |
1020 | 1016 | ||
@@ -1040,7 +1036,7 @@ Normally, you do not use this class directly. Instead, you add "live" to | |||
1040 | ``insane`` | 1036 | ``insane`` |
1041 | ========== | 1037 | ========== |
1042 | 1038 | ||
1043 | The :ref:`insane <ref-classes-insane>` class adds a step to the package generation process so | 1039 | The :ref:`ref-classes-insane` class adds a step to the package generation process so |
1044 | that output quality assurance checks are generated by the OpenEmbedded | 1040 | that output quality assurance checks are generated by the OpenEmbedded |
1045 | build system. A range of checks are performed that check the build's | 1041 | build system. A range of checks are performed that check the build's |
1046 | output for common problems that show up during runtime. Distribution | 1042 | output for common problems that show up during runtime. Distribution |
@@ -1100,7 +1096,7 @@ Here are the tests you can list with the :term:`WARN_QA` and | |||
1100 | the package is installed into the image during the | 1096 | the package is installed into the image during the |
1101 | :ref:`ref-tasks-rootfs` task because the auto-detected | 1097 | :ref:`ref-tasks-rootfs` task because the auto-detected |
1102 | dependency was not satisfied. An example of this would be where the | 1098 | dependency was not satisfied. An example of this would be where the |
1103 | :ref:`update-rc.d <ref-classes-update-rc.d>` class automatically | 1099 | :ref:`ref-classes-update-rc.d` class automatically |
1104 | adds a dependency on the ``initscripts-functions`` package to | 1100 | adds a dependency on the ``initscripts-functions`` package to |
1105 | packages that install an initscript that refers to | 1101 | packages that install an initscript that refers to |
1106 | ``/etc/init.d/functions``. The recipe should really have an explicit | 1102 | ``/etc/init.d/functions``. The recipe should really have an explicit |
@@ -1340,7 +1336,7 @@ Here are the tests you can list with the :term:`WARN_QA` and | |||
1340 | ``insserv`` | 1336 | ``insserv`` |
1341 | =========== | 1337 | =========== |
1342 | 1338 | ||
1343 | The :ref:`insserv <ref-classes-insserv>` class uses the ``insserv`` utility to update the order | 1339 | The :ref:`ref-classes-insserv` class uses the ``insserv`` utility to update the order |
1344 | of symbolic links in ``/etc/rc?.d/`` within an image based on | 1340 | of symbolic links in ``/etc/rc?.d/`` within an image based on |
1345 | dependencies specified by LSB headers in the ``init.d`` scripts | 1341 | dependencies specified by LSB headers in the ``init.d`` scripts |
1346 | themselves. | 1342 | themselves. |
@@ -1350,10 +1346,10 @@ themselves. | |||
1350 | ``kernel`` | 1346 | ``kernel`` |
1351 | ========== | 1347 | ========== |
1352 | 1348 | ||
1353 | The :ref:`kernel <ref-classes-kernel>` class handles building Linux kernels. The class contains | 1349 | The :ref:`ref-classes-kernel` class handles building Linux kernels. The class contains |
1354 | code to build all kernel trees. All needed headers are staged into the | 1350 | code to build all kernel trees. All needed headers are staged into the |
1355 | :term:`STAGING_KERNEL_DIR` directory to allow out-of-tree module builds | 1351 | :term:`STAGING_KERNEL_DIR` directory to allow out-of-tree module builds |
1356 | using the :ref:`module <ref-classes-module>` class. | 1352 | using the :ref:`ref-classes-module` class. |
1357 | 1353 | ||
1358 | This means that each built kernel module is packaged separately and | 1354 | This means that each built kernel module is packaged separately and |
1359 | inter-module dependencies are created by parsing the ``modinfo`` output. | 1355 | inter-module dependencies are created by parsing the ``modinfo`` output. |
@@ -1361,23 +1357,22 @@ If all modules are required, then installing the ``kernel-modules`` | |||
1361 | package installs all packages with modules and various other kernel | 1357 | package installs all packages with modules and various other kernel |
1362 | packages such as ``kernel-vmlinux``. | 1358 | packages such as ``kernel-vmlinux``. |
1363 | 1359 | ||
1364 | The :ref:`kernel <ref-classes-kernel>` class contains logic that allows you to embed an initial | 1360 | The :ref:`ref-classes-kernel` class contains logic that allows you to embed an initial |
1365 | RAM filesystem (:term:`Initramfs`) image when you build the kernel image. For | 1361 | RAM filesystem (:term:`Initramfs`) image when you build the kernel image. For |
1366 | information on how to build an :term:`Initramfs`, see the | 1362 | information on how to build an :term:`Initramfs`, see the |
1367 | ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section in | 1363 | ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section in |
1368 | the Yocto Project Development Tasks Manual. | 1364 | the Yocto Project Development Tasks Manual. |
1369 | 1365 | ||
1370 | Various other classes are used by the :ref:`kernel <ref-classes-kernel>` and :ref:`module <ref-classes-module>` classes | 1366 | Various other classes are used by the :ref:`ref-classes-kernel` and :ref:`ref-classes-module` classes |
1371 | internally including the :ref:`kernel-arch <ref-classes-kernel-arch>`, | 1367 | internally including the :ref:`ref-classes-kernel-arch`, :ref:`ref-classes-module-base`, and |
1372 | :ref:`module-base <ref-classes-module-base>`, and | 1368 | :ref:`ref-classes-linux-kernel-base` classes. |
1373 | :ref:`linux-kernel-base <ref-classes-linux-kernel-base>` classes. | ||
1374 | 1369 | ||
1375 | .. _ref-classes-kernel-arch: | 1370 | .. _ref-classes-kernel-arch: |
1376 | 1371 | ||
1377 | ``kernel-arch`` | 1372 | ``kernel-arch`` |
1378 | =============== | 1373 | =============== |
1379 | 1374 | ||
1380 | The :ref:`kernel-arch <ref-classes-kernel-arch>` class sets the ``ARCH`` environment variable for | 1375 | The :ref:`ref-classes-kernel-arch` class sets the ``ARCH`` environment variable for |
1381 | Linux kernel compilation (including modules). | 1376 | Linux kernel compilation (including modules). |
1382 | 1377 | ||
1383 | .. _ref-classes-kernel-devicetree: | 1378 | .. _ref-classes-kernel-devicetree: |
@@ -1385,26 +1380,25 @@ Linux kernel compilation (including modules). | |||
1385 | ``kernel-devicetree`` | 1380 | ``kernel-devicetree`` |
1386 | ===================== | 1381 | ===================== |
1387 | 1382 | ||
1388 | The :ref:`kernel-devicetree <ref-classes-kernel-devicetree>` class, which is inherited by the | 1383 | The :ref:`ref-classes-kernel-devicetree` class, which is inherited by the |
1389 | :ref:`kernel <ref-classes-kernel>` class, supports device tree | 1384 | :ref:`ref-classes-kernel` class, supports device tree generation. |
1390 | generation. | ||
1391 | 1385 | ||
1392 | .. _ref-classes-kernel-fitimage: | 1386 | .. _ref-classes-kernel-fitimage: |
1393 | 1387 | ||
1394 | ``kernel-fitimage`` | 1388 | ``kernel-fitimage`` |
1395 | =================== | 1389 | =================== |
1396 | 1390 | ||
1397 | The :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class provides support to pack a kernel image, | 1391 | The :ref:`ref-classes-kernel-fitimage` class provides support to pack a kernel image, |
1398 | device trees, a U-boot script, a :term:`Initramfs` bundle and a RAM disk | 1392 | device trees, a U-boot script, a :term:`Initramfs` bundle and a RAM disk |
1399 | into a single FIT image. In theory, a FIT image can support any number | 1393 | into a single FIT image. In theory, a FIT image can support any number |
1400 | of kernels, U-boot scripts, :term:`Initramfs` bundles, RAM disks and device-trees. | 1394 | of kernels, U-boot scripts, :term:`Initramfs` bundles, RAM disks and device-trees. |
1401 | However, :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` currently only supports | 1395 | However, :ref:`ref-classes-kernel-fitimage` currently only supports |
1402 | limited usecases: just one kernel image, an optional U-boot script, | 1396 | limited usecases: just one kernel image, an optional U-boot script, |
1403 | an optional :term:`Initramfs` bundle, an optional RAM disk, and any number of | 1397 | an optional :term:`Initramfs` bundle, an optional RAM disk, and any number of |
1404 | device tree. | 1398 | device tree. |
1405 | 1399 | ||
1406 | To create a FIT image, it is required that :term:`KERNEL_CLASSES` | 1400 | To create a FIT image, it is required that :term:`KERNEL_CLASSES` |
1407 | is set to include ":ref:`kernel-fitimage <ref-classes-kernel-fitimage>`" and :term:`KERNEL_IMAGETYPE` | 1401 | is set to include ":ref:`ref-classes-kernel-fitimage`" and :term:`KERNEL_IMAGETYPE` |
1408 | is set to "fitImage". | 1402 | is set to "fitImage". |
1409 | 1403 | ||
1410 | The options for the device tree compiler passed to ``mkimage -D`` | 1404 | The options for the device tree compiler passed to ``mkimage -D`` |
@@ -1412,19 +1406,19 @@ when creating the FIT image are specified using the | |||
1412 | :term:`UBOOT_MKIMAGE_DTCOPTS` variable. | 1406 | :term:`UBOOT_MKIMAGE_DTCOPTS` variable. |
1413 | 1407 | ||
1414 | Only a single kernel can be added to the FIT image created by | 1408 | Only a single kernel can be added to the FIT image created by |
1415 | :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` and the kernel image in FIT is mandatory. The | 1409 | :ref:`ref-classes-kernel-fitimage` and the kernel image in FIT is mandatory. The |
1416 | address where the kernel image is to be loaded by U-Boot is | 1410 | address where the kernel image is to be loaded by U-Boot is |
1417 | specified by :term:`UBOOT_LOADADDRESS` and the entrypoint by | 1411 | specified by :term:`UBOOT_LOADADDRESS` and the entrypoint by |
1418 | :term:`UBOOT_ENTRYPOINT`. | 1412 | :term:`UBOOT_ENTRYPOINT`. |
1419 | 1413 | ||
1420 | Multiple device trees can be added to the FIT image created by | 1414 | Multiple device trees can be added to the FIT image created by |
1421 | :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` and the device tree is optional. | 1415 | :ref:`ref-classes-kernel-fitimage` and the device tree is optional. |
1422 | The address where the device tree is to be loaded by U-Boot is | 1416 | The address where the device tree is to be loaded by U-Boot is |
1423 | specified by :term:`UBOOT_DTBO_LOADADDRESS` for device tree overlays | 1417 | specified by :term:`UBOOT_DTBO_LOADADDRESS` for device tree overlays |
1424 | and by :term:`UBOOT_DTB_LOADADDRESS` for device tree binaries. | 1418 | and by :term:`UBOOT_DTB_LOADADDRESS` for device tree binaries. |
1425 | 1419 | ||
1426 | Only a single RAM disk can be added to the FIT image created by | 1420 | Only a single RAM disk can be added to the FIT image created by |
1427 | :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` and the RAM disk in FIT is optional. | 1421 | :ref:`ref-classes-kernel-fitimage` and the RAM disk in FIT is optional. |
1428 | The address where the RAM disk image is to be loaded by U-Boot | 1422 | The address where the RAM disk image is to be loaded by U-Boot |
1429 | is specified by :term:`UBOOT_RD_LOADADDRESS` and the entrypoint by | 1423 | is specified by :term:`UBOOT_RD_LOADADDRESS` and the entrypoint by |
1430 | :term:`UBOOT_RD_ENTRYPOINT`. The ramdisk is added to FIT image when | 1424 | :term:`UBOOT_RD_ENTRYPOINT`. The ramdisk is added to FIT image when |
@@ -1432,7 +1426,7 @@ is specified by :term:`UBOOT_RD_LOADADDRESS` and the entrypoint by | |||
1432 | is set to 0. | 1426 | is set to 0. |
1433 | 1427 | ||
1434 | Only a single :term:`Initramfs` bundle can be added to the FIT image created by | 1428 | Only a single :term:`Initramfs` bundle can be added to the FIT image created by |
1435 | :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` and the :term:`Initramfs` bundle in FIT is optional. | 1429 | :ref:`ref-classes-kernel-fitimage` and the :term:`Initramfs` bundle in FIT is optional. |
1436 | In case of :term:`Initramfs`, the kernel is configured to be bundled with the root filesystem | 1430 | In case of :term:`Initramfs`, the kernel is configured to be bundled with the root filesystem |
1437 | in the same binary (example: zImage-initramfs-:term:`MACHINE`.bin). | 1431 | in the same binary (example: zImage-initramfs-:term:`MACHINE`.bin). |
1438 | When the kernel is copied to RAM and executed, it unpacks the :term:`Initramfs` root filesystem. | 1432 | When the kernel is copied to RAM and executed, it unpacks the :term:`Initramfs` root filesystem. |
@@ -1442,21 +1436,21 @@ The address where the :term:`Initramfs` bundle is to be loaded by U-boot is spec | |||
1442 | by :term:`UBOOT_LOADADDRESS` and the entrypoint by :term:`UBOOT_ENTRYPOINT`. | 1436 | by :term:`UBOOT_LOADADDRESS` and the entrypoint by :term:`UBOOT_ENTRYPOINT`. |
1443 | 1437 | ||
1444 | Only a single U-boot boot script can be added to the FIT image created by | 1438 | Only a single U-boot boot script can be added to the FIT image created by |
1445 | :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` and the boot script is optional. | 1439 | :ref:`ref-classes-kernel-fitimage` and the boot script is optional. |
1446 | The boot script is specified in the ITS file as a text file containing | 1440 | The boot script is specified in the ITS file as a text file containing |
1447 | U-boot commands. When using a boot script the user should configure the | 1441 | U-boot commands. When using a boot script the user should configure the |
1448 | U-boot :ref:`ref-tasks-install` task to copy the script to sysroot. | 1442 | U-boot :ref:`ref-tasks-install` task to copy the script to sysroot. |
1449 | So the script can be included in the FIT image by the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` | 1443 | So the script can be included in the FIT image by the :ref:`ref-classes-kernel-fitimage` |
1450 | class. At run-time, U-boot CONFIG_BOOTCOMMAND define can be configured to | 1444 | class. At run-time, U-boot CONFIG_BOOTCOMMAND define can be configured to |
1451 | load the boot script from the FIT image and executes it. | 1445 | load the boot script from the FIT image and executes it. |
1452 | 1446 | ||
1453 | The FIT image generated by :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class is signed when the | 1447 | The FIT image generated by :ref:`ref-classes-kernel-fitimage` class is signed when the |
1454 | variables :term:`UBOOT_SIGN_ENABLE`, :term:`UBOOT_MKIMAGE_DTCOPTS`, | 1448 | variables :term:`UBOOT_SIGN_ENABLE`, :term:`UBOOT_MKIMAGE_DTCOPTS`, |
1455 | :term:`UBOOT_SIGN_KEYDIR` and :term:`UBOOT_SIGN_KEYNAME` are set | 1449 | :term:`UBOOT_SIGN_KEYDIR` and :term:`UBOOT_SIGN_KEYNAME` are set |
1456 | appropriately. The default values used for :term:`FIT_HASH_ALG` and | 1450 | appropriately. The default values used for :term:`FIT_HASH_ALG` and |
1457 | :term:`FIT_SIGN_ALG` in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` are "sha256" and | 1451 | :term:`FIT_SIGN_ALG` in :ref:`ref-classes-kernel-fitimage` are "sha256" and |
1458 | "rsa2048" respectively. The keys for signing fitImage can be generated using | 1452 | "rsa2048" respectively. The keys for signing fitImage can be generated using |
1459 | the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class when both :term:`FIT_GENERATE_KEYS` and | 1453 | the :ref:`ref-classes-kernel-fitimage` class when both :term:`FIT_GENERATE_KEYS` and |
1460 | :term:`UBOOT_SIGN_ENABLE` are set to "1". | 1454 | :term:`UBOOT_SIGN_ENABLE` are set to "1". |
1461 | 1455 | ||
1462 | 1456 | ||
@@ -1465,7 +1459,7 @@ the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class when both :term:` | |||
1465 | ``kernel-grub`` | 1459 | ``kernel-grub`` |
1466 | =============== | 1460 | =============== |
1467 | 1461 | ||
1468 | The :ref:`kernel-grub <ref-classes-kernel-grub>` class updates the boot area and the boot menu with | 1462 | The :ref:`ref-classes-kernel-grub` class updates the boot area and the boot menu with |
1469 | the kernel as the priority boot mechanism while installing a RPM to | 1463 | the kernel as the priority boot mechanism while installing a RPM to |
1470 | update the kernel on a deployed target. | 1464 | update the kernel on a deployed target. |
1471 | 1465 | ||
@@ -1474,7 +1468,7 @@ update the kernel on a deployed target. | |||
1474 | ``kernel-module-split`` | 1468 | ``kernel-module-split`` |
1475 | ======================= | 1469 | ======================= |
1476 | 1470 | ||
1477 | The :ref:`kernel-module-split <ref-classes-kernel-module-split>` class provides common functionality for | 1471 | The :ref:`ref-classes-kernel-module-split` class provides common functionality for |
1478 | splitting Linux kernel modules into separate packages. | 1472 | splitting Linux kernel modules into separate packages. |
1479 | 1473 | ||
1480 | .. _ref-classes-kernel-uboot: | 1474 | .. _ref-classes-kernel-uboot: |
@@ -1482,7 +1476,7 @@ splitting Linux kernel modules into separate packages. | |||
1482 | ``kernel-uboot`` | 1476 | ``kernel-uboot`` |
1483 | ================ | 1477 | ================ |
1484 | 1478 | ||
1485 | The :ref:`kernel-uboot <ref-classes-kernel-uboot>` class provides support for building from | 1479 | The :ref:`ref-classes-kernel-uboot` class provides support for building from |
1486 | vmlinux-style kernel sources. | 1480 | vmlinux-style kernel sources. |
1487 | 1481 | ||
1488 | .. _ref-classes-kernel-uimage: | 1482 | .. _ref-classes-kernel-uimage: |
@@ -1490,14 +1484,14 @@ vmlinux-style kernel sources. | |||
1490 | ``kernel-uimage`` | 1484 | ``kernel-uimage`` |
1491 | ================= | 1485 | ================= |
1492 | 1486 | ||
1493 | The :ref:`kernel-uimage <ref-classes-kernel-uimage>` class provides support to pack uImage. | 1487 | The :ref:`ref-classes-kernel-uimage` class provides support to pack uImage. |
1494 | 1488 | ||
1495 | .. _ref-classes-kernel-yocto: | 1489 | .. _ref-classes-kernel-yocto: |
1496 | 1490 | ||
1497 | ``kernel-yocto`` | 1491 | ``kernel-yocto`` |
1498 | ================ | 1492 | ================ |
1499 | 1493 | ||
1500 | The :ref:`kernel-yocto <ref-classes-kernel-yocto>` class provides common functionality for building | 1494 | The :ref:`ref-classes-kernel-yocto` class provides common functionality for building |
1501 | from linux-yocto style kernel source repositories. | 1495 | from linux-yocto style kernel source repositories. |
1502 | 1496 | ||
1503 | .. _ref-classes-kernelsrc: | 1497 | .. _ref-classes-kernelsrc: |
@@ -1505,14 +1499,14 @@ from linux-yocto style kernel source repositories. | |||
1505 | ``kernelsrc`` | 1499 | ``kernelsrc`` |
1506 | ============= | 1500 | ============= |
1507 | 1501 | ||
1508 | The :ref:`kernelsrc <ref-classes-kernelsrc>` class sets the Linux kernel source and version. | 1502 | The :ref:`ref-classes-kernelsrc` class sets the Linux kernel source and version. |
1509 | 1503 | ||
1510 | .. _ref-classes-lib_package: | 1504 | .. _ref-classes-lib_package: |
1511 | 1505 | ||
1512 | ``lib_package`` | 1506 | ``lib_package`` |
1513 | =============== | 1507 | =============== |
1514 | 1508 | ||
1515 | The :ref:`lib_package <ref-classes-lib_package>` class supports recipes that build libraries and | 1509 | The :ref:`ref-classes-lib_package` class supports recipes that build libraries and |
1516 | produce executable binaries, where those binaries should not be | 1510 | produce executable binaries, where those binaries should not be |
1517 | installed by default along with the library. Instead, the binaries are | 1511 | installed by default along with the library. Instead, the binaries are |
1518 | added to a separate ``${``\ :term:`PN`\ ``}-bin`` package to | 1512 | added to a separate ``${``\ :term:`PN`\ ``}-bin`` package to |
@@ -1523,7 +1517,7 @@ make their installation optional. | |||
1523 | ``libc*`` | 1517 | ``libc*`` |
1524 | ========= | 1518 | ========= |
1525 | 1519 | ||
1526 | The :ref:`libc* <ref-classes-libc*>` classes support recipes that build packages with ``libc``: | 1520 | The :ref:`ref-classes-libc*` classes support recipes that build packages with ``libc``: |
1527 | 1521 | ||
1528 | - The :ref:`libc-common <ref-classes-libc*>` class provides common support for building with | 1522 | - The :ref:`libc-common <ref-classes-libc*>` class provides common support for building with |
1529 | ``libc``. | 1523 | ``libc``. |
@@ -1536,7 +1530,7 @@ The :ref:`libc* <ref-classes-libc*>` classes support recipes that build packages | |||
1536 | ``license`` | 1530 | ``license`` |
1537 | =========== | 1531 | =========== |
1538 | 1532 | ||
1539 | The :ref:`license <ref-classes-license>` class provides license manifest creation and license | 1533 | The :ref:`ref-classes-license` class provides license manifest creation and license |
1540 | exclusion. This class is enabled by default using the default value for | 1534 | exclusion. This class is enabled by default using the default value for |
1541 | the :term:`INHERIT_DISTRO` variable. | 1535 | the :term:`INHERIT_DISTRO` variable. |
1542 | 1536 | ||
@@ -1545,7 +1539,7 @@ the :term:`INHERIT_DISTRO` variable. | |||
1545 | ``linux-kernel-base`` | 1539 | ``linux-kernel-base`` |
1546 | ===================== | 1540 | ===================== |
1547 | 1541 | ||
1548 | The :ref:`linux-kernel-base <ref-classes-linux-kernel-base>` class provides common functionality for | 1542 | The :ref:`ref-classes-linux-kernel-base` class provides common functionality for |
1549 | recipes that build out of the Linux kernel source tree. These builds | 1543 | recipes that build out of the Linux kernel source tree. These builds |
1550 | goes beyond the kernel itself. For example, the Perf recipe also | 1544 | goes beyond the kernel itself. For example, the Perf recipe also |
1551 | inherits this class. | 1545 | inherits this class. |
@@ -1564,11 +1558,11 @@ number of other classes. | |||
1564 | ``logging`` | 1558 | ``logging`` |
1565 | =========== | 1559 | =========== |
1566 | 1560 | ||
1567 | The :ref:`logging <ref-classes-logging>` class provides the standard shell functions used to log | 1561 | The :ref:`ref-classes-logging` class provides the standard shell functions used to log |
1568 | messages for various BitBake severity levels (i.e. ``bbplain``, | 1562 | messages for various BitBake severity levels (i.e. ``bbplain``, |
1569 | ``bbnote``, ``bbwarn``, ``bberror``, ``bbfatal``, and ``bbdebug``). | 1563 | ``bbnote``, ``bbwarn``, ``bberror``, ``bbfatal``, and ``bbdebug``). |
1570 | 1564 | ||
1571 | This class is enabled by default since it is inherited by the :ref:`base <ref-classes-base>` | 1565 | This class is enabled by default since it is inherited by the :ref:`ref-classes-base` |
1572 | class. | 1566 | class. |
1573 | 1567 | ||
1574 | .. _ref-classes-metadata_scm: | 1568 | .. _ref-classes-metadata_scm: |
@@ -1576,20 +1570,20 @@ class. | |||
1576 | ``metadata_scm`` | 1570 | ``metadata_scm`` |
1577 | ================ | 1571 | ================ |
1578 | 1572 | ||
1579 | The :ref:`metadata_scm <ref-classes-metadata_scm>` class provides functionality for querying the | 1573 | The :ref:`ref-classes-metadata_scm` class provides functionality for querying the |
1580 | branch and revision of a Source Code Manager (SCM) repository. | 1574 | branch and revision of a Source Code Manager (SCM) repository. |
1581 | 1575 | ||
1582 | The :ref:`base <ref-classes-base>` class uses this class to print the | 1576 | The :ref:`ref-classes-base` class uses this class to print the revisions of |
1583 | revisions of each layer before starting every build. The | 1577 | each layer before starting every build. The :ref:`ref-classes-metadata_scm` |
1584 | :ref:`metadata_scm <ref-classes-metadata_scm>` class is enabled by default because it is inherited by | 1578 | class is enabled by default because it is inherited by the |
1585 | the :ref:`base <ref-classes-base>` class. | 1579 | :ref:`ref-classes-base` class. |
1586 | 1580 | ||
1587 | .. _ref-classes-migrate_localcount: | 1581 | .. _ref-classes-migrate_localcount: |
1588 | 1582 | ||
1589 | ``migrate_localcount`` | 1583 | ``migrate_localcount`` |
1590 | ====================== | 1584 | ====================== |
1591 | 1585 | ||
1592 | The :ref:`migrate_localcount <ref-classes-migrate_localcount>` class verifies a recipe's localcount data and | 1586 | The :ref:`ref-classes-migrate_localcount` class verifies a recipe's localcount data and |
1593 | increments it appropriately. | 1587 | increments it appropriately. |
1594 | 1588 | ||
1595 | .. _ref-classes-mime: | 1589 | .. _ref-classes-mime: |
@@ -1597,7 +1591,7 @@ increments it appropriately. | |||
1597 | ``mime`` | 1591 | ``mime`` |
1598 | ======== | 1592 | ======== |
1599 | 1593 | ||
1600 | The :ref:`mime <ref-classes-mime>` class generates the proper post-install and post-remove | 1594 | The :ref:`ref-classes-mime` class generates the proper post-install and post-remove |
1601 | (postinst/postrm) scriptlets for packages that install MIME type files. | 1595 | (postinst/postrm) scriptlets for packages that install MIME type files. |
1602 | These scriptlets call ``update-mime-database`` to add the MIME types to | 1596 | These scriptlets call ``update-mime-database`` to add the MIME types to |
1603 | the shared database. | 1597 | the shared database. |
@@ -1607,7 +1601,7 @@ the shared database. | |||
1607 | ``mime-xdg`` | 1601 | ``mime-xdg`` |
1608 | ============ | 1602 | ============ |
1609 | 1603 | ||
1610 | The :ref:`mime-xdg <ref-classes-mime-xdg>` class generates the proper | 1604 | The :ref:`ref-classes-mime-xdg` class generates the proper |
1611 | post-install and post-remove (postinst/postrm) scriptlets for packages | 1605 | post-install and post-remove (postinst/postrm) scriptlets for packages |
1612 | that install ``.desktop`` files containing ``MimeType`` entries. | 1606 | that install ``.desktop`` files containing ``MimeType`` entries. |
1613 | These scriptlets call ``update-desktop-database`` to add the MIME types | 1607 | These scriptlets call ``update-desktop-database`` to add the MIME types |
@@ -1628,25 +1622,23 @@ package names to the :term:`MIME_XDG_PACKAGES` variable. | |||
1628 | ``mirrors`` | 1622 | ``mirrors`` |
1629 | =========== | 1623 | =========== |
1630 | 1624 | ||
1631 | The :ref:`mirrors <ref-classes-mirrors>` class sets up some standard | 1625 | The :ref:`ref-classes-mirrors` class sets up some standard |
1632 | :term:`MIRRORS` entries for source code mirrors. These | 1626 | :term:`MIRRORS` entries for source code mirrors. These |
1633 | mirrors provide a fall-back path in case the upstream source specified | 1627 | mirrors provide a fall-back path in case the upstream source specified |
1634 | in :term:`SRC_URI` within recipes is unavailable. | 1628 | in :term:`SRC_URI` within recipes is unavailable. |
1635 | 1629 | ||
1636 | This class is enabled by default since it is inherited by the | 1630 | This class is enabled by default since it is inherited by the |
1637 | :ref:`base <ref-classes-base>` class. | 1631 | :ref:`ref-classes-base` class. |
1638 | 1632 | ||
1639 | .. _ref-classes-module: | 1633 | .. _ref-classes-module: |
1640 | 1634 | ||
1641 | ``module`` | 1635 | ``module`` |
1642 | ========== | 1636 | ========== |
1643 | 1637 | ||
1644 | The :ref:`module <ref-classes-module>` class provides support for building out-of-tree Linux | 1638 | The :ref:`ref-classes-module` class provides support for building out-of-tree Linux |
1645 | kernel modules. The class inherits the | 1639 | kernel modules. The class inherits the :ref:`ref-classes-module-base` and |
1646 | :ref:`module-base <ref-classes-module-base>` and | 1640 | :ref:`ref-classes-kernel-module-split` classes, and implements the |
1647 | :ref:`kernel-module-split <ref-classes-kernel-module-split>` classes, | 1641 | :ref:`ref-tasks-compile` and :ref:`ref-tasks-install` tasks. The class provides |
1648 | and implements the :ref:`ref-tasks-compile` and | ||
1649 | :ref:`ref-tasks-install` tasks. The class provides | ||
1650 | everything needed to build and package a kernel module. | 1642 | everything needed to build and package a kernel module. |
1651 | 1643 | ||
1652 | For general information on out-of-tree Linux kernel modules, see the | 1644 | For general information on out-of-tree Linux kernel modules, see the |
@@ -1658,18 +1650,18 @@ section in the Yocto Project Linux Kernel Development Manual. | |||
1658 | ``module-base`` | 1650 | ``module-base`` |
1659 | =============== | 1651 | =============== |
1660 | 1652 | ||
1661 | The :ref:`module-base <ref-classes-module-base>` class provides the base functionality for building | 1653 | The :ref:`ref-classes-module-base` class provides the base functionality for |
1662 | Linux kernel modules. Typically, a recipe that builds software that | 1654 | building Linux kernel modules. Typically, a recipe that builds software that |
1663 | includes one or more kernel modules and has its own means of building | 1655 | includes one or more kernel modules and has its own means of building the module |
1664 | the module inherits this class as opposed to inheriting the | 1656 | inherits this class as opposed to inheriting the :ref:`ref-classes-module` |
1665 | :ref:`module <ref-classes-module>` class. | 1657 | class. |
1666 | 1658 | ||
1667 | .. _ref-classes-multilib*: | 1659 | .. _ref-classes-multilib*: |
1668 | 1660 | ||
1669 | ``multilib*`` | 1661 | ``multilib*`` |
1670 | ============= | 1662 | ============= |
1671 | 1663 | ||
1672 | The :ref:`multilib* <ref-classes-multilib*>` classes provide support for building libraries with | 1664 | The :ref:`ref-classes-multilib*` classes provide support for building libraries with |
1673 | different target optimizations or target architectures and installing | 1665 | different target optimizations or target architectures and installing |
1674 | them side-by-side in the same image. | 1666 | them side-by-side in the same image. |
1675 | 1667 | ||
@@ -1682,17 +1674,17 @@ section in the Yocto Project Development Tasks Manual. | |||
1682 | ``native`` | 1674 | ``native`` |
1683 | ========== | 1675 | ========== |
1684 | 1676 | ||
1685 | The :ref:`native <ref-classes-native>` class provides common functionality for recipes that | 1677 | The :ref:`ref-classes-native` class provides common functionality for recipes that |
1686 | build tools to run on the :term:`Build Host` (i.e. tools that use the compiler | 1678 | build tools to run on the :term:`Build Host` (i.e. tools that use the compiler |
1687 | or other tools from the build host). | 1679 | or other tools from the build host). |
1688 | 1680 | ||
1689 | You can create a recipe that builds tools that run natively on the host | 1681 | You can create a recipe that builds tools that run natively on the host |
1690 | a couple different ways: | 1682 | a couple different ways: |
1691 | 1683 | ||
1692 | - Create a ``myrecipe-native.bb`` recipe that inherits the :ref:`native <ref-classes-native>` | 1684 | - Create a ``myrecipe-native.bb`` recipe that inherits the :ref:`ref-classes-native` |
1693 | class. If you use this method, you must order the inherit statement | 1685 | class. If you use this method, you must order the inherit statement |
1694 | in the recipe after all other inherit statements so that the | 1686 | in the recipe after all other inherit statements so that the |
1695 | :ref:`native <ref-classes-native>` class is inherited last. | 1687 | :ref:`ref-classes-native` class is inherited last. |
1696 | 1688 | ||
1697 | .. note:: | 1689 | .. note:: |
1698 | 1690 | ||
@@ -1714,7 +1706,7 @@ a couple different ways: | |||
1714 | specify any functionality specific to the respective native or target | 1706 | specify any functionality specific to the respective native or target |
1715 | case. | 1707 | case. |
1716 | 1708 | ||
1717 | Although applied differently, the :ref:`native <ref-classes-native>` class is used with both | 1709 | Although applied differently, the :ref:`ref-classes-native` class is used with both |
1718 | methods. The advantage of the second method is that you do not need to | 1710 | methods. The advantage of the second method is that you do not need to |
1719 | have two separate recipes (assuming you need both) for native and | 1711 | have two separate recipes (assuming you need both) for native and |
1720 | target. All common parts of the recipe are automatically shared. | 1712 | target. All common parts of the recipe are automatically shared. |
@@ -1724,7 +1716,7 @@ target. All common parts of the recipe are automatically shared. | |||
1724 | ``nativesdk`` | 1716 | ``nativesdk`` |
1725 | ============= | 1717 | ============= |
1726 | 1718 | ||
1727 | The :ref:`nativesdk <ref-classes-nativesdk>` class provides common functionality for recipes that | 1719 | The :ref:`ref-classes-nativesdk` class provides common functionality for recipes that |
1728 | wish to build tools to run as part of an SDK (i.e. tools that run on | 1720 | wish to build tools to run as part of an SDK (i.e. tools that run on |
1729 | :term:`SDKMACHINE`). | 1721 | :term:`SDKMACHINE`). |
1730 | 1722 | ||
@@ -1732,11 +1724,11 @@ You can create a recipe that builds tools that run on the SDK machine a | |||
1732 | couple different ways: | 1724 | couple different ways: |
1733 | 1725 | ||
1734 | - Create a ``nativesdk-myrecipe.bb`` recipe that inherits the | 1726 | - Create a ``nativesdk-myrecipe.bb`` recipe that inherits the |
1735 | :ref:`nativesdk <ref-classes-nativesdk>` class. If you use this method, you must order the | 1727 | :ref:`ref-classes-nativesdk` class. If you use this method, you must order the |
1736 | inherit statement in the recipe after all other inherit statements so | 1728 | inherit statement in the recipe after all other inherit statements so |
1737 | that the :ref:`nativesdk <ref-classes-nativesdk>` class is inherited last. | 1729 | that the :ref:`ref-classes-nativesdk` class is inherited last. |
1738 | 1730 | ||
1739 | - Create a :ref:`nativesdk <ref-classes-nativesdk>` variant of any recipe by adding the following:: | 1731 | - Create a :ref:`ref-classes-nativesdk` variant of any recipe by adding the following:: |
1740 | 1732 | ||
1741 | BBCLASSEXTEND = "nativesdk" | 1733 | BBCLASSEXTEND = "nativesdk" |
1742 | 1734 | ||
@@ -1755,7 +1747,7 @@ couple different ways: | |||
1755 | Not doing so can lead to subtle problems because there is code that | 1747 | Not doing so can lead to subtle problems because there is code that |
1756 | depends on the naming convention. | 1748 | depends on the naming convention. |
1757 | 1749 | ||
1758 | Although applied differently, the :ref:`nativesdk <ref-classes-nativesdk>` class is used with both | 1750 | Although applied differently, the :ref:`ref-classes-nativesdk` class is used with both |
1759 | methods. The advantage of the second method is that you do not need to | 1751 | methods. The advantage of the second method is that you do not need to |
1760 | have two separate recipes (assuming you need both) for the SDK machine | 1752 | have two separate recipes (assuming you need both) for the SDK machine |
1761 | and the target. All common parts of the recipe are automatically shared. | 1753 | and the target. All common parts of the recipe are automatically shared. |
@@ -1790,11 +1782,11 @@ section in the Yocto Project Development Tasks Manual. | |||
1790 | ``oelint`` | 1782 | ``oelint`` |
1791 | ========== | 1783 | ========== |
1792 | 1784 | ||
1793 | The :ref:`oelint <ref-classes-oelint>` class is an obsolete lint checking tool available in | 1785 | The :ref:`ref-classes-oelint` class is an obsolete lint checking tool available in |
1794 | ``meta/classes`` in the :term:`Source Directory`. | 1786 | ``meta/classes`` in the :term:`Source Directory`. |
1795 | 1787 | ||
1796 | There are some classes that could be generally useful in OE-Core but | 1788 | There are some classes that could be generally useful in OE-Core but |
1797 | are never actually used within OE-Core itself. The :ref:`oelint <ref-classes-oelint>` class is | 1789 | are never actually used within OE-Core itself. The :ref:`ref-classes-oelint` class is |
1798 | one such example. However, being aware of this class can reduce the | 1790 | one such example. However, being aware of this class can reduce the |
1799 | proliferation of different versions of similar classes across multiple | 1791 | proliferation of different versions of similar classes across multiple |
1800 | layers. | 1792 | layers. |
@@ -1808,7 +1800,7 @@ It's often desired in Embedded System design to have a read-only root filesystem | |||
1808 | But a lot of different applications might want to have read-write access to | 1800 | But a lot of different applications might want to have read-write access to |
1809 | some parts of a filesystem. It can be especially useful when your update mechanism | 1801 | some parts of a filesystem. It can be especially useful when your update mechanism |
1810 | overwrites the whole root filesystem, but you may want your application data to be preserved | 1802 | overwrites the whole root filesystem, but you may want your application data to be preserved |
1811 | between updates. The :ref:`overlayfs <ref-classes-overlayfs>` class provides a way | 1803 | between updates. The :ref:`ref-classes-overlayfs` class provides a way |
1812 | to achieve that by means of ``overlayfs`` and at the same time keeping the base | 1804 | to achieve that by means of ``overlayfs`` and at the same time keeping the base |
1813 | root filesystem read-only. | 1805 | root filesystem read-only. |
1814 | 1806 | ||
@@ -1848,7 +1840,7 @@ and then in your recipe:: | |||
1848 | On a practical note, your application recipe might require multiple | 1840 | On a practical note, your application recipe might require multiple |
1849 | overlays to be mounted before running to avoid writing to the underlying | 1841 | overlays to be mounted before running to avoid writing to the underlying |
1850 | file system (which can be forbidden in case of read-only file system) | 1842 | file system (which can be forbidden in case of read-only file system) |
1851 | To achieve that :ref:`overlayfs <ref-classes-overlayfs>` provides a ``systemd`` | 1843 | To achieve that :ref:`ref-classes-overlayfs` provides a ``systemd`` |
1852 | helper service for mounting overlays. This helper service is named | 1844 | helper service for mounting overlays. This helper service is named |
1853 | ``${PN}-overlays.service`` and can be depended on in your application recipe | 1845 | ``${PN}-overlays.service`` and can be depended on in your application recipe |
1854 | (named ``application`` in the following example) ``systemd`` unit by adding | 1846 | (named ``application`` in the following example) ``systemd`` unit by adding |
@@ -1861,7 +1853,7 @@ to the unit the following:: | |||
1861 | .. note:: | 1853 | .. note:: |
1862 | 1854 | ||
1863 | The class does not support the ``/etc`` directory itself, because ``systemd`` depends on it. | 1855 | The class does not support the ``/etc`` directory itself, because ``systemd`` depends on it. |
1864 | In order to get ``/etc`` in overlayfs, see :ref:`overlayfs-etc <ref-classes-overlayfs-etc>`. | 1856 | In order to get ``/etc`` in overlayfs, see :ref:`ref-classes-overlayfs-etc`. |
1865 | 1857 | ||
1866 | .. _ref-classes-overlayfs-etc: | 1858 | .. _ref-classes-overlayfs-etc: |
1867 | 1859 | ||
@@ -1913,7 +1905,7 @@ The class provides two options for ``/sbin/init`` generation: | |||
1913 | ``own-mirrors`` | 1905 | ``own-mirrors`` |
1914 | =============== | 1906 | =============== |
1915 | 1907 | ||
1916 | The :ref:`own-mirrors <ref-classes-own-mirrors>` class makes it easier to set up your own | 1908 | The :ref:`ref-classes-own-mirrors` class makes it easier to set up your own |
1917 | :term:`PREMIRRORS` from which to first fetch source | 1909 | :term:`PREMIRRORS` from which to first fetch source |
1918 | before attempting to fetch it from the upstream specified in | 1910 | before attempting to fetch it from the upstream specified in |
1919 | :term:`SRC_URI` within each recipe. | 1911 | :term:`SRC_URI` within each recipe. |
@@ -1932,18 +1924,16 @@ in :term:`SOURCE_MIRROR_URL`. | |||
1932 | ``package`` | 1924 | ``package`` |
1933 | =========== | 1925 | =========== |
1934 | 1926 | ||
1935 | The :ref:`package <ref-classes-package>` class supports generating packages from a build's | 1927 | The :ref:`ref-classes-package` class supports generating packages from a build's |
1936 | output. The core generic functionality is in ``package.bbclass``. The | 1928 | output. The core generic functionality is in ``package.bbclass``. The |
1937 | code specific to particular package types resides in these | 1929 | code specific to particular package types resides in these |
1938 | package-specific classes: | 1930 | package-specific classes: :ref:`ref-classes-package_deb`, |
1939 | :ref:`package_deb <ref-classes-package_deb>`, | 1931 | :ref:`ref-classes-package_rpm`, :ref:`ref-classes-package_ipk`, and |
1940 | :ref:`package_rpm <ref-classes-package_rpm>`, | 1932 | :ref:`ref-classes-package_tar`. |
1941 | :ref:`package_ipk <ref-classes-package_ipk>`, and | ||
1942 | :ref:`package_tar <ref-classes-package_tar>`. | ||
1943 | 1933 | ||
1944 | .. note:: | 1934 | .. note:: |
1945 | 1935 | ||
1946 | The :ref:`package_tar <ref-classes-package_tar>` class is broken and | 1936 | The :ref:`ref-classes-package_tar` class is broken and |
1947 | not supported. It is recommended that you do not use this class. | 1937 | not supported. It is recommended that you do not use this class. |
1948 | 1938 | ||
1949 | You can control the list of resulting package formats by using the | 1939 | You can control the list of resulting package formats by using the |
@@ -1969,7 +1959,7 @@ complete build of the package with all dependencies previously built. | |||
1969 | The reason for this discrepancy is because the RPM package manager | 1959 | The reason for this discrepancy is because the RPM package manager |
1970 | creates and processes more :term:`Metadata` than the IPK package | 1960 | creates and processes more :term:`Metadata` than the IPK package |
1971 | manager. Consequently, you might consider setting :term:`PACKAGE_CLASSES` to | 1961 | manager. Consequently, you might consider setting :term:`PACKAGE_CLASSES` to |
1972 | ":ref:`package_ipk <ref-classes-package_ipk>`" if you are building smaller systems. | 1962 | ":ref:`ref-classes-package_ipk`" if you are building smaller systems. |
1973 | 1963 | ||
1974 | Before making your package manager decision, however, you should | 1964 | Before making your package manager decision, however, you should |
1975 | consider some further things about using RPM: | 1965 | consider some further things about using RPM: |
@@ -1997,12 +1987,12 @@ at these two Yocto Project mailing list links: | |||
1997 | ``package_deb`` | 1987 | ``package_deb`` |
1998 | =============== | 1988 | =============== |
1999 | 1989 | ||
2000 | The :ref:`package_deb <ref-classes-package_deb>` class provides support for creating packages that | 1990 | The :ref:`ref-classes-package_deb` class provides support for creating packages that |
2001 | use the Debian (i.e. ``.deb``) file format. The class ensures the | 1991 | use the Debian (i.e. ``.deb``) file format. The class ensures the |
2002 | packages are written out in a ``.deb`` file format to the | 1992 | packages are written out in a ``.deb`` file format to the |
2003 | ``${``\ :term:`DEPLOY_DIR_DEB`\ ``}`` directory. | 1993 | ``${``\ :term:`DEPLOY_DIR_DEB`\ ``}`` directory. |
2004 | 1994 | ||
2005 | This class inherits the :ref:`package <ref-classes-package>` class and | 1995 | This class inherits the :ref:`ref-classes-package` class and |
2006 | is enabled through the :term:`PACKAGE_CLASSES` | 1996 | is enabled through the :term:`PACKAGE_CLASSES` |
2007 | variable in the ``local.conf`` file. | 1997 | variable in the ``local.conf`` file. |
2008 | 1998 | ||
@@ -2011,12 +2001,12 @@ variable in the ``local.conf`` file. | |||
2011 | ``package_ipk`` | 2001 | ``package_ipk`` |
2012 | =============== | 2002 | =============== |
2013 | 2003 | ||
2014 | The :ref:`package_ipk <ref-classes-package_ipk>` class provides support for creating packages that | 2004 | The :ref:`ref-classes-package_ipk` class provides support for creating packages that |
2015 | use the IPK (i.e. ``.ipk``) file format. The class ensures the packages | 2005 | use the IPK (i.e. ``.ipk``) file format. The class ensures the packages |
2016 | are written out in a ``.ipk`` file format to the | 2006 | are written out in a ``.ipk`` file format to the |
2017 | ``${``\ :term:`DEPLOY_DIR_IPK`\ ``}`` directory. | 2007 | ``${``\ :term:`DEPLOY_DIR_IPK`\ ``}`` directory. |
2018 | 2008 | ||
2019 | This class inherits the :ref:`package <ref-classes-package>` class and | 2009 | This class inherits the :ref:`ref-classes-package` class and |
2020 | is enabled through the :term:`PACKAGE_CLASSES` | 2010 | is enabled through the :term:`PACKAGE_CLASSES` |
2021 | variable in the ``local.conf`` file. | 2011 | variable in the ``local.conf`` file. |
2022 | 2012 | ||
@@ -2025,12 +2015,12 @@ variable in the ``local.conf`` file. | |||
2025 | ``package_rpm`` | 2015 | ``package_rpm`` |
2026 | =============== | 2016 | =============== |
2027 | 2017 | ||
2028 | The :ref:`package_rpm <ref-classes-package_rpm>` class provides support for creating packages that | 2018 | The :ref:`ref-classes-package_rpm` class provides support for creating packages that |
2029 | use the RPM (i.e. ``.rpm``) file format. The class ensures the packages | 2019 | use the RPM (i.e. ``.rpm``) file format. The class ensures the packages |
2030 | are written out in a ``.rpm`` file format to the | 2020 | are written out in a ``.rpm`` file format to the |
2031 | ``${``\ :term:`DEPLOY_DIR_RPM`\ ``}`` directory. | 2021 | ``${``\ :term:`DEPLOY_DIR_RPM`\ ``}`` directory. |
2032 | 2022 | ||
2033 | This class inherits the :ref:`package <ref-classes-package>` class and | 2023 | This class inherits the :ref:`ref-classes-package` class and |
2034 | is enabled through the :term:`PACKAGE_CLASSES` | 2024 | is enabled through the :term:`PACKAGE_CLASSES` |
2035 | variable in the ``local.conf`` file. | 2025 | variable in the ``local.conf`` file. |
2036 | 2026 | ||
@@ -2039,17 +2029,17 @@ variable in the ``local.conf`` file. | |||
2039 | ``package_tar`` | 2029 | ``package_tar`` |
2040 | =============== | 2030 | =============== |
2041 | 2031 | ||
2042 | The :ref:`package_tar <ref-classes-package_tar>` class provides support for creating tarballs. The | 2032 | The :ref:`ref-classes-package_tar` class provides support for creating tarballs. The |
2043 | class ensures the packages are written out in a tarball format to the | 2033 | class ensures the packages are written out in a tarball format to the |
2044 | ``${``\ :term:`DEPLOY_DIR_TAR`\ ``}`` directory. | 2034 | ``${``\ :term:`DEPLOY_DIR_TAR`\ ``}`` directory. |
2045 | 2035 | ||
2046 | This class inherits the :ref:`package <ref-classes-package>` class and | 2036 | This class inherits the :ref:`ref-classes-package` class and |
2047 | is enabled through the :term:`PACKAGE_CLASSES` | 2037 | is enabled through the :term:`PACKAGE_CLASSES` |
2048 | variable in the ``local.conf`` file. | 2038 | variable in the ``local.conf`` file. |
2049 | 2039 | ||
2050 | .. note:: | 2040 | .. note:: |
2051 | 2041 | ||
2052 | You cannot specify the :ref:`package_tar <ref-classes-package_tar>` class first using the | 2042 | You cannot specify the :ref:`ref-classes-package_tar` class first using the |
2053 | :term:`PACKAGE_CLASSES` variable. You must use ``.deb``, ``.ipk``, or ``.rpm`` | 2043 | :term:`PACKAGE_CLASSES` variable. You must use ``.deb``, ``.ipk``, or ``.rpm`` |
2054 | file formats for your image or SDK. | 2044 | file formats for your image or SDK. |
2055 | 2045 | ||
@@ -2058,20 +2048,20 @@ variable in the ``local.conf`` file. | |||
2058 | ``packagedata`` | 2048 | ``packagedata`` |
2059 | =============== | 2049 | =============== |
2060 | 2050 | ||
2061 | The :ref:`packagedata <ref-classes-packagedata>` class provides common functionality for reading | 2051 | The :ref:`ref-classes-packagedata` class provides common functionality for reading |
2062 | ``pkgdata`` files found in :term:`PKGDATA_DIR`. These | 2052 | ``pkgdata`` files found in :term:`PKGDATA_DIR`. These |
2063 | files contain information about each output package produced by the | 2053 | files contain information about each output package produced by the |
2064 | OpenEmbedded build system. | 2054 | OpenEmbedded build system. |
2065 | 2055 | ||
2066 | This class is enabled by default because it is inherited by the | 2056 | This class is enabled by default because it is inherited by the |
2067 | :ref:`package <ref-classes-package>` class. | 2057 | :ref:`ref-classes-package` class. |
2068 | 2058 | ||
2069 | .. _ref-classes-packagegroup: | 2059 | .. _ref-classes-packagegroup: |
2070 | 2060 | ||
2071 | ``packagegroup`` | 2061 | ``packagegroup`` |
2072 | ================ | 2062 | ================ |
2073 | 2063 | ||
2074 | The :ref:`packagegroup <ref-classes-packagegroup>` class sets default values appropriate for package | 2064 | The :ref:`ref-classes-packagegroup` class sets default values appropriate for package |
2075 | group recipes (e.g. :term:`PACKAGES`, :term:`PACKAGE_ARCH`, :term:`ALLOW_EMPTY`, and | 2065 | group recipes (e.g. :term:`PACKAGES`, :term:`PACKAGE_ARCH`, :term:`ALLOW_EMPTY`, and |
2076 | so forth). It is highly recommended that all package group recipes | 2066 | so forth). It is highly recommended that all package group recipes |
2077 | inherit this class. | 2067 | inherit this class. |
@@ -2087,18 +2077,18 @@ Previously, this class was called the ``task`` class. | |||
2087 | ``patch`` | 2077 | ``patch`` |
2088 | ========= | 2078 | ========= |
2089 | 2079 | ||
2090 | The :ref:`patch <ref-classes-patch>` class provides all functionality for applying patches | 2080 | The :ref:`ref-classes-patch` class provides all functionality for applying patches |
2091 | during the :ref:`ref-tasks-patch` task. | 2081 | during the :ref:`ref-tasks-patch` task. |
2092 | 2082 | ||
2093 | This class is enabled by default because it is inherited by the | 2083 | This class is enabled by default because it is inherited by the |
2094 | :ref:`base <ref-classes-base>` class. | 2084 | :ref:`ref-classes-base` class. |
2095 | 2085 | ||
2096 | .. _ref-classes-perlnative: | 2086 | .. _ref-classes-perlnative: |
2097 | 2087 | ||
2098 | ``perlnative`` | 2088 | ``perlnative`` |
2099 | ============== | 2089 | ============== |
2100 | 2090 | ||
2101 | When inherited by a recipe, the :ref:`perlnative <ref-classes-perlnative>` class supports using the | 2091 | When inherited by a recipe, the :ref:`ref-classes-perlnative` class supports using the |
2102 | native version of Perl built by the build system rather than using the | 2092 | native version of Perl built by the build system rather than using the |
2103 | version provided by the build host. | 2093 | version provided by the build host. |
2104 | 2094 | ||
@@ -2107,14 +2097,14 @@ version provided by the build host. | |||
2107 | ``pypi`` | 2097 | ``pypi`` |
2108 | ======== | 2098 | ======== |
2109 | 2099 | ||
2110 | The :ref:`pypi <ref-classes-pypi>` class sets variables appropriately for recipes that build | 2100 | The :ref:`ref-classes-pypi` class sets variables appropriately for recipes that build |
2111 | Python modules from `PyPI <https://pypi.org/>`__, the Python Package Index. | 2101 | Python modules from `PyPI <https://pypi.org/>`__, the Python Package Index. |
2112 | By default it determines the PyPI package name based upon :term:`BPN` | 2102 | By default it determines the PyPI package name based upon :term:`BPN` |
2113 | (stripping the "python-" or "python3-" prefix off if present), however in | 2103 | (stripping the "python-" or "python3-" prefix off if present), however in |
2114 | some cases you may need to set it manually in the recipe by setting | 2104 | some cases you may need to set it manually in the recipe by setting |
2115 | :term:`PYPI_PACKAGE`. | 2105 | :term:`PYPI_PACKAGE`. |
2116 | 2106 | ||
2117 | Variables set by the :ref:`pypi <ref-classes-pypi>` class include :term:`SRC_URI`, :term:`SECTION`, | 2107 | Variables set by the :ref:`ref-classes-pypi` class include :term:`SRC_URI`, :term:`SECTION`, |
2118 | :term:`HOMEPAGE`, :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX` | 2108 | :term:`HOMEPAGE`, :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX` |
2119 | and :term:`CVE_PRODUCT`. | 2109 | and :term:`CVE_PRODUCT`. |
2120 | 2110 | ||
@@ -2123,7 +2113,7 @@ and :term:`CVE_PRODUCT`. | |||
2123 | ``python_flit_core`` | 2113 | ``python_flit_core`` |
2124 | ==================== | 2114 | ==================== |
2125 | 2115 | ||
2126 | The :ref:`python_flit_core <ref-classes-python_flit_core>` class enables building Python modules which declare | 2116 | The :ref:`ref-classes-python_flit_core` class enables building Python modules which declare |
2127 | the `PEP-517 <https://www.python.org/dev/peps/pep-0517/>`__ compliant | 2117 | the `PEP-517 <https://www.python.org/dev/peps/pep-0517/>`__ compliant |
2128 | ``flit_core.buildapi`` ``build-backend`` in the ``[build-system]`` | 2118 | ``flit_core.buildapi`` ``build-backend`` in the ``[build-system]`` |
2129 | section of ``pyproject.toml`` (See `PEP-518 <https://www.python.org/dev/peps/pep-0518/>`__). | 2119 | section of ``pyproject.toml`` (See `PEP-518 <https://www.python.org/dev/peps/pep-0518/>`__). |
@@ -2131,40 +2121,39 @@ section of ``pyproject.toml`` (See `PEP-518 <https://www.python.org/dev/peps/pep | |||
2131 | Python modules built with ``flit_core.buildapi`` are pure Python (no | 2121 | Python modules built with ``flit_core.buildapi`` are pure Python (no |
2132 | ``C`` or ``Rust`` extensions). | 2122 | ``C`` or ``Rust`` extensions). |
2133 | 2123 | ||
2134 | Internally this uses the :ref:`python_pep517 <ref-classes-python_pep517>` class. | 2124 | Internally this uses the :ref:`ref-classes-python_pep517` class. |
2135 | 2125 | ||
2136 | .. _ref-classes-python_pep517: | 2126 | .. _ref-classes-python_pep517: |
2137 | 2127 | ||
2138 | ``python_pep517`` | 2128 | ``python_pep517`` |
2139 | ================= | 2129 | ================= |
2140 | 2130 | ||
2141 | The :ref:`python_pep517 <ref-classes-python_pep517>` class builds and installs a Python ``wheel`` binary | 2131 | The :ref:`ref-classes-python_pep517` class builds and installs a Python ``wheel`` binary |
2142 | archive (see `PEP-517 <https://peps.python.org/pep-0517/>`__). | 2132 | archive (see `PEP-517 <https://peps.python.org/pep-0517/>`__). |
2143 | 2133 | ||
2144 | Recipes wouldn't inherit this directly, instead typically another class will | 2134 | Recipes wouldn't inherit this directly, instead typically another class will |
2145 | inherit this and add the relevant native dependencies. | 2135 | inherit this and add the relevant native dependencies. |
2146 | 2136 | ||
2147 | Examples of classes which do this are :ref:`python_flit_core | 2137 | Examples of classes which do this are :ref:`ref-classes-python_flit_core`, |
2148 | <ref-classes-python_flit_core>`, :ref:`python_setuptools_build_meta | 2138 | :ref:`ref-classes-python_setuptools_build_meta`, and |
2149 | <ref-classes-python_setuptools_build_meta>`, and :ref:`python_poetry_core | 2139 | :ref:`ref-classes-python_poetry_core`. |
2150 | <ref-classes-python_poetry_core>`. | ||
2151 | 2140 | ||
2152 | .. _ref-classes-python_poetry_core: | 2141 | .. _ref-classes-python_poetry_core: |
2153 | 2142 | ||
2154 | ``python_poetry_core`` | 2143 | ``python_poetry_core`` |
2155 | ====================== | 2144 | ====================== |
2156 | 2145 | ||
2157 | The :ref:`python_poetry_core <ref-classes-python_poetry_core>` class enables building Python modules which use the | 2146 | The :ref:`ref-classes-python_poetry_core` class enables building Python modules which use the |
2158 | `Poetry Core <https://python-poetry.org>`__ build system. | 2147 | `Poetry Core <https://python-poetry.org>`__ build system. |
2159 | 2148 | ||
2160 | Internally this uses the :ref:`python_pep517 <ref-classes-python_pep517>` class. | 2149 | Internally this uses the :ref:`ref-classes-python_pep517` class. |
2161 | 2150 | ||
2162 | .. _ref-classes-pixbufcache: | 2151 | .. _ref-classes-pixbufcache: |
2163 | 2152 | ||
2164 | ``pixbufcache`` | 2153 | ``pixbufcache`` |
2165 | =============== | 2154 | =============== |
2166 | 2155 | ||
2167 | The :ref:`pixbufcache <ref-classes-pixbufcache>` class generates the proper post-install and | 2156 | The :ref:`ref-classes-pixbufcache` class generates the proper post-install and |
2168 | post-remove (postinst/postrm) scriptlets for packages that install | 2157 | post-remove (postinst/postrm) scriptlets for packages that install |
2169 | pixbuf loaders, which are used with ``gdk-pixbuf``. These scriptlets | 2158 | pixbuf loaders, which are used with ``gdk-pixbuf``. These scriptlets |
2170 | call ``update_pixbuf_cache`` to add the pixbuf loaders to the cache. | 2159 | call ``update_pixbuf_cache`` to add the pixbuf loaders to the cache. |
@@ -2182,13 +2171,13 @@ containing the loaders. | |||
2182 | ``pkgconfig`` | 2171 | ``pkgconfig`` |
2183 | ============= | 2172 | ============= |
2184 | 2173 | ||
2185 | The :ref:`pkgconfig <ref-classes-pkgconfig>` class provides a standard way to get header and | 2174 | The :ref:`ref-classes-pkgconfig` class provides a standard way to get header and |
2186 | library information by using ``pkg-config``. This class aims to smooth | 2175 | library information by using ``pkg-config``. This class aims to smooth |
2187 | integration of ``pkg-config`` into libraries that use it. | 2176 | integration of ``pkg-config`` into libraries that use it. |
2188 | 2177 | ||
2189 | During staging, BitBake installs ``pkg-config`` data into the | 2178 | During staging, BitBake installs ``pkg-config`` data into the |
2190 | ``sysroots/`` directory. By making use of sysroot functionality within | 2179 | ``sysroots/`` directory. By making use of sysroot functionality within |
2191 | ``pkg-config``, the :ref:`pkgconfig <ref-classes-pkgconfig>` class no longer has to manipulate the | 2180 | ``pkg-config``, the :ref:`ref-classes-pkgconfig` class no longer has to manipulate the |
2192 | files. | 2181 | files. |
2193 | 2182 | ||
2194 | .. _ref-classes-populate-sdk: | 2183 | .. _ref-classes-populate-sdk: |
@@ -2196,7 +2185,7 @@ files. | |||
2196 | ``populate_sdk`` | 2185 | ``populate_sdk`` |
2197 | ================ | 2186 | ================ |
2198 | 2187 | ||
2199 | The :ref:`populate_sdk <ref-classes-populate-sdk>` class provides support for SDK-only recipes. For | 2188 | The :ref:`ref-classes-populate-sdk` class provides support for SDK-only recipes. For |
2200 | information on advantages gained when building a cross-development | 2189 | information on advantages gained when building a cross-development |
2201 | toolchain using the :ref:`ref-tasks-populate_sdk` | 2190 | toolchain using the :ref:`ref-tasks-populate_sdk` |
2202 | task, see the ":ref:`sdk-manual/appendix-obtain:building an sdk installer`" | 2191 | task, see the ":ref:`sdk-manual/appendix-obtain:building an sdk installer`" |
@@ -2208,7 +2197,7 @@ Software Development Kit (eSDK) manual. | |||
2208 | ``populate_sdk_*`` | 2197 | ``populate_sdk_*`` |
2209 | ================== | 2198 | ================== |
2210 | 2199 | ||
2211 | The :ref:`populate_sdk_* <ref-classes-populate-sdk-*>` classes support SDK creation and consist of the | 2200 | The :ref:`ref-classes-populate-sdk-*` classes support SDK creation and consist of the |
2212 | following classes: | 2201 | following classes: |
2213 | 2202 | ||
2214 | - :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`: The base class supporting SDK creation under | 2203 | - :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`: The base class supporting SDK creation under |
@@ -2265,7 +2254,7 @@ Software Development Kit (eSDK) manual. | |||
2265 | ``prexport`` | 2254 | ``prexport`` |
2266 | ============ | 2255 | ============ |
2267 | 2256 | ||
2268 | The :ref:`prexport <ref-classes-prexport>` class provides functionality for exporting | 2257 | The :ref:`ref-classes-prexport` class provides functionality for exporting |
2269 | :term:`PR` values. | 2258 | :term:`PR` values. |
2270 | 2259 | ||
2271 | .. note:: | 2260 | .. note:: |
@@ -2278,7 +2267,7 @@ The :ref:`prexport <ref-classes-prexport>` class provides functionality for expo | |||
2278 | ``primport`` | 2267 | ``primport`` |
2279 | ============ | 2268 | ============ |
2280 | 2269 | ||
2281 | The :ref:`primport <ref-classes-primport>` class provides functionality for importing | 2270 | The :ref:`ref-classes-primport` class provides functionality for importing |
2282 | :term:`PR` values. | 2271 | :term:`PR` values. |
2283 | 2272 | ||
2284 | .. note:: | 2273 | .. note:: |
@@ -2291,13 +2280,13 @@ The :ref:`primport <ref-classes-primport>` class provides functionality for impo | |||
2291 | ``prserv`` | 2280 | ``prserv`` |
2292 | ========== | 2281 | ========== |
2293 | 2282 | ||
2294 | The :ref:`prserv <ref-classes-prserv>` class provides functionality for using a :ref:`PR | 2283 | The :ref:`ref-classes-prserv` class provides functionality for using a :ref:`PR |
2295 | service <dev-manual/packages:working with a pr service>` in order to | 2284 | service <dev-manual/packages:working with a pr service>` in order to |
2296 | automatically manage the incrementing of the :term:`PR` | 2285 | automatically manage the incrementing of the :term:`PR` |
2297 | variable for each recipe. | 2286 | variable for each recipe. |
2298 | 2287 | ||
2299 | This class is enabled by default because it is inherited by the | 2288 | This class is enabled by default because it is inherited by the |
2300 | :ref:`package <ref-classes-package>` class. However, the OpenEmbedded | 2289 | :ref:`ref-classes-package` class. However, the OpenEmbedded |
2301 | build system will not enable the functionality of this class unless | 2290 | build system will not enable the functionality of this class unless |
2302 | :term:`PRSERV_HOST` has been set. | 2291 | :term:`PRSERV_HOST` has been set. |
2303 | 2292 | ||
@@ -2306,7 +2295,7 @@ build system will not enable the functionality of this class unless | |||
2306 | ``ptest`` | 2295 | ``ptest`` |
2307 | ========= | 2296 | ========= |
2308 | 2297 | ||
2309 | The :ref:`ptest <ref-classes-ptest>` class provides functionality for packaging and installing | 2298 | The :ref:`ref-classes-ptest` class provides functionality for packaging and installing |
2310 | runtime tests for recipes that build software that provides these tests. | 2299 | runtime tests for recipes that build software that provides these tests. |
2311 | 2300 | ||
2312 | This class is intended to be inherited by individual recipes. However, | 2301 | This class is intended to be inherited by individual recipes. However, |
@@ -2333,7 +2322,7 @@ section in the Yocto Project Development Tasks Manual. | |||
2333 | ``python3-dir`` | 2322 | ``python3-dir`` |
2334 | =============== | 2323 | =============== |
2335 | 2324 | ||
2336 | The :ref:`python3-dir <ref-classes-python3-dir>` class provides the base version, location, and site | 2325 | The :ref:`ref-classes-python3-dir` class provides the base version, location, and site |
2337 | package location for Python 3. | 2326 | package location for Python 3. |
2338 | 2327 | ||
2339 | .. _ref-classes-python3native: | 2328 | .. _ref-classes-python3native: |
@@ -2341,7 +2330,7 @@ package location for Python 3. | |||
2341 | ``python3native`` | 2330 | ``python3native`` |
2342 | ================= | 2331 | ================= |
2343 | 2332 | ||
2344 | The :ref:`python3native <ref-classes-python3native>` class supports using the native version of Python | 2333 | The :ref:`ref-classes-python3native` class supports using the native version of Python |
2345 | 3 built by the build system rather than support of the version provided | 2334 | 3 built by the build system rather than support of the version provided |
2346 | by the build host. | 2335 | by the build host. |
2347 | 2336 | ||
@@ -2350,7 +2339,7 @@ by the build host. | |||
2350 | ``python3targetconfig`` | 2339 | ``python3targetconfig`` |
2351 | ======================= | 2340 | ======================= |
2352 | 2341 | ||
2353 | The :ref:`python3targetconfig <ref-classes-python3targetconfig>` class supports using the native version of Python | 2342 | The :ref:`ref-classes-python3targetconfig` class supports using the native version of Python |
2354 | 3 built by the build system rather than support of the version provided | 2343 | 3 built by the build system rather than support of the version provided |
2355 | by the build host, except that the configuration for the target machine | 2344 | by the build host, except that the configuration for the target machine |
2356 | is accessible (such as correct installation directories). This also adds a | 2345 | is accessible (such as correct installation directories). This also adds a |
@@ -2362,7 +2351,7 @@ in order to avoid unnecessarily lengthening builds. | |||
2362 | ``qemu`` | 2351 | ``qemu`` |
2363 | ======== | 2352 | ======== |
2364 | 2353 | ||
2365 | The :ref:`qemu <ref-classes-qemu>` class provides functionality for recipes that either need | 2354 | The :ref:`ref-classes-qemu` class provides functionality for recipes that either need |
2366 | QEMU or test for the existence of QEMU. Typically, this class is used to | 2355 | QEMU or test for the existence of QEMU. Typically, this class is used to |
2367 | run programs for a target system on the build host using QEMU's | 2356 | run programs for a target system on the build host using QEMU's |
2368 | application emulation mode. | 2357 | application emulation mode. |
@@ -2372,7 +2361,7 @@ application emulation mode. | |||
2372 | ``recipe_sanity`` | 2361 | ``recipe_sanity`` |
2373 | ================= | 2362 | ================= |
2374 | 2363 | ||
2375 | The :ref:`recipe_sanity <ref-classes-recipe_sanity>` class checks for the presence of any host system | 2364 | The :ref:`ref-classes-recipe_sanity` class checks for the presence of any host system |
2376 | recipe prerequisites that might affect the build (e.g. variables that | 2365 | recipe prerequisites that might affect the build (e.g. variables that |
2377 | are set or software that is present). | 2366 | are set or software that is present). |
2378 | 2367 | ||
@@ -2381,19 +2370,18 @@ are set or software that is present). | |||
2381 | ``relocatable`` | 2370 | ``relocatable`` |
2382 | =============== | 2371 | =============== |
2383 | 2372 | ||
2384 | The :ref:`relocatable <ref-classes-relocatable>` class enables relocation of binaries when they are | 2373 | The :ref:`ref-classes-relocatable` class enables relocation of binaries when they are |
2385 | installed into the sysroot. | 2374 | installed into the sysroot. |
2386 | 2375 | ||
2387 | This class makes use of the :ref:`chrpath <ref-classes-chrpath>` class | 2376 | This class makes use of the :ref:`ref-classes-chrpath` class and is used by |
2388 | and is used by both the :ref:`cross <ref-classes-cross>` and | 2377 | both the :ref:`ref-classes-cross` and :ref:`ref-classes-native` classes. |
2389 | :ref:`native <ref-classes-native>` classes. | ||
2390 | 2378 | ||
2391 | .. _ref-classes-remove-libtool: | 2379 | .. _ref-classes-remove-libtool: |
2392 | 2380 | ||
2393 | ``remove-libtool`` | 2381 | ``remove-libtool`` |
2394 | ================== | 2382 | ================== |
2395 | 2383 | ||
2396 | The :ref:`remove-libtool <ref-classes-remove-libtool>` class adds a post function to the | 2384 | The :ref:`ref-classes-remove-libtool` class adds a post function to the |
2397 | :ref:`ref-tasks-install` task to remove all ``.la`` files | 2385 | :ref:`ref-tasks-install` task to remove all ``.la`` files |
2398 | installed by ``libtool``. Removing these files results in them being | 2386 | installed by ``libtool``. Removing these files results in them being |
2399 | absent from both the sysroot and target packages. | 2387 | absent from both the sysroot and target packages. |
@@ -2405,14 +2393,14 @@ override the removal by setting ``REMOVE_LIBTOOL_LA`` to "0" as follows:: | |||
2405 | 2393 | ||
2406 | .. note:: | 2394 | .. note:: |
2407 | 2395 | ||
2408 | The :ref:`remove-libtool <ref-classes-remove-libtool>` class is not enabled by default. | 2396 | The :ref:`ref-classes-remove-libtool` class is not enabled by default. |
2409 | 2397 | ||
2410 | .. _ref-classes-report-error: | 2398 | .. _ref-classes-report-error: |
2411 | 2399 | ||
2412 | ``report-error`` | 2400 | ``report-error`` |
2413 | ================ | 2401 | ================ |
2414 | 2402 | ||
2415 | The :ref:`report-error <ref-classes-report-error>` class supports enabling the :ref:`error reporting | 2403 | The :ref:`ref-classes-report-error` class supports enabling the :ref:`error reporting |
2416 | tool <dev-manual/error-reporting-tool:using the error reporting tool>`", | 2404 | tool <dev-manual/error-reporting-tool:using the error reporting tool>`", |
2417 | which allows you to submit build error information to a central database. | 2405 | which allows you to submit build error information to a central database. |
2418 | 2406 | ||
@@ -2427,7 +2415,7 @@ are created and stored in | |||
2427 | ``rm_work`` | 2415 | ``rm_work`` |
2428 | =========== | 2416 | =========== |
2429 | 2417 | ||
2430 | The :ref:`rm_work <ref-classes-rm-work>` class supports deletion of temporary workspace, which | 2418 | The :ref:`ref-classes-rm-work` class supports deletion of temporary workspace, which |
2431 | can ease your hard drive demands during builds. | 2419 | can ease your hard drive demands during builds. |
2432 | 2420 | ||
2433 | The OpenEmbedded build system can use a substantial amount of disk space | 2421 | The OpenEmbedded build system can use a substantial amount of disk space |
@@ -2436,19 +2424,18 @@ under the ``${TMPDIR}/work`` directory for each recipe. Once the build | |||
2436 | system generates the packages for a recipe, the work files for that | 2424 | system generates the packages for a recipe, the work files for that |
2437 | recipe are no longer needed. However, by default, the build system | 2425 | recipe are no longer needed. However, by default, the build system |
2438 | preserves these files for inspection and possible debugging purposes. If | 2426 | preserves these files for inspection and possible debugging purposes. If |
2439 | you would rather have these files deleted to save disk space as the | 2427 | you would rather have these files deleted to save disk space as the build |
2440 | build progresses, you can enable :ref:`rm_work <ref-classes-rm-work>` by adding the following to | 2428 | progresses, you can enable :ref:`ref-classes-rm-work` by adding the following to |
2441 | your ``local.conf`` file, which is found in the :term:`Build Directory`:: | 2429 | your ``local.conf`` file, which is found in the :term:`Build Directory`:: |
2442 | 2430 | ||
2443 | INHERIT += "rm_work" | 2431 | INHERIT += "rm_work" |
2444 | 2432 | ||
2445 | If you are | 2433 | If you are modifying and building source code out of the work directory for a |
2446 | modifying and building source code out of the work directory for a | 2434 | recipe, enabling :ref:`ref-classes-rm-work` will potentially result in your |
2447 | recipe, enabling :ref:`rm_work <ref-classes-rm-work>` will potentially result in your changes to | 2435 | changes to the source being lost. To exclude some recipes from having their work |
2448 | the source being lost. To exclude some recipes from having their work | 2436 | directories deleted by :ref:`ref-classes-rm-work`, you can add the names of the |
2449 | directories deleted by :ref:`rm_work <ref-classes-rm-work>`, you can add the names of the recipe | 2437 | recipe or recipes you are working on to the :term:`RM_WORK_EXCLUDE` variable, |
2450 | or recipes you are working on to the :term:`RM_WORK_EXCLUDE` variable, which | 2438 | which can also be set in your ``local.conf`` file. Here is an example:: |
2451 | can also be set in your ``local.conf`` file. Here is an example:: | ||
2452 | 2439 | ||
2453 | RM_WORK_EXCLUDE += "busybox glibc" | 2440 | RM_WORK_EXCLUDE += "busybox glibc" |
2454 | 2441 | ||
@@ -2457,7 +2444,7 @@ can also be set in your ``local.conf`` file. Here is an example:: | |||
2457 | ``rootfs*`` | 2444 | ``rootfs*`` |
2458 | =========== | 2445 | =========== |
2459 | 2446 | ||
2460 | The :ref:`rootfs* <ref-classes-rootfs*>` classes support creating the root filesystem for an | 2447 | The :ref:`ref-classes-rootfs*` classes support creating the root filesystem for an |
2461 | image and consist of the following classes: | 2448 | image and consist of the following classes: |
2462 | 2449 | ||
2463 | - The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class, which defines filesystem | 2450 | - The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class, which defines filesystem |
@@ -2476,8 +2463,8 @@ image and consist of the following classes: | |||
2476 | on the build host directly into the root filesystem. | 2463 | on the build host directly into the root filesystem. |
2477 | 2464 | ||
2478 | The root filesystem is created from packages using one of the | 2465 | The root filesystem is created from packages using one of the |
2479 | :ref:`rootfs*.bbclass <ref-classes-rootfs*>` files as determined by the | 2466 | :ref:`ref-classes-rootfs*` files as determined by the :term:`PACKAGE_CLASSES` |
2480 | :term:`PACKAGE_CLASSES` variable. | 2467 | variable. |
2481 | 2468 | ||
2482 | For information on how root filesystem images are created, see the | 2469 | For information on how root filesystem images are created, see the |
2483 | ":ref:`overview-manual/concepts:image generation`" | 2470 | ":ref:`overview-manual/concepts:image generation`" |
@@ -2488,7 +2475,7 @@ section in the Yocto Project Overview and Concepts Manual. | |||
2488 | ``sanity`` | 2475 | ``sanity`` |
2489 | ========== | 2476 | ========== |
2490 | 2477 | ||
2491 | The :ref:`sanity <ref-classes-sanity>` class checks to see if prerequisite software is present | 2478 | The :ref:`ref-classes-sanity` class checks to see if prerequisite software is present |
2492 | on the host system so that users can be notified of potential problems | 2479 | on the host system so that users can be notified of potential problems |
2493 | that might affect their build. The class also performs basic user | 2480 | that might affect their build. The class also performs basic user |
2494 | configuration checks from the ``local.conf`` configuration file to | 2481 | configuration checks from the ``local.conf`` configuration file to |
@@ -2500,17 +2487,17 @@ usually determines whether to include this class. | |||
2500 | ``scons`` | 2487 | ``scons`` |
2501 | ========= | 2488 | ========= |
2502 | 2489 | ||
2503 | The :ref:`scons <ref-classes-scons>` class supports recipes that need to build software that | 2490 | The :ref:`ref-classes-scons` class supports recipes that need to build software |
2504 | uses the SCons build system. You can use the | 2491 | that uses the SCons build system. You can use the :term:`EXTRA_OESCONS` |
2505 | :term:`EXTRA_OESCONS` variable to specify | 2492 | variable to specify additional configuration options you want to pass SCons |
2506 | additional configuration options you want to pass SCons command line. | 2493 | command line. |
2507 | 2494 | ||
2508 | .. _ref-classes-sdl: | 2495 | .. _ref-classes-sdl: |
2509 | 2496 | ||
2510 | ``sdl`` | 2497 | ``sdl`` |
2511 | ======= | 2498 | ======= |
2512 | 2499 | ||
2513 | The :ref:`sdl <ref-classes-sdl>` class supports recipes that need to build software that uses | 2500 | The :ref:`ref-classes-sdl` class supports recipes that need to build software that uses |
2514 | the Simple DirectMedia Layer (SDL) library. | 2501 | the Simple DirectMedia Layer (SDL) library. |
2515 | 2502 | ||
2516 | .. _ref-classes-python_setuptools_build_meta: | 2503 | .. _ref-classes-python_setuptools_build_meta: |
@@ -2518,8 +2505,8 @@ the Simple DirectMedia Layer (SDL) library. | |||
2518 | ``python_setuptools_build_meta`` | 2505 | ``python_setuptools_build_meta`` |
2519 | ================================ | 2506 | ================================ |
2520 | 2507 | ||
2521 | The :ref:`python_setuptools_build_meta <ref-classes-python_setuptools_build_meta>` class enables building Python modules which | 2508 | The :ref:`ref-classes-python_setuptools_build_meta` class enables building |
2522 | declare the | 2509 | Python modules which declare the |
2523 | `PEP-517 <https://www.python.org/dev/peps/pep-0517/>`__ compliant | 2510 | `PEP-517 <https://www.python.org/dev/peps/pep-0517/>`__ compliant |
2524 | ``setuptools.build_meta`` ``build-backend`` in the ``[build-system]`` | 2511 | ``setuptools.build_meta`` ``build-backend`` in the ``[build-system]`` |
2525 | section of ``pyproject.toml`` (See `PEP-518 <https://www.python.org/dev/peps/pep-0518/>`__). | 2512 | section of ``pyproject.toml`` (See `PEP-518 <https://www.python.org/dev/peps/pep-0518/>`__). |
@@ -2527,21 +2514,22 @@ section of ``pyproject.toml`` (See `PEP-518 <https://www.python.org/dev/peps/pep | |||
2527 | Python modules built with ``setuptools.build_meta`` can be pure Python or | 2514 | Python modules built with ``setuptools.build_meta`` can be pure Python or |
2528 | include ``C`` or ``Rust`` extensions). | 2515 | include ``C`` or ``Rust`` extensions). |
2529 | 2516 | ||
2530 | Internally this uses the :ref:`python_pep517 <ref-classes-python_pep517>` class. | 2517 | Internally this uses the :ref:`ref-classes-python_pep517` class. |
2531 | 2518 | ||
2532 | .. _ref-classes-setuptools3: | 2519 | .. _ref-classes-setuptools3: |
2533 | 2520 | ||
2534 | ``setuptools3`` | 2521 | ``setuptools3`` |
2535 | =============== | 2522 | =============== |
2536 | 2523 | ||
2537 | The :ref:`setuptools3 <ref-classes-setuptools3>` class supports Python version 3.x extensions that | 2524 | The :ref:`ref-classes-setuptools3` class supports Python version 3.x extensions |
2538 | use build systems based on ``setuptools`` (e.g. only have a ``setup.py`` and | 2525 | that use build systems based on ``setuptools`` (e.g. only have a ``setup.py`` |
2539 | have not migrated to the official ``pyproject.toml`` format). If your recipe | 2526 | and have not migrated to the official ``pyproject.toml`` format). If your recipe |
2540 | uses these build systems, the recipe needs to inherit the :ref:`setuptools3 <ref-classes-setuptools3>` class. | 2527 | uses these build systems, the recipe needs to inherit the |
2528 | :ref:`ref-classes-setuptools3` class. | ||
2541 | 2529 | ||
2542 | .. note:: | 2530 | .. note:: |
2543 | 2531 | ||
2544 | The :ref:`setuptools3 <ref-classes-setuptools3>` class :ref:`ref-tasks-compile` task now calls | 2532 | The :ref:`ref-classes-setuptools3` class :ref:`ref-tasks-compile` task now calls |
2545 | ``setup.py bdist_wheel`` to build the ``wheel`` binary archive format | 2533 | ``setup.py bdist_wheel`` to build the ``wheel`` binary archive format |
2546 | (See `PEP-427 <https://www.python.org/dev/peps/pep-0427/>`__). | 2534 | (See `PEP-427 <https://www.python.org/dev/peps/pep-0427/>`__). |
2547 | 2535 | ||
@@ -2552,22 +2540,22 @@ uses these build systems, the recipe needs to inherit the :ref:`setuptools3 <ref | |||
2552 | 2540 | ||
2553 | .. note:: | 2541 | .. note:: |
2554 | 2542 | ||
2555 | The :ref:`setuptools3 <ref-classes-setuptools3>` class :ref:`ref-tasks-install` task now installs the ``wheel`` | 2543 | The :ref:`ref-classes-setuptools3` class :ref:`ref-tasks-install` task now |
2556 | binary archive. In current versions of ``setuptools`` the legacy ``setup.py | 2544 | installs the ``wheel`` binary archive. In current versions of |
2557 | install`` method is deprecated. If the ``setup.py`` cannot be used with | 2545 | ``setuptools`` the legacy ``setup.py install`` method is deprecated. If |
2558 | wheels, for example it creates files outside of the Python module or | 2546 | the ``setup.py`` cannot be used with wheels, for example it creates files |
2559 | standard entry points, then :ref:`setuptools3_legacy | 2547 | outside of the Python module or standard entry points, then |
2560 | <ref-classes-setuptools3_legacy>` should be used. | 2548 | :ref:`ref-classes-setuptools3_legacy` should be used. |
2561 | 2549 | ||
2562 | .. _ref-classes-setuptools3_legacy: | 2550 | .. _ref-classes-setuptools3_legacy: |
2563 | 2551 | ||
2564 | ``setuptools3_legacy`` | 2552 | ``setuptools3_legacy`` |
2565 | ====================== | 2553 | ====================== |
2566 | 2554 | ||
2567 | The :ref:`setuptools3_legacy <ref-classes-setuptools3_legacy>` class supports | 2555 | The :ref:`ref-classes-setuptools3_legacy` class supports |
2568 | Python version 3.x extensions that use build systems based on ``setuptools`` | 2556 | Python version 3.x extensions that use build systems based on ``setuptools`` |
2569 | (e.g. only have a ``setup.py`` and have not migrated to the official | 2557 | (e.g. only have a ``setup.py`` and have not migrated to the official |
2570 | ``pyproject.toml`` format). Unlike :ref:`setuptools3 <ref-classes-setuptools3>`, | 2558 | ``pyproject.toml`` format). Unlike :ref:`ref-classes-setuptools3`, |
2571 | this uses the traditional ``setup.py`` ``build`` and ``install`` commands and | 2559 | this uses the traditional ``setup.py`` ``build`` and ``install`` commands and |
2572 | not wheels. This use of ``setuptools`` like this is | 2560 | not wheels. This use of ``setuptools`` like this is |
2573 | `deprecated <https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v5830>`__ | 2561 | `deprecated <https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v5830>`__ |
@@ -2578,36 +2566,35 @@ but still relatively common. | |||
2578 | ``setuptools3-base`` | 2566 | ``setuptools3-base`` |
2579 | ==================== | 2567 | ==================== |
2580 | 2568 | ||
2581 | The :ref:`setuptools3-base <ref-classes-setuptools3-base>` class provides a reusable base for other classes | 2569 | The :ref:`ref-classes-setuptools3-base` class provides a reusable base for |
2582 | that support building Python version 3.x extensions. If you need | 2570 | other classes that support building Python version 3.x extensions. If you need |
2583 | functionality that is not provided by the :ref:`setuptools3 <ref-classes-setuptools3>` class, you may | 2571 | functionality that is not provided by the :ref:`ref-classes-setuptools3` class, |
2584 | want to ``inherit setuptools3-base``. Some recipes do not need the tasks | 2572 | you may want to ``inherit setuptools3-base``. Some recipes do not need the tasks |
2585 | in the :ref:`setuptools3 <ref-classes-setuptools3>` class and inherit this class instead. | 2573 | in the :ref:`ref-classes-setuptools3` class and inherit this class instead. |
2586 | 2574 | ||
2587 | .. _ref-classes-sign_rpm: | 2575 | .. _ref-classes-sign_rpm: |
2588 | 2576 | ||
2589 | ``sign_rpm`` | 2577 | ``sign_rpm`` |
2590 | ============ | 2578 | ============ |
2591 | 2579 | ||
2592 | The :ref:`sign_rpm <ref-classes-sign_rpm>` class supports generating signed RPM packages. | 2580 | The :ref:`ref-classes-sign_rpm` class supports generating signed RPM packages. |
2593 | 2581 | ||
2594 | .. _ref-classes-siteconfig: | 2582 | .. _ref-classes-siteconfig: |
2595 | 2583 | ||
2596 | ``siteconfig`` | 2584 | ``siteconfig`` |
2597 | ============== | 2585 | ============== |
2598 | 2586 | ||
2599 | The :ref:`siteconfig <ref-classes-siteconfig>` class provides functionality for handling site | 2587 | The :ref:`ref-classes-siteconfig` class provides functionality for handling site |
2600 | configuration. The class is used by the | 2588 | configuration. The class is used by the :ref:`ref-classes-autotools` class to |
2601 | :ref:`autotools <ref-classes-autotools>` class to accelerate the | 2589 | accelerate the :ref:`ref-tasks-configure` task. |
2602 | :ref:`ref-tasks-configure` task. | ||
2603 | 2590 | ||
2604 | .. _ref-classes-siteinfo: | 2591 | .. _ref-classes-siteinfo: |
2605 | 2592 | ||
2606 | ``siteinfo`` | 2593 | ``siteinfo`` |
2607 | ============ | 2594 | ============ |
2608 | 2595 | ||
2609 | The :ref:`siteinfo <ref-classes-siteinfo>` class provides information about the targets that might | 2596 | The :ref:`ref-classes-siteinfo` class provides information about the targets |
2610 | be needed by other classes or recipes. | 2597 | that might be needed by other classes or recipes. |
2611 | 2598 | ||
2612 | As an example, consider Autotools, which can require tests that must | 2599 | As an example, consider Autotools, which can require tests that must |
2613 | execute on the target hardware. Since this is not possible in general | 2600 | execute on the target hardware. Since this is not possible in general |
@@ -2627,9 +2614,9 @@ The class also provides variables like :term:`SITEINFO_ENDIANNESS` and | |||
2627 | ``sstate`` | 2614 | ``sstate`` |
2628 | ========== | 2615 | ========== |
2629 | 2616 | ||
2630 | The :ref:`sstate <ref-classes-sstate>` class provides support for Shared State (sstate). By | 2617 | The :ref:`ref-classes-sstate` class provides support for Shared State (sstate). |
2631 | default, the class is enabled through the | 2618 | By default, the class is enabled through the :term:`INHERIT_DISTRO` variable's |
2632 | :term:`INHERIT_DISTRO` variable's default value. | 2619 | default value. |
2633 | 2620 | ||
2634 | For more information on sstate, see the | 2621 | For more information on sstate, see the |
2635 | ":ref:`overview-manual/concepts:shared state cache`" | 2622 | ":ref:`overview-manual/concepts:shared state cache`" |
@@ -2640,7 +2627,7 @@ section in the Yocto Project Overview and Concepts Manual. | |||
2640 | ``staging`` | 2627 | ``staging`` |
2641 | =========== | 2628 | =========== |
2642 | 2629 | ||
2643 | The :ref:`staging <ref-classes-staging>` class installs files into individual recipe work | 2630 | The :ref:`ref-classes-staging` class installs files into individual recipe work |
2644 | directories for sysroots. The class contains the following key tasks: | 2631 | directories for sysroots. The class contains the following key tasks: |
2645 | 2632 | ||
2646 | - The :ref:`ref-tasks-populate_sysroot` task, | 2633 | - The :ref:`ref-tasks-populate_sysroot` task, |
@@ -2653,8 +2640,8 @@ directories for sysroots. The class contains the following key tasks: | |||
2653 | installs the files into the individual recipe work directories (i.e. | 2640 | installs the files into the individual recipe work directories (i.e. |
2654 | :term:`WORKDIR`). | 2641 | :term:`WORKDIR`). |
2655 | 2642 | ||
2656 | The code in the :ref:`staging <ref-classes-staging>` class is complex and basically works in two | 2643 | The code in the :ref:`ref-classes-staging` class is complex and basically works |
2657 | stages: | 2644 | in two stages: |
2658 | 2645 | ||
2659 | - *Stage One:* The first stage addresses recipes that have files they | 2646 | - *Stage One:* The first stage addresses recipes that have files they |
2660 | want to share with other recipes that have dependencies on the | 2647 | want to share with other recipes that have dependencies on the |
@@ -2727,8 +2714,7 @@ stages: | |||
2727 | dependencies traversed or installed. The same sstate dependency code | 2714 | dependencies traversed or installed. The same sstate dependency code |
2728 | is used so that builds should be identical regardless of whether | 2715 | is used so that builds should be identical regardless of whether |
2729 | sstate was used or not. For a closer look, see the | 2716 | sstate was used or not. For a closer look, see the |
2730 | ``setscene_depvalid()`` function in the | 2717 | ``setscene_depvalid()`` function in the :ref:`ref-classes-sstate` class. |
2731 | :ref:`sstate <ref-classes-sstate>` class. | ||
2732 | 2718 | ||
2733 | The build system is careful to maintain manifests of the files it | 2719 | The build system is careful to maintain manifests of the files it |
2734 | installs so that any given dependency can be installed as needed. The | 2720 | installs so that any given dependency can be installed as needed. The |
@@ -2740,8 +2726,8 @@ stages: | |||
2740 | ``syslinux`` | 2726 | ``syslinux`` |
2741 | ============ | 2727 | ============ |
2742 | 2728 | ||
2743 | The :ref:`syslinux <ref-classes-syslinux>` class provides syslinux-specific functions for building | 2729 | The :ref:`ref-classes-syslinux` class provides syslinux-specific functions for |
2744 | bootable images. | 2730 | building bootable images. |
2745 | 2731 | ||
2746 | The class supports the following variables: | 2732 | The class supports the following variables: |
2747 | 2733 | ||
@@ -2783,8 +2769,8 @@ The class supports the following variables: | |||
2783 | ``systemd`` | 2769 | ``systemd`` |
2784 | =========== | 2770 | =========== |
2785 | 2771 | ||
2786 | The :ref:`systemd <ref-classes-systemd>` class provides support for recipes that install systemd | 2772 | The :ref:`ref-classes-systemd` class provides support for recipes that install |
2787 | unit files. | 2773 | systemd unit files. |
2788 | 2774 | ||
2789 | The functionality for this class is disabled unless you have "systemd" | 2775 | The functionality for this class is disabled unless you have "systemd" |
2790 | in :term:`DISTRO_FEATURES`. | 2776 | in :term:`DISTRO_FEATURES`. |
@@ -2809,7 +2795,7 @@ Services are set up to start on boot automatically | |||
2809 | unless you have set | 2795 | unless you have set |
2810 | :term:`SYSTEMD_AUTO_ENABLE` to "disable". | 2796 | :term:`SYSTEMD_AUTO_ENABLE` to "disable". |
2811 | 2797 | ||
2812 | For more information on :ref:`systemd <ref-classes-systemd>`, see the | 2798 | For more information on :ref:`ref-classes-systemd`, see the |
2813 | ":ref:`dev-manual/init-manager:selecting an initialization manager`" | 2799 | ":ref:`dev-manual/init-manager:selecting an initialization manager`" |
2814 | section in the Yocto Project Development Tasks Manual. | 2800 | section in the Yocto Project Development Tasks Manual. |
2815 | 2801 | ||
@@ -2818,18 +2804,18 @@ section in the Yocto Project Development Tasks Manual. | |||
2818 | ``systemd-boot`` | 2804 | ``systemd-boot`` |
2819 | ================ | 2805 | ================ |
2820 | 2806 | ||
2821 | The :ref:`systemd-boot <ref-classes-systemd-boot>` class provides functions specific to the | 2807 | The :ref:`ref-classes-systemd-boot` class provides functions specific to the |
2822 | systemd-boot bootloader for building bootable images. This is an | 2808 | systemd-boot bootloader for building bootable images. This is an |
2823 | internal class and is not intended to be used directly. | 2809 | internal class and is not intended to be used directly. |
2824 | 2810 | ||
2825 | .. note:: | 2811 | .. note:: |
2826 | 2812 | ||
2827 | The :ref:`systemd-boot <ref-classes-systemd-boot>` class is a result from merging the ``gummiboot`` class | 2813 | The :ref:`ref-classes-systemd-boot` class is a result from merging the ``gummiboot`` class |
2828 | used in previous Yocto Project releases with the ``systemd`` project. | 2814 | used in previous Yocto Project releases with the ``systemd`` project. |
2829 | 2815 | ||
2830 | Set the :term:`EFI_PROVIDER` variable to | 2816 | Set the :term:`EFI_PROVIDER` variable to ":ref:`ref-classes-systemd-boot`" to |
2831 | ":ref:`systemd-boot <ref-classes-systemd-boot>`" to use this class. Doing so creates a standalone EFI | 2817 | use this class. Doing so creates a standalone EFI bootloader that is not |
2832 | bootloader that is not dependent on systemd. | 2818 | dependent on systemd. |
2833 | 2819 | ||
2834 | For information on more variables used and supported in this class, see | 2820 | For information on more variables used and supported in this class, see |
2835 | the :term:`SYSTEMD_BOOT_CFG`, | 2821 | the :term:`SYSTEMD_BOOT_CFG`, |
@@ -2845,24 +2831,22 @@ for more information. | |||
2845 | ``terminal`` | 2831 | ``terminal`` |
2846 | ============ | 2832 | ============ |
2847 | 2833 | ||
2848 | The :ref:`terminal <ref-classes-terminal>` class provides support for starting a terminal session. | 2834 | The :ref:`ref-classes-terminal` class provides support for starting a terminal |
2849 | The :term:`OE_TERMINAL` variable controls which | 2835 | session. The :term:`OE_TERMINAL` variable controls which terminal emulator is |
2850 | terminal emulator is used for the session. | 2836 | used for the session. |
2851 | 2837 | ||
2852 | Other classes use the :ref:`terminal <ref-classes-terminal>` class anywhere a separate terminal | 2838 | Other classes use the :ref:`ref-classes-terminal` class anywhere a separate |
2853 | session needs to be started. For example, the | 2839 | terminal session needs to be started. For example, the :ref:`ref-classes-patch` |
2854 | :ref:`patch <ref-classes-patch>` class assuming | 2840 | class assuming :term:`PATCHRESOLVE` is set to "user", the |
2855 | :term:`PATCHRESOLVE` is set to "user", the | 2841 | :ref:`ref-classes-cml1` class, and the :ref:`ref-classes-devshell` class all |
2856 | :ref:`cml1 <ref-classes-cml1>` class, and the | 2842 | use the :ref:`ref-classes-terminal` class. |
2857 | :ref:`devshell <ref-classes-devshell>` class all use the :ref:`terminal <ref-classes-terminal>` | ||
2858 | class. | ||
2859 | 2843 | ||
2860 | .. _ref-classes-testimage: | 2844 | .. _ref-classes-testimage: |
2861 | 2845 | ||
2862 | ``testimage`` | 2846 | ``testimage`` |
2863 | ============= | 2847 | ============= |
2864 | 2848 | ||
2865 | The :ref:`testimage <ref-classes-testimage>` class supports running automated tests against | 2849 | The :ref:`ref-classes-testimage` class supports running automated tests against |
2866 | images using QEMU and on actual hardware. The classes handle loading the | 2850 | images using QEMU and on actual hardware. The classes handle loading the |
2867 | tests and starting the image. To use the classes, you need to perform | 2851 | tests and starting the image. To use the classes, you need to perform |
2868 | steps to set up the environment. | 2852 | steps to set up the environment. |
@@ -2874,7 +2858,7 @@ To enable this class, add the following to your configuration:: | |||
2874 | The tests are commands that run on the target system over ``ssh``. Each | 2858 | The tests are commands that run on the target system over ``ssh``. Each |
2875 | test is written in Python and makes use of the ``unittest`` module. | 2859 | test is written in Python and makes use of the ``unittest`` module. |
2876 | 2860 | ||
2877 | The :ref:`testimage <ref-classes-testimage>` class runs tests on an image when called using the | 2861 | The :ref:`ref-classes-testimage` class runs tests on an image when called using the |
2878 | following:: | 2862 | following:: |
2879 | 2863 | ||
2880 | $ bitbake -c testimage image | 2864 | $ bitbake -c testimage image |
@@ -2894,7 +2878,7 @@ section in the Yocto Project Development Tasks Manual. | |||
2894 | =========== | 2878 | =========== |
2895 | 2879 | ||
2896 | This class supports running automated tests against software development | 2880 | This class supports running automated tests against software development |
2897 | kits (SDKs). The :ref:`testsdk <ref-classes-testsdk>` class runs tests on an SDK when called | 2881 | kits (SDKs). The :ref:`ref-classes-testsdk` class runs tests on an SDK when called |
2898 | using the following:: | 2882 | using the following:: |
2899 | 2883 | ||
2900 | $ bitbake -c testsdk image | 2884 | $ bitbake -c testsdk image |
@@ -2902,7 +2886,7 @@ using the following:: | |||
2902 | .. note:: | 2886 | .. note:: |
2903 | 2887 | ||
2904 | Best practices include using :term:`IMAGE_CLASSES` rather than | 2888 | Best practices include using :term:`IMAGE_CLASSES` rather than |
2905 | :term:`INHERIT` to inherit the :ref:`testsdk <ref-classes-testsdk>` class for automated SDK | 2889 | :term:`INHERIT` to inherit the :ref:`ref-classes-testsdk` class for automated SDK |
2906 | testing. | 2890 | testing. |
2907 | 2891 | ||
2908 | .. _ref-classes-texinfo: | 2892 | .. _ref-classes-texinfo: |
@@ -2928,7 +2912,7 @@ host system. | |||
2928 | ``toaster`` | 2912 | ``toaster`` |
2929 | =========== | 2913 | =========== |
2930 | 2914 | ||
2931 | The :ref:`toaster <ref-classes-toaster>` class collects information about packages and images and | 2915 | The :ref:`ref-classes-toaster` class collects information about packages and images and |
2932 | sends them as events that the BitBake user interface can receive. The | 2916 | sends them as events that the BitBake user interface can receive. The |
2933 | class is enabled when the Toaster user interface is running. | 2917 | class is enabled when the Toaster user interface is running. |
2934 | 2918 | ||
@@ -2939,7 +2923,7 @@ This class is not intended to be used directly. | |||
2939 | ``toolchain-scripts`` | 2923 | ``toolchain-scripts`` |
2940 | ===================== | 2924 | ===================== |
2941 | 2925 | ||
2942 | The :ref:`toolchain-scripts <ref-classes-toolchain-scripts>` class provides the scripts used for setting up | 2926 | The :ref:`ref-classes-toolchain-scripts` class provides the scripts used for setting up |
2943 | the environment for installed SDKs. | 2927 | the environment for installed SDKs. |
2944 | 2928 | ||
2945 | .. _ref-classes-typecheck: | 2929 | .. _ref-classes-typecheck: |
@@ -2947,7 +2931,7 @@ the environment for installed SDKs. | |||
2947 | ``typecheck`` | 2931 | ``typecheck`` |
2948 | ============= | 2932 | ============= |
2949 | 2933 | ||
2950 | The :ref:`typecheck <ref-classes-typecheck>` class provides support for validating the values of | 2934 | The :ref:`ref-classes-typecheck` class provides support for validating the values of |
2951 | variables set at the configuration level against their defined types. | 2935 | variables set at the configuration level against their defined types. |
2952 | The OpenEmbedded build system allows you to define the type of a | 2936 | The OpenEmbedded build system allows you to define the type of a |
2953 | variable using the "type" varflag. Here is an example:: | 2937 | variable using the "type" varflag. Here is an example:: |
@@ -2959,7 +2943,7 @@ variable using the "type" varflag. Here is an example:: | |||
2959 | ``uboot-config`` | 2943 | ``uboot-config`` |
2960 | ================ | 2944 | ================ |
2961 | 2945 | ||
2962 | The :ref:`uboot-config <ref-classes-uboot-config>` class provides support for U-Boot configuration for | 2946 | The :ref:`ref-classes-uboot-config` class provides support for U-Boot configuration for |
2963 | a machine. Specify the machine in your recipe as follows:: | 2947 | a machine. Specify the machine in your recipe as follows:: |
2964 | 2948 | ||
2965 | UBOOT_CONFIG ??= <default> | 2949 | UBOOT_CONFIG ??= <default> |
@@ -2990,7 +2974,7 @@ yourself, publish the resulting tarball (e.g. via HTTP) and set | |||
2990 | ``UNINATIVE_URL`` and ``UNINATIVE_CHECKSUM`` appropriately. For an | 2974 | ``UNINATIVE_URL`` and ``UNINATIVE_CHECKSUM`` appropriately. For an |
2991 | example, see the ``meta/conf/distro/include/yocto-uninative.inc``. | 2975 | example, see the ``meta/conf/distro/include/yocto-uninative.inc``. |
2992 | 2976 | ||
2993 | The :ref:`uninative <ref-classes-uninative>` class is also used unconditionally by the extensible | 2977 | The :ref:`ref-classes-uninative` class is also used unconditionally by the extensible |
2994 | SDK. When building the extensible SDK, ``uninative-tarball`` is built | 2978 | SDK. When building the extensible SDK, ``uninative-tarball`` is built |
2995 | and the resulting tarball is included within the SDK. | 2979 | and the resulting tarball is included within the SDK. |
2996 | 2980 | ||
@@ -2999,12 +2983,12 @@ and the resulting tarball is included within the SDK. | |||
2999 | ``update-alternatives`` | 2983 | ``update-alternatives`` |
3000 | ======================= | 2984 | ======================= |
3001 | 2985 | ||
3002 | The :ref:`update-alternatives <ref-classes-update-alternatives>` class helps the alternatives system when | 2986 | The :ref:`ref-classes-update-alternatives` class helps the alternatives system when |
3003 | multiple sources provide the same command. This situation occurs when | 2987 | multiple sources provide the same command. This situation occurs when |
3004 | several programs that have the same or similar function are installed | 2988 | several programs that have the same or similar function are installed |
3005 | with the same name. For example, the ``ar`` command is available from | 2989 | with the same name. For example, the ``ar`` command is available from |
3006 | the ``busybox``, ``binutils`` and ``elfutils`` packages. The | 2990 | the ``busybox``, ``binutils`` and ``elfutils`` packages. The |
3007 | :ref:`update-alternatives <ref-classes-update-alternatives>` class handles renaming the binaries so that | 2991 | :ref:`ref-classes-update-alternatives` class handles renaming the binaries so that |
3008 | multiple packages can be installed without conflicts. The ``ar`` command | 2992 | multiple packages can be installed without conflicts. The ``ar`` command |
3009 | still works regardless of which packages are installed or subsequently | 2993 | still works regardless of which packages are installed or subsequently |
3010 | removed. The class renames the conflicting binary in each package and | 2994 | removed. The class renames the conflicting binary in each package and |
@@ -3037,7 +3021,7 @@ file. | |||
3037 | ``update-rc.d`` | 3021 | ``update-rc.d`` |
3038 | =============== | 3022 | =============== |
3039 | 3023 | ||
3040 | The :ref:`update-rc.d <ref-classes-update-rc.d>` class uses ``update-rc.d`` to safely install an | 3024 | The :ref:`ref-classes-update-rc.d` class uses ``update-rc.d`` to safely install an |
3041 | initialization script on behalf of the package. The OpenEmbedded build | 3025 | initialization script on behalf of the package. The OpenEmbedded build |
3042 | system takes care of details such as making sure the script is stopped | 3026 | system takes care of details such as making sure the script is stopped |
3043 | before a package is removed and started when the package is installed. | 3027 | before a package is removed and started when the package is installed. |
@@ -3085,13 +3069,11 @@ set static values, the OpenEmbedded build system looks in | |||
3085 | :term:`BBPATH` for ``files/passwd`` and ``files/group`` | 3069 | :term:`BBPATH` for ``files/passwd`` and ``files/group`` |
3086 | files for the values. | 3070 | files for the values. |
3087 | 3071 | ||
3088 | To use static ``uid`` and ``gid`` values, you need to set some | 3072 | To use static ``uid`` and ``gid`` values, you need to set some variables. See |
3089 | variables. See the :term:`USERADDEXTENSION`, | 3073 | the :term:`USERADDEXTENSION`, :term:`USERADD_UID_TABLES`, |
3090 | :term:`USERADD_UID_TABLES`, | 3074 | :term:`USERADD_GID_TABLES`, and :term:`USERADD_ERROR_DYNAMIC` variables. |
3091 | :term:`USERADD_GID_TABLES`, and | 3075 | You can also see the :ref:`ref-classes-useradd` class for additional |
3092 | :term:`USERADD_ERROR_DYNAMIC` variables. | 3076 | information. |
3093 | You can also see the :ref:`useradd <ref-classes-useradd>` class for | ||
3094 | additional information. | ||
3095 | 3077 | ||
3096 | .. note:: | 3078 | .. note:: |
3097 | 3079 | ||
@@ -3106,32 +3088,31 @@ additional information. | |||
3106 | ``utility-tasks`` | 3088 | ``utility-tasks`` |
3107 | ================= | 3089 | ================= |
3108 | 3090 | ||
3109 | The :ref:`utility-tasks <ref-classes-utility-tasks>` class provides support for various "utility" type | 3091 | The :ref:`ref-classes-utility-tasks` class provides support for various |
3110 | tasks that are applicable to all recipes, such as | 3092 | "utility" type tasks that are applicable to all recipes, such as |
3111 | :ref:`ref-tasks-clean` and | 3093 | :ref:`ref-tasks-clean` and :ref:`ref-tasks-listtasks`. |
3112 | :ref:`ref-tasks-listtasks`. | ||
3113 | 3094 | ||
3114 | This class is enabled by default because it is inherited by the | 3095 | This class is enabled by default because it is inherited by the |
3115 | :ref:`base <ref-classes-base>` class. | 3096 | :ref:`ref-classes-base` class. |
3116 | 3097 | ||
3117 | .. _ref-classes-utils: | 3098 | .. _ref-classes-utils: |
3118 | 3099 | ||
3119 | ``utils`` | 3100 | ``utils`` |
3120 | ========= | 3101 | ========= |
3121 | 3102 | ||
3122 | The :ref:`utils <ref-classes-utils>` class provides some useful Python functions that are | 3103 | The :ref:`ref-classes-utils` class provides some useful Python functions that are |
3123 | typically used in inline Python expressions (e.g. ``${@...}``). One | 3104 | typically used in inline Python expressions (e.g. ``${@...}``). One |
3124 | example use is for ``bb.utils.contains()``. | 3105 | example use is for ``bb.utils.contains()``. |
3125 | 3106 | ||
3126 | This class is enabled by default because it is inherited by the | 3107 | This class is enabled by default because it is inherited by the |
3127 | :ref:`base <ref-classes-base>` class. | 3108 | :ref:`ref-classes-base` class. |
3128 | 3109 | ||
3129 | .. _ref-classes-vala: | 3110 | .. _ref-classes-vala: |
3130 | 3111 | ||
3131 | ``vala`` | 3112 | ``vala`` |
3132 | ======== | 3113 | ======== |
3133 | 3114 | ||
3134 | The :ref:`vala <ref-classes-vala>` class supports recipes that need to build software written | 3115 | The :ref:`ref-classes-vala` class supports recipes that need to build software written |
3135 | using the Vala programming language. | 3116 | using the Vala programming language. |
3136 | 3117 | ||
3137 | .. _ref-classes-waf: | 3118 | .. _ref-classes-waf: |
@@ -3139,7 +3120,7 @@ using the Vala programming language. | |||
3139 | ``waf`` | 3120 | ``waf`` |
3140 | ======= | 3121 | ======= |
3141 | 3122 | ||
3142 | The :ref:`waf <ref-classes-waf>` class supports recipes that need to build software that uses | 3123 | The :ref:`ref-classes-waf` class supports recipes that need to build software that uses |
3143 | the Waf build system. You can use the | 3124 | the Waf build system. You can use the |
3144 | :term:`EXTRA_OECONF` or | 3125 | :term:`EXTRA_OECONF` or |
3145 | :term:`PACKAGECONFIG_CONFARGS` variables | 3126 | :term:`PACKAGECONFIG_CONFARGS` variables |
diff --git a/documentation/ref-manual/features.rst b/documentation/ref-manual/features.rst index 0229747650..794a6fd15b 100644 --- a/documentation/ref-manual/features.rst +++ b/documentation/ref-manual/features.rst | |||
@@ -358,7 +358,7 @@ Here are the image features available for all images: | |||
358 | a given image. | 358 | a given image. |
359 | 359 | ||
360 | Some image features are available only when you inherit the | 360 | Some image features are available only when you inherit the |
361 | :ref:`core-image <ref-classes-core-image>` class. The current list of | 361 | :ref:`ref-classes-core-image` class. The current list of |
362 | these valid features is as follows: | 362 | these valid features is as follows: |
363 | 363 | ||
364 | - *hwcodecs:* Installs hardware acceleration codecs. | 364 | - *hwcodecs:* Installs hardware acceleration codecs. |
diff --git a/documentation/ref-manual/qa-checks.rst b/documentation/ref-manual/qa-checks.rst index 798d4be4cf..13096816d2 100644 --- a/documentation/ref-manual/qa-checks.rst +++ b/documentation/ref-manual/qa-checks.rst | |||
@@ -580,7 +580,7 @@ Errors and Warnings | |||
580 | 580 | ||
581 | The specified package contains mime type files (``.xml`` files in | 581 | The specified package contains mime type files (``.xml`` files in |
582 | ``${datadir}/mime/packages``) and yet does not inherit the | 582 | ``${datadir}/mime/packages``) and yet does not inherit the |
583 | :ref:`mime <ref-classes-mime>` class which will ensure that these get | 583 | :ref:`ref-classes-mime` class which will ensure that these get |
584 | properly installed. Either add ``inherit mime`` to the recipe or remove the | 584 | properly installed. Either add ``inherit mime`` to the recipe or remove the |
585 | files at the :ref:`ref-tasks-install` step if they are not needed. | 585 | files at the :ref:`ref-tasks-install` step if they are not needed. |
586 | 586 | ||
@@ -590,7 +590,7 @@ Errors and Warnings | |||
590 | - ``package contains desktop file with key 'MimeType' but does not inhert mime-xdg: <packagename> path '<file>' [mime-xdg]`` | 590 | - ``package contains desktop file with key 'MimeType' but does not inhert mime-xdg: <packagename> path '<file>' [mime-xdg]`` |
591 | 591 | ||
592 | The specified package contains a .desktop file with a 'MimeType' key | 592 | The specified package contains a .desktop file with a 'MimeType' key |
593 | present, but does not inherit the :ref:`mime-xdg <ref-classes-mime-xdg>` | 593 | present, but does not inherit the :ref:`ref-classes-mime-xdg` |
594 | class that is required in order for that to be activated. Either add | 594 | class that is required in order for that to be activated. Either add |
595 | ``inherit mime`` to the recipe or remove the files at the | 595 | ``inherit mime`` to the recipe or remove the files at the |
596 | :ref:`ref-tasks-install` step if they are not needed. | 596 | :ref:`ref-tasks-install` step if they are not needed. |
@@ -621,9 +621,9 @@ Errors and Warnings | |||
621 | - ``<recipename>: recipe doesn't inherit features_check [unhandled-features-check]`` | 621 | - ``<recipename>: recipe doesn't inherit features_check [unhandled-features-check]`` |
622 | 622 | ||
623 | This check ensures that if one of the variables that the | 623 | This check ensures that if one of the variables that the |
624 | :ref:`features_check <ref-classes-features_check>` class supports (e.g. | 624 | :ref:`ref-classes-features_check` class supports (e.g. |
625 | :term:`REQUIRED_DISTRO_FEATURES`) is used, then the recipe | 625 | :term:`REQUIRED_DISTRO_FEATURES`) is used, then the recipe |
626 | inherits :ref:`features_check <ref-classes-features_check>` in order for | 626 | inherits :ref:`ref-classes-features_check` in order for |
627 | the requirement to actually work. If you are seeing this message, either | 627 | the requirement to actually work. If you are seeing this message, either |
628 | add ``inherit features_check`` to your recipe or remove the reference to | 628 | add ``inherit features_check`` to your recipe or remove the reference to |
629 | the variable if it is not needed. | 629 | the variable if it is not needed. |
@@ -634,7 +634,7 @@ Errors and Warnings | |||
634 | - ``<recipename>: recipe defines ALTERNATIVE:<packagename> but doesn't inherit update-alternatives. This might fail during do_rootfs later! [missing-update-alternatives]`` | 634 | - ``<recipename>: recipe defines ALTERNATIVE:<packagename> but doesn't inherit update-alternatives. This might fail during do_rootfs later! [missing-update-alternatives]`` |
635 | 635 | ||
636 | This check ensures that if a recipe sets the :term:`ALTERNATIVE` variable that the | 636 | This check ensures that if a recipe sets the :term:`ALTERNATIVE` variable that the |
637 | recipe also inherits :ref:`update-alternatives <ref-classes-update-alternatives>` such | 637 | recipe also inherits :ref:`ref-classes-update-alternatives` such |
638 | that the alternative will be correctly set up. If you are seeing this message, either | 638 | that the alternative will be correctly set up. If you are seeing this message, either |
639 | add ``inherit update-alternatives`` to your recipe or remove the reference to the variable | 639 | add ``inherit update-alternatives`` to your recipe or remove the reference to the variable |
640 | if it is not needed. | 640 | if it is not needed. |
@@ -655,7 +655,7 @@ Errors and Warnings | |||
655 | - ``<packagename> contains perllocal.pod (<files>), should not be installed [perllocalpod]`` | 655 | - ``<packagename> contains perllocal.pod (<files>), should not be installed [perllocalpod]`` |
656 | 656 | ||
657 | ``perllocal.pod`` is an index file of locally installed modules and so shouldn't be | 657 | ``perllocal.pod`` is an index file of locally installed modules and so shouldn't be |
658 | installed by any distribution packages. The :ref:`cpan <ref-classes-cpan>` class | 658 | installed by any distribution packages. The :ref:`ref-classes-cpan` class |
659 | already sets ``NO_PERLLOCAL`` to stop this file being generated by most Perl recipes, | 659 | already sets ``NO_PERLLOCAL`` to stop this file being generated by most Perl recipes, |
660 | but if a recipe is using ``MakeMaker`` directly then they might not be doing this | 660 | but if a recipe is using ``MakeMaker`` directly then they might not be doing this |
661 | correctly. This check ensures that perllocal.pod is not in any package in order to | 661 | correctly. This check ensures that perllocal.pod is not in any package in order to |
diff --git a/documentation/ref-manual/structure.rst b/documentation/ref-manual/structure.rst index f3a52a19f3..e895382eec 100644 --- a/documentation/ref-manual/structure.rst +++ b/documentation/ref-manual/structure.rst | |||
@@ -233,7 +233,7 @@ is available via the :term:`TOPDIR` variable. | |||
233 | ----------------------- | 233 | ----------------------- |
234 | 234 | ||
235 | The OpenEmbedded build system creates this directory when you enable | 235 | The OpenEmbedded build system creates this directory when you enable |
236 | build history via the :ref:`buildhistory <ref-classes-buildhistory>` class file. The directory | 236 | build history via the :ref:`ref-classes-buildhistory` class file. The directory |
237 | organizes build information into image, packages, and SDK | 237 | organizes build information into image, packages, and SDK |
238 | subdirectories. For information on the build history feature, see the | 238 | subdirectories. For information on the build history feature, see the |
239 | ":ref:`dev-manual/build-quality:maintaining build output quality`" | 239 | ":ref:`dev-manual/build-quality:maintaining build output quality`" |
@@ -375,7 +375,7 @@ remove the ``build/sstate-cache`` directory. | |||
375 | ~~~~~~~~~~~~~~~~~~~~~~~~~ | 375 | ~~~~~~~~~~~~~~~~~~~~~~~~~ |
376 | 376 | ||
377 | This directory stores the build statistics as generated by the | 377 | This directory stores the build statistics as generated by the |
378 | :ref:`buildstats <ref-classes-buildstats>` class. | 378 | :ref:`ref-classes-buildstats` class. |
379 | 379 | ||
380 | .. _structure-build-tmp-cache: | 380 | .. _structure-build-tmp-cache: |
381 | 381 | ||
diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst index e626095b20..7a664cc6c0 100644 --- a/documentation/ref-manual/tasks.rst +++ b/documentation/ref-manual/tasks.rst | |||
@@ -78,9 +78,9 @@ task runs with the current working directory set to | |||
78 | ``${``\ :term:`B`\ ``}``. | 78 | ``${``\ :term:`B`\ ``}``. |
79 | 79 | ||
80 | Recipes implementing this task should inherit the | 80 | Recipes implementing this task should inherit the |
81 | :ref:`deploy <ref-classes-deploy>` class and should write the output | 81 | :ref:`ref-classes-deploy` class and should write the output |
82 | to ``${``\ :term:`DEPLOYDIR`\ ``}``, which is not to be | 82 | to ``${``\ :term:`DEPLOYDIR`\ ``}``, which is not to be |
83 | confused with ``${DEPLOY_DIR}``. The :ref:`deploy <ref-classes-deploy>` class sets up | 83 | confused with ``${DEPLOY_DIR}``. The :ref:`ref-classes-deploy` class sets up |
84 | :ref:`ref-tasks-deploy` as a shared state (sstate) task that can be accelerated | 84 | :ref:`ref-tasks-deploy` as a shared state (sstate) task that can be accelerated |
85 | through sstate use. The sstate mechanism takes care of copying the | 85 | through sstate use. The sstate mechanism takes care of copying the |
86 | output from ``${DEPLOYDIR}`` to ``${DEPLOY_DIR_IMAGE}``. | 86 | output from ``${DEPLOYDIR}`` to ``${DEPLOY_DIR_IMAGE}``. |
@@ -102,7 +102,7 @@ Adding :ref:`ref-tasks-deploy` after other tasks works the same way. | |||
102 | .. note:: | 102 | .. note:: |
103 | 103 | ||
104 | You do not need to add ``before do_build`` to the ``addtask`` command | 104 | You do not need to add ``before do_build`` to the ``addtask`` command |
105 | (though it is harmless), because the :ref:`base <ref-classes-base>` class contains the following:: | 105 | (though it is harmless), because the :ref:`ref-classes-base` class contains the following:: |
106 | 106 | ||
107 | do_build[recrdeptask] += "do_deploy" | 107 | do_build[recrdeptask] += "do_deploy" |
108 | 108 | ||
@@ -225,7 +225,7 @@ section in the Yocto Project Overview and Concepts Manual. | |||
225 | ----------------- | 225 | ----------------- |
226 | 226 | ||
227 | Runs QA checks on packaged files. For more information on these checks, | 227 | Runs QA checks on packaged files. For more information on these checks, |
228 | see the :ref:`insane <ref-classes-insane>` class. | 228 | see the :ref:`ref-classes-insane` class. |
229 | 229 | ||
230 | .. _ref-tasks-package_write_deb: | 230 | .. _ref-tasks-package_write_deb: |
231 | 231 | ||
@@ -406,7 +406,7 @@ Installs the files into the individual recipe specific sysroots (i.e. | |||
406 | ``recipe-sysroot`` and ``recipe-sysroot-native`` under | 406 | ``recipe-sysroot`` and ``recipe-sysroot-native`` under |
407 | ``${``\ :term:`WORKDIR`\ ``}`` based upon the | 407 | ``${``\ :term:`WORKDIR`\ ``}`` based upon the |
408 | dependencies specified by :term:`DEPENDS`). See the | 408 | dependencies specified by :term:`DEPENDS`). See the |
409 | ":ref:`staging <ref-classes-staging>`" class for more information. | 409 | ":ref:`ref-classes-staging`" class for more information. |
410 | 410 | ||
411 | .. _ref-tasks-rm_work: | 411 | .. _ref-tasks-rm_work: |
412 | 412 | ||
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 5f5fea344e..f2decd713b 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
@@ -126,7 +126,7 @@ system and gives an overview of their function and contents. | |||
126 | ":ref:`ref-classes-update-alternatives`" section. | 126 | ":ref:`ref-classes-update-alternatives`" section. |
127 | 127 | ||
128 | :term:`ANY_OF_DISTRO_FEATURES` | 128 | :term:`ANY_OF_DISTRO_FEATURES` |
129 | When inheriting the :ref:`features_check <ref-classes-features_check>` | 129 | When inheriting the :ref:`ref-classes-features_check` |
130 | class, this variable identifies a list of distribution features where | 130 | class, this variable identifies a list of distribution features where |
131 | at least one must be enabled in the current configuration in order | 131 | at least one must be enabled in the current configuration in order |
132 | for the OpenEmbedded build system to build the recipe. In other words, | 132 | for the OpenEmbedded build system to build the recipe. In other words, |
@@ -139,14 +139,14 @@ system and gives an overview of their function and contents. | |||
139 | An override list of append strings for each target specified with | 139 | An override list of append strings for each target specified with |
140 | :term:`LABELS`. | 140 | :term:`LABELS`. |
141 | 141 | ||
142 | See the :ref:`grub-efi <ref-classes-grub-efi>` class for more | 142 | See the :ref:`ref-classes-grub-efi` class for more |
143 | information on how this variable is used. | 143 | information on how this variable is used. |
144 | 144 | ||
145 | :term:`AR` | 145 | :term:`AR` |
146 | The minimal command and arguments used to run ``ar``. | 146 | The minimal command and arguments used to run ``ar``. |
147 | 147 | ||
148 | :term:`ARCHIVER_MODE` | 148 | :term:`ARCHIVER_MODE` |
149 | When used with the :ref:`archiver <ref-classes-archiver>` class, | 149 | When used with the :ref:`ref-classes-archiver` class, |
150 | determines the type of information used to create a released archive. | 150 | determines the type of information used to create a released archive. |
151 | You can use this variable to create archives of patched source, | 151 | You can use this variable to create archives of patched source, |
152 | original source, configured source, and so forth by employing the | 152 | original source, configured source, and so forth by employing the |
@@ -197,13 +197,13 @@ system and gives an overview of their function and contents. | |||
197 | order to send patches and forward bugs. | 197 | order to send patches and forward bugs. |
198 | 198 | ||
199 | :term:`AUTO_LIBNAME_PKGS` | 199 | :term:`AUTO_LIBNAME_PKGS` |
200 | When the :ref:`debian <ref-classes-debian>` class is inherited, | 200 | When the :ref:`ref-classes-debian` class is inherited, |
201 | which is the default behavior, :term:`AUTO_LIBNAME_PKGS` specifies which | 201 | which is the default behavior, :term:`AUTO_LIBNAME_PKGS` specifies which |
202 | packages should be checked for libraries and renamed according to | 202 | packages should be checked for libraries and renamed according to |
203 | Debian library package naming. | 203 | Debian library package naming. |
204 | 204 | ||
205 | The default value is "${PACKAGES}", which causes the | 205 | The default value is "${PACKAGES}", which causes the |
206 | :ref:`debian <ref-classes-debian>` class to act on all packages that are | 206 | :ref:`ref-classes-debian` class to act on all packages that are |
207 | explicitly generated by the recipe. | 207 | explicitly generated by the recipe. |
208 | 208 | ||
209 | :term:`AUTOREV` | 209 | :term:`AUTOREV` |
@@ -215,7 +215,7 @@ system and gives an overview of their function and contents. | |||
215 | If you use the previous statement to retrieve the latest version of | 215 | If you use the previous statement to retrieve the latest version of |
216 | software, you need to be sure :term:`PV` contains | 216 | software, you need to be sure :term:`PV` contains |
217 | ``${``\ :term:`SRCPV`\ ``}``. For example, suppose you have a kernel | 217 | ``${``\ :term:`SRCPV`\ ``}``. For example, suppose you have a kernel |
218 | recipe that inherits the :ref:`kernel <ref-classes-kernel>` class and you | 218 | recipe that inherits the :ref:`ref-classes-kernel` class and you |
219 | use the previous statement. In this example, ``${SRCPV}`` does not | 219 | use the previous statement. In this example, ``${SRCPV}`` does not |
220 | automatically get into :term:`PV`. Consequently, you need to change | 220 | automatically get into :term:`PV`. Consequently, you need to change |
221 | :term:`PV` in your recipe so that it does contain ``${SRCPV}``. | 221 | :term:`PV` in your recipe so that it does contain ``${SRCPV}``. |
@@ -227,7 +227,7 @@ system and gives an overview of their function and contents. | |||
227 | :term:`AUTO_SYSLINUXMENU` | 227 | :term:`AUTO_SYSLINUXMENU` |
228 | Enables creating an automatic menu for the syslinux bootloader. You | 228 | Enables creating an automatic menu for the syslinux bootloader. You |
229 | must set this variable in your recipe. The | 229 | must set this variable in your recipe. The |
230 | :ref:`syslinux <ref-classes-syslinux>` class checks this variable. | 230 | :ref:`ref-classes-syslinux` class checks this variable. |
231 | 231 | ||
232 | :term:`AVAILTUNES` | 232 | :term:`AVAILTUNES` |
233 | The list of defined CPU and Application Binary Interface (ABI) | 233 | The list of defined CPU and Application Binary Interface (ABI) |
@@ -701,7 +701,7 @@ system and gives an overview of their function and contents. | |||
701 | ``quilt-native``, which is a copy of Quilt built to run on the build | 701 | ``quilt-native``, which is a copy of Quilt built to run on the build |
702 | system; "crosses" such as ``gcc-cross``, which is a compiler built to | 702 | system; "crosses" such as ``gcc-cross``, which is a compiler built to |
703 | run on the build machine but produces binaries that run on the target | 703 | run on the build machine but produces binaries that run on the target |
704 | :term:`MACHINE`; ":ref:`nativesdk <ref-classes-nativesdk>`", which | 704 | :term:`MACHINE`; ":ref:`ref-classes-nativesdk`", which |
705 | targets the SDK machine instead of :term:`MACHINE`; and "mulitlibs" in | 705 | targets the SDK machine instead of :term:`MACHINE`; and "mulitlibs" in |
706 | the form "``multilib:``\ multilib_name". | 706 | the form "``multilib:``\ multilib_name". |
707 | 707 | ||
@@ -909,13 +909,12 @@ system and gives an overview of their function and contents. | |||
909 | See :term:`bitbake:BBTARGETS` in the BitBake manual. | 909 | See :term:`bitbake:BBTARGETS` in the BitBake manual. |
910 | 910 | ||
911 | :term:`BINCONFIG` | 911 | :term:`BINCONFIG` |
912 | When inheriting the | 912 | When inheriting the :ref:`ref-classes-binconfig-disabled` class, this |
913 | :ref:`binconfig-disabled <ref-classes-binconfig-disabled>` class, | 913 | variable specifies binary configuration scripts to disable in favor of |
914 | this variable specifies binary configuration scripts to disable in | 914 | using ``pkg-config`` to query the information. The |
915 | favor of using ``pkg-config`` to query the information. The | 915 | :ref:`ref-classes-binconfig-disabled` class will modify the specified |
916 | :ref:`binconfig-disabled <ref-classes-binconfig-disabled>` class will modify the specified scripts to | 916 | scripts to return an error so that calls to them can be easily found |
917 | return an error so that calls to them can be easily found and | 917 | and replaced. |
918 | replaced. | ||
919 | 918 | ||
920 | To add multiple scripts, separate them by spaces. Here is an example | 919 | To add multiple scripts, separate them by spaces. Here is an example |
921 | from the ``libpng`` recipe:: | 920 | from the ``libpng`` recipe:: |
@@ -923,7 +922,7 @@ system and gives an overview of their function and contents. | |||
923 | BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config" | 922 | BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config" |
924 | 923 | ||
925 | :term:`BINCONFIG_GLOB` | 924 | :term:`BINCONFIG_GLOB` |
926 | When inheriting the :ref:`binconfig <ref-classes-binconfig>` class, | 925 | When inheriting the :ref:`ref-classes-binconfig` class, |
927 | this variable specifies a wildcard for configuration scripts that | 926 | this variable specifies a wildcard for configuration scripts that |
928 | need editing. The scripts are edited to correct any paths that have | 927 | need editing. The scripts are edited to correct any paths that have |
929 | been set up during compilation so that they are correct for use when | 928 | been set up during compilation so that they are correct for use when |
@@ -1048,8 +1047,7 @@ system and gives an overview of their function and contents. | |||
1048 | :term:`BUILD_PREFIX` | 1047 | :term:`BUILD_PREFIX` |
1049 | The toolchain binary prefix used for native recipes. The OpenEmbedded | 1048 | The toolchain binary prefix used for native recipes. The OpenEmbedded |
1050 | build system uses the :term:`BUILD_PREFIX` value to set the | 1049 | build system uses the :term:`BUILD_PREFIX` value to set the |
1051 | :term:`TARGET_PREFIX` when building for | 1050 | :term:`TARGET_PREFIX` when building for :ref:`ref-classes-native` recipes. |
1052 | :ref:`native <ref-classes-native>` recipes. | ||
1053 | 1051 | ||
1054 | :term:`BUILD_STRIP` | 1052 | :term:`BUILD_STRIP` |
1055 | Specifies the command to be used to strip debugging symbols from | 1053 | Specifies the command to be used to strip debugging symbols from |
@@ -1060,7 +1058,7 @@ system and gives an overview of their function and contents. | |||
1060 | :term:`BUILD_SYS` | 1058 | :term:`BUILD_SYS` |
1061 | Specifies the system, including the architecture and the operating | 1059 | Specifies the system, including the architecture and the operating |
1062 | system, to use when building for the build host (i.e. when building | 1060 | system, to use when building for the build host (i.e. when building |
1063 | :ref:`native <ref-classes-native>` recipes). | 1061 | :ref:`ref-classes-native` recipes). |
1064 | 1062 | ||
1065 | The OpenEmbedded build system automatically sets this variable based | 1063 | The OpenEmbedded build system automatically sets this variable based |
1066 | on :term:`BUILD_ARCH`, | 1064 | on :term:`BUILD_ARCH`, |
@@ -1080,22 +1078,22 @@ system and gives an overview of their function and contents. | |||
1080 | :term:`BUILDDIR` defaults to ``build`` in the current directory. | 1078 | :term:`BUILDDIR` defaults to ``build`` in the current directory. |
1081 | 1079 | ||
1082 | :term:`BUILDHISTORY_COMMIT` | 1080 | :term:`BUILDHISTORY_COMMIT` |
1083 | When inheriting the :ref:`buildhistory <ref-classes-buildhistory>` | 1081 | When inheriting the :ref:`ref-classes-buildhistory` class, this variable |
1084 | class, this variable specifies whether or not to commit the build | 1082 | specifies whether or not to commit the build history output in a local |
1085 | history output in a local Git repository. If set to "1", this local | 1083 | Git repository. If set to "1", this local repository will be maintained |
1086 | repository will be maintained automatically by the :ref:`buildhistory <ref-classes-buildhistory>` | 1084 | automatically by the :ref:`ref-classes-buildhistory` class and a commit |
1087 | class and a commit will be created on every build for changes to each | 1085 | will be created on every build for changes to each top-level subdirectory |
1088 | top-level subdirectory of the build history output (images, packages, | 1086 | of the build history output (images, packages, and sdk). If you want to |
1089 | and sdk). If you want to track changes to build history over time, | 1087 | track changes to build history over time, you should set this value to |
1090 | you should set this value to "1". | 1088 | "1". |
1091 | 1089 | ||
1092 | By default, the :ref:`buildhistory <ref-classes-buildhistory>` class | 1090 | By default, the :ref:`ref-classes-buildhistory` class |
1093 | enables committing the buildhistory output in a local Git repository:: | 1091 | enables committing the buildhistory output in a local Git repository:: |
1094 | 1092 | ||
1095 | BUILDHISTORY_COMMIT ?= "1" | 1093 | BUILDHISTORY_COMMIT ?= "1" |
1096 | 1094 | ||
1097 | :term:`BUILDHISTORY_COMMIT_AUTHOR` | 1095 | :term:`BUILDHISTORY_COMMIT_AUTHOR` |
1098 | When inheriting the :ref:`buildhistory <ref-classes-buildhistory>` | 1096 | When inheriting the :ref:`ref-classes-buildhistory` |
1099 | class, this variable specifies the author to use for each Git commit. | 1097 | class, this variable specifies the author to use for each Git commit. |
1100 | In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the | 1098 | In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the |
1101 | :term:`BUILDHISTORY_COMMIT` variable must | 1099 | :term:`BUILDHISTORY_COMMIT` variable must |
@@ -1106,22 +1104,24 @@ system and gives an overview of their function and contents. | |||
1106 | email@host". Providing an email address or host that is not valid | 1104 | email@host". Providing an email address or host that is not valid |
1107 | does not produce an error. | 1105 | does not produce an error. |
1108 | 1106 | ||
1109 | By default, the :ref:`buildhistory <ref-classes-buildhistory>` class sets the variable as follows:: | 1107 | By default, the :ref:`ref-classes-buildhistory` class sets the variable |
1108 | as follows:: | ||
1110 | 1109 | ||
1111 | BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>" | 1110 | BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>" |
1112 | 1111 | ||
1113 | :term:`BUILDHISTORY_DIR` | 1112 | :term:`BUILDHISTORY_DIR` |
1114 | When inheriting the :ref:`buildhistory <ref-classes-buildhistory>` | 1113 | When inheriting the :ref:`ref-classes-buildhistory` |
1115 | class, this variable specifies the directory in which build history | 1114 | class, this variable specifies the directory in which build history |
1116 | information is kept. For more information on how the variable works, | 1115 | information is kept. For more information on how the variable works, |
1117 | see the :ref:`ref-classes-buildhistory` class. | 1116 | see the :ref:`ref-classes-buildhistory` class. |
1118 | 1117 | ||
1119 | By default, the :ref:`buildhistory <ref-classes-buildhistory>` class sets the directory as follows:: | 1118 | By default, the :ref:`ref-classes-buildhistory` class sets the directory |
1119 | as follows:: | ||
1120 | 1120 | ||
1121 | BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory" | 1121 | BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory" |
1122 | 1122 | ||
1123 | :term:`BUILDHISTORY_FEATURES` | 1123 | :term:`BUILDHISTORY_FEATURES` |
1124 | When inheriting the :ref:`buildhistory <ref-classes-buildhistory>` | 1124 | When inheriting the :ref:`ref-classes-buildhistory` |
1125 | class, this variable specifies the build history features to be | 1125 | class, this variable specifies the build history features to be |
1126 | enabled. For more information on how build history works, see the | 1126 | enabled. For more information on how build history works, see the |
1127 | ":ref:`dev-manual/build-quality:maintaining build output quality`" | 1127 | ":ref:`dev-manual/build-quality:maintaining build output quality`" |
@@ -1143,13 +1143,13 @@ system and gives an overview of their function and contents. | |||
1143 | This saves one file per task and lists the SHA-256 checksums for | 1143 | This saves one file per task and lists the SHA-256 checksums for |
1144 | each file staged (i.e. the output of the task). | 1144 | each file staged (i.e. the output of the task). |
1145 | 1145 | ||
1146 | By default, the :ref:`buildhistory <ref-classes-buildhistory>` class enables the following | 1146 | By default, the :ref:`ref-classes-buildhistory` class enables the |
1147 | features:: | 1147 | following features:: |
1148 | 1148 | ||
1149 | BUILDHISTORY_FEATURES ?= "image package sdk" | 1149 | BUILDHISTORY_FEATURES ?= "image package sdk" |
1150 | 1150 | ||
1151 | :term:`BUILDHISTORY_IMAGE_FILES` | 1151 | :term:`BUILDHISTORY_IMAGE_FILES` |
1152 | When inheriting the :ref:`buildhistory <ref-classes-buildhistory>` | 1152 | When inheriting the :ref:`ref-classes-buildhistory` |
1153 | class, this variable specifies a list of paths to files copied from | 1153 | class, this variable specifies a list of paths to files copied from |
1154 | the image contents into the build history directory under an | 1154 | the image contents into the build history directory under an |
1155 | "image-files" directory in the directory for the image, so that you | 1155 | "image-files" directory in the directory for the image, so that you |
@@ -1159,39 +1159,39 @@ system and gives an overview of their function and contents. | |||
1159 | any file. Specifying an invalid path does not produce an error. | 1159 | any file. Specifying an invalid path does not produce an error. |
1160 | Consequently, you can include files that might not always be present. | 1160 | Consequently, you can include files that might not always be present. |
1161 | 1161 | ||
1162 | By default, the :ref:`buildhistory <ref-classes-buildhistory>` class provides paths to the | 1162 | By default, the :ref:`ref-classes-buildhistory` class provides paths to |
1163 | following files:: | 1163 | the following files:: |
1164 | 1164 | ||
1165 | BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group" | 1165 | BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group" |
1166 | 1166 | ||
1167 | :term:`BUILDHISTORY_PATH_PREFIX_STRIP` | 1167 | :term:`BUILDHISTORY_PATH_PREFIX_STRIP` |
1168 | When inheriting the :ref:`buildhistory <ref-classes-buildhistory>` | 1168 | When inheriting the :ref:`ref-classes-buildhistory` |
1169 | class, this variable specifies a common path prefix that should be | 1169 | class, this variable specifies a common path prefix that should be |
1170 | stripped off the beginning of paths in the task signature list when the | 1170 | stripped off the beginning of paths in the task signature list when the |
1171 | ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be | 1171 | ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be |
1172 | useful when build history is populated from multiple sources that may not | 1172 | useful when build history is populated from multiple sources that may not |
1173 | all use the same top level directory. | 1173 | all use the same top level directory. |
1174 | 1174 | ||
1175 | By default, the :ref:`buildhistory <ref-classes-buildhistory>` class sets the variable as follows:: | 1175 | By default, the :ref:`ref-classes-buildhistory` class sets the variable |
1176 | as follows:: | ||
1176 | 1177 | ||
1177 | BUILDHISTORY_PATH_PREFIX_STRIP ?= "" | 1178 | BUILDHISTORY_PATH_PREFIX_STRIP ?= "" |
1178 | 1179 | ||
1179 | In this case, no prefixes will be stripped. | 1180 | In this case, no prefixes will be stripped. |
1180 | 1181 | ||
1181 | :term:`BUILDHISTORY_PUSH_REPO` | 1182 | :term:`BUILDHISTORY_PUSH_REPO` |
1182 | When inheriting the :ref:`buildhistory <ref-classes-buildhistory>` | 1183 | When inheriting the :ref:`ref-classes-buildhistory` class, this variable |
1183 | class, this variable optionally specifies a remote repository to | 1184 | optionally specifies a remote repository to which build history pushes |
1184 | which build history pushes Git changes. In order for | 1185 | Git changes. In order for :term:`BUILDHISTORY_PUSH_REPO` to work, |
1185 | :term:`BUILDHISTORY_PUSH_REPO` to work, | 1186 | :term:`BUILDHISTORY_COMMIT` must be set to "1". |
1186 | :term:`BUILDHISTORY_COMMIT` must be set to | ||
1187 | "1". | ||
1188 | 1187 | ||
1189 | The repository should correspond to a remote address that specifies a | 1188 | The repository should correspond to a remote address that specifies a |
1190 | repository as understood by Git, or alternatively to a remote name | 1189 | repository as understood by Git, or alternatively to a remote name |
1191 | that you have set up manually using ``git remote`` within the local | 1190 | that you have set up manually using ``git remote`` within the local |
1192 | repository. | 1191 | repository. |
1193 | 1192 | ||
1194 | By default, the :ref:`buildhistory <ref-classes-buildhistory>` class sets the variable as follows:: | 1193 | By default, the :ref:`ref-classes-buildhistory` class sets the variable |
1194 | as follows:: | ||
1195 | 1195 | ||
1196 | BUILDHISTORY_PUSH_REPO ?= "" | 1196 | BUILDHISTORY_PUSH_REPO ?= "" |
1197 | 1197 | ||
@@ -1224,8 +1224,7 @@ system and gives an overview of their function and contents. | |||
1224 | 1224 | ||
1225 | :term:`BUILDSTATS_BASE` | 1225 | :term:`BUILDSTATS_BASE` |
1226 | Points to the location of the directory that holds build statistics | 1226 | Points to the location of the directory that holds build statistics |
1227 | when you use and enable the | 1227 | when you use and enable the :ref:`ref-classes-buildstats` class. The |
1228 | :ref:`buildstats <ref-classes-buildstats>` class. The | ||
1229 | :term:`BUILDSTATS_BASE` directory defaults to | 1228 | :term:`BUILDSTATS_BASE` directory defaults to |
1230 | ``${``\ :term:`TMPDIR`\ ``}/buildstats/``. | 1229 | ``${``\ :term:`TMPDIR`\ ``}/buildstats/``. |
1231 | 1230 | ||
@@ -1271,9 +1270,8 @@ system and gives an overview of their function and contents. | |||
1271 | An internal variable specifying the special class override that | 1270 | An internal variable specifying the special class override that |
1272 | should currently apply (e.g. "class-target", "class-native", and so | 1271 | should currently apply (e.g. "class-target", "class-native", and so |
1273 | forth). The classes that use this variable (e.g. | 1272 | forth). The classes that use this variable (e.g. |
1274 | :ref:`native <ref-classes-native>`, | 1273 | :ref:`ref-classes-native`, :ref:`ref-classes-nativesdk`, and so forth) |
1275 | :ref:`nativesdk <ref-classes-nativesdk>`, and so forth) set the | 1274 | set the variable to appropriate values. |
1276 | variable to appropriate values. | ||
1277 | 1275 | ||
1278 | .. note:: | 1276 | .. note:: |
1279 | 1277 | ||
@@ -1449,8 +1447,7 @@ system and gives an overview of their function and contents. | |||
1449 | The minimal arguments for GNU configure. | 1447 | The minimal arguments for GNU configure. |
1450 | 1448 | ||
1451 | :term:`CONFLICT_DISTRO_FEATURES` | 1449 | :term:`CONFLICT_DISTRO_FEATURES` |
1452 | When inheriting the | 1450 | When inheriting the :ref:`ref-classes-features_check` |
1453 | :ref:`features_check <ref-classes-features_check>` | ||
1454 | class, this variable identifies distribution features that would be | 1451 | class, this variable identifies distribution features that would be |
1455 | in conflict should the recipe be built. In other words, if the | 1452 | in conflict should the recipe be built. In other words, if the |
1456 | :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also | 1453 | :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also |
@@ -1466,8 +1463,8 @@ system and gives an overview of their function and contents. | |||
1466 | 1463 | ||
1467 | - Checksums for the image | 1464 | - Checksums for the image |
1468 | 1465 | ||
1469 | An example of :term:`CONVERSION_CMD` from :ref:`image-types | 1466 | An example of :term:`CONVERSION_CMD` from :ref:`ref-classes-image_types` |
1470 | <ref-classes-image_types>` class is:: | 1467 | class is:: |
1471 | 1468 | ||
1472 | CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" | 1469 | CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" |
1473 | 1470 | ||
@@ -1506,10 +1503,9 @@ system and gives an overview of their function and contents. | |||
1506 | information on providing license text. | 1503 | information on providing license text. |
1507 | 1504 | ||
1508 | :term:`COPYLEFT_LICENSE_EXCLUDE` | 1505 | :term:`COPYLEFT_LICENSE_EXCLUDE` |
1509 | A space-separated list of licenses to exclude from the source | 1506 | A space-separated list of licenses to exclude from the source archived by |
1510 | archived by the :ref:`archiver <ref-classes-archiver>` class. In | 1507 | the :ref:`ref-classes-archiver` class. In other words, if a license in a |
1511 | other words, if a license in a recipe's | 1508 | recipe's :term:`LICENSE` value is in the value of |
1512 | :term:`LICENSE` value is in the value of | ||
1513 | :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the | 1509 | :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the |
1514 | class. | 1510 | class. |
1515 | 1511 | ||
@@ -1520,60 +1516,54 @@ system and gives an overview of their function and contents. | |||
1520 | 1516 | ||
1521 | The default value, which is "CLOSED Proprietary", for | 1517 | The default value, which is "CLOSED Proprietary", for |
1522 | :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the | 1518 | :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the |
1523 | :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which | 1519 | :ref:`ref-classes-copyleft_filter` class, which |
1524 | is inherited by the :ref:`archiver <ref-classes-archiver>` class. | 1520 | is inherited by the :ref:`ref-classes-archiver` class. |
1525 | 1521 | ||
1526 | :term:`COPYLEFT_LICENSE_INCLUDE` | 1522 | :term:`COPYLEFT_LICENSE_INCLUDE` |
1527 | A space-separated list of licenses to include in the source archived | 1523 | A space-separated list of licenses to include in the source archived |
1528 | by the :ref:`archiver <ref-classes-archiver>` class. In other | 1524 | by the :ref:`ref-classes-archiver` class. In other |
1529 | words, if a license in a recipe's :term:`LICENSE` | 1525 | words, if a license in a recipe's :term:`LICENSE` |
1530 | value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its | 1526 | value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its |
1531 | source is archived by the class. | 1527 | source is archived by the class. |
1532 | 1528 | ||
1533 | The default value is set by the | 1529 | The default value is set by the :ref:`ref-classes-copyleft_filter` class, |
1534 | :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which | 1530 | which is inherited by the :ref:`ref-classes-archiver` class. The default |
1535 | is inherited by the :ref:`archiver <ref-classes-archiver>` class. The default value includes | 1531 | value includes "GPL*", "LGPL*", and "AGPL*". |
1536 | "GPL*", "LGPL*", and "AGPL*". | ||
1537 | 1532 | ||
1538 | :term:`COPYLEFT_PN_EXCLUDE` | 1533 | :term:`COPYLEFT_PN_EXCLUDE` |
1539 | A list of recipes to exclude in the source archived by the | 1534 | A list of recipes to exclude in the source archived by the |
1540 | :ref:`archiver <ref-classes-archiver>` class. The | 1535 | :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_EXCLUDE` |
1541 | :term:`COPYLEFT_PN_EXCLUDE` variable overrides the license inclusion and | 1536 | variable overrides the license inclusion and exclusion caused through the |
1542 | exclusion caused through the | 1537 | :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE` |
1543 | :term:`COPYLEFT_LICENSE_INCLUDE` and | ||
1544 | :term:`COPYLEFT_LICENSE_EXCLUDE` | ||
1545 | variables, respectively. | 1538 | variables, respectively. |
1546 | 1539 | ||
1547 | The default value, which is "" indicating to not explicitly exclude | 1540 | The default value, which is "" indicating to not explicitly exclude |
1548 | any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the | 1541 | any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the |
1549 | :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which | 1542 | :ref:`ref-classes-copyleft_filter` class, which is inherited by the |
1550 | is inherited by the :ref:`archiver <ref-classes-archiver>` class. | 1543 | :ref:`ref-classes-archiver` class. |
1551 | 1544 | ||
1552 | :term:`COPYLEFT_PN_INCLUDE` | 1545 | :term:`COPYLEFT_PN_INCLUDE` |
1553 | A list of recipes to include in the source archived by the | 1546 | A list of recipes to include in the source archived by the |
1554 | :ref:`archiver <ref-classes-archiver>` class. The | 1547 | :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_INCLUDE` |
1555 | :term:`COPYLEFT_PN_INCLUDE` variable overrides the license inclusion and | 1548 | variable overrides the license inclusion and exclusion caused through the |
1556 | exclusion caused through the | 1549 | :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE` |
1557 | :term:`COPYLEFT_LICENSE_INCLUDE` and | ||
1558 | :term:`COPYLEFT_LICENSE_EXCLUDE` | ||
1559 | variables, respectively. | 1550 | variables, respectively. |
1560 | 1551 | ||
1561 | The default value, which is "" indicating to not explicitly include | 1552 | The default value, which is "" indicating to not explicitly include |
1562 | any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the | 1553 | any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the |
1563 | :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which | 1554 | :ref:`ref-classes-copyleft_filter` class, which is inherited by the |
1564 | is inherited by the :ref:`archiver <ref-classes-archiver>` class. | 1555 | :ref:`ref-classes-archiver` class. |
1565 | 1556 | ||
1566 | :term:`COPYLEFT_RECIPE_TYPES` | 1557 | :term:`COPYLEFT_RECIPE_TYPES` |
1567 | A space-separated list of recipe types to include in the source | 1558 | A space-separated list of recipe types to include in the source |
1568 | archived by the :ref:`archiver <ref-classes-archiver>` class. | 1559 | archived by the :ref:`archiver <ref-classes-archiver>` class. |
1569 | Recipe types are ``target``, :ref:`native <ref-classes-native>`, | 1560 | Recipe types are ``target``, :ref:`ref-classes-native`, |
1570 | :ref:`nativesdk <ref-classes-nativesdk>`, | 1561 | :ref:`ref-classes-nativesdk`, :ref:`ref-classes-cross`, |
1571 | :ref:`cross <ref-classes-cross>`, :ref:`crosssdk <ref-classes-crosssdk>`, | 1562 | :ref:`ref-classes-crosssdk`, and :ref:`ref-classes-cross-canadian`. |
1572 | and :ref:`cross-canadian <ref-classes-cross-canadian>`. | ||
1573 | 1563 | ||
1574 | The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES` | 1564 | The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES` |
1575 | is set by the :ref:`copyleft_filter <ref-classes-copyleft_filter>` | 1565 | is set by the :ref:`ref-classes-copyleft_filter` class, which is |
1576 | class, which is inherited by the :ref:`archiver <ref-classes-archiver>` class. | 1566 | inherited by the :ref:`ref-classes-archiver` class. |
1577 | 1567 | ||
1578 | :term:`CORE_IMAGE_EXTRA_INSTALL` | 1568 | :term:`CORE_IMAGE_EXTRA_INSTALL` |
1579 | Specifies the list of packages to be added to the image. You should | 1569 | Specifies the list of packages to be added to the image. You should |
@@ -1647,7 +1637,7 @@ system and gives an overview of their function and contents. | |||
1647 | CVE_CHECK_IGNORE += "CVE-2020-15523" | 1637 | CVE_CHECK_IGNORE += "CVE-2020-15523" |
1648 | 1638 | ||
1649 | :term:`CVE_CHECK_SHOW_WARNINGS` | 1639 | :term:`CVE_CHECK_SHOW_WARNINGS` |
1650 | Specifies whether or not the :ref:`cve-check <ref-classes-cve-check>` | 1640 | Specifies whether or not the :ref:`ref-classes-cve-check` |
1651 | class should generate warning messages on the console when unpatched | 1641 | class should generate warning messages on the console when unpatched |
1652 | CVEs are found. The default is "1", but you may wish to set it to "0" if | 1642 | CVEs are found. The default is "1", but you may wish to set it to "0" if |
1653 | you are already examining/processing the logs after the build has | 1643 | you are already examining/processing the logs after the build has |
@@ -1669,7 +1659,7 @@ system and gives an overview of their function and contents. | |||
1669 | against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__. | 1659 | against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__. |
1670 | 1660 | ||
1671 | The default is ${:term:`BPN`} (except for recipes that inherit the | 1661 | The default is ${:term:`BPN`} (except for recipes that inherit the |
1672 | :ref:`pypi <ref-classes-pypi>` class where it is set based upon | 1662 | :ref:`ref-classes-pypi` class where it is set based upon |
1673 | :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE | 1663 | :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE |
1674 | database or matches with multiple entries in the database, the default | 1664 | database or matches with multiple entries in the database, the default |
1675 | value needs to be changed. | 1665 | value needs to be changed. |
@@ -1688,12 +1678,12 @@ system and gives an overview of their function and contents. | |||
1688 | :term:`CVE_VERSION` | 1678 | :term:`CVE_VERSION` |
1689 | In a recipe, defines the version used to match the recipe version | 1679 | In a recipe, defines the version used to match the recipe version |
1690 | against the version in the `NIST CVE database <https://nvd.nist.gov/>`__ | 1680 | against the version in the `NIST CVE database <https://nvd.nist.gov/>`__ |
1691 | when usign :ref:`cve-check <ref-classes-cve-check>`. | 1681 | when usign :ref:`ref-classes-cve-check`. |
1692 | 1682 | ||
1693 | The default is ${:term:`PV`} but if recipes use custom version numbers | 1683 | The default is ${:term:`PV`} but if recipes use custom version numbers |
1694 | which do not map to upstream software component release versions and the versions | 1684 | which do not map to upstream software component release versions and the versions |
1695 | used in the CVE database, then this variable can be used to set the | 1685 | used in the CVE database, then this variable can be used to set the |
1696 | version number for :ref:`cve-check <ref-classes-cve-check>`. Example:: | 1686 | version number for :ref:`ref-classes-cve-check`. Example:: |
1697 | 1687 | ||
1698 | CVE_VERSION = "2.39" | 1688 | CVE_VERSION = "2.39" |
1699 | 1689 | ||
@@ -1743,7 +1733,7 @@ system and gives an overview of their function and contents. | |||
1743 | suitable for timestamps. | 1733 | suitable for timestamps. |
1744 | 1734 | ||
1745 | :term:`DEBIAN_NOAUTONAME` | 1735 | :term:`DEBIAN_NOAUTONAME` |
1746 | When the :ref:`debian <ref-classes-debian>` class is inherited, | 1736 | When the :ref:`ref-classes-debian` class is inherited, |
1747 | which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a | 1737 | which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a |
1748 | particular package should not be renamed according to Debian library | 1738 | particular package should not be renamed according to Debian library |
1749 | package naming. You must use the package name as an override when you | 1739 | package naming. You must use the package name as an override when you |
@@ -1752,7 +1742,7 @@ system and gives an overview of their function and contents. | |||
1752 | DEBIAN_NOAUTONAME:fontconfig-utils = "1" | 1742 | DEBIAN_NOAUTONAME:fontconfig-utils = "1" |
1753 | 1743 | ||
1754 | :term:`DEBIANNAME` | 1744 | :term:`DEBIANNAME` |
1755 | When the :ref:`debian <ref-classes-debian>` class is inherited, | 1745 | When the :ref:`ref-classes-debian` class is inherited, |
1756 | which is the default behavior, :term:`DEBIANNAME` allows you to override | 1746 | which is the default behavior, :term:`DEBIANNAME` allows you to override |
1757 | the library name for an individual package. Overriding the library | 1747 | the library name for an individual package. Overriding the library |
1758 | name in these cases is rare. You must use the package name as an | 1748 | name in these cases is rare. You must use the package name as an |
@@ -1832,7 +1822,7 @@ system and gives an overview of their function and contents. | |||
1832 | the :ref:`ref-tasks-populate_sysroot` task of | 1822 | the :ref:`ref-tasks-populate_sysroot` task of |
1833 | each recipe listed in :term:`DEPENDS`, through a | 1823 | each recipe listed in :term:`DEPENDS`, through a |
1834 | ``[``\ :ref:`deptask <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]`` | 1824 | ``[``\ :ref:`deptask <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]`` |
1835 | declaration in the :ref:`base <ref-classes-base>` class. | 1825 | declaration in the :ref:`ref-classes-base` class. |
1836 | 1826 | ||
1837 | .. note:: | 1827 | .. note:: |
1838 | 1828 | ||
@@ -1848,7 +1838,7 @@ system and gives an overview of their function and contents. | |||
1848 | DEPENDS = "codegen-native" | 1838 | DEPENDS = "codegen-native" |
1849 | 1839 | ||
1850 | For more | 1840 | For more |
1851 | information, see the :ref:`native <ref-classes-native>` class and | 1841 | information, see the :ref:`ref-classes-native` class and |
1852 | the :term:`EXTRANATIVEPATH` variable. | 1842 | the :term:`EXTRANATIVEPATH` variable. |
1853 | 1843 | ||
1854 | .. note:: | 1844 | .. note:: |
@@ -1903,7 +1893,7 @@ system and gives an overview of their function and contents. | |||
1903 | Points to the area that the OpenEmbedded build system uses to place | 1893 | Points to the area that the OpenEmbedded build system uses to place |
1904 | Debian packages that are ready to be used outside of the build | 1894 | Debian packages that are ready to be used outside of the build |
1905 | system. This variable applies only when :term:`PACKAGE_CLASSES` contains | 1895 | system. This variable applies only when :term:`PACKAGE_CLASSES` contains |
1906 | ":ref:`package_deb <ref-classes-package_deb>`". | 1896 | ":ref:`ref-classes-package_deb`". |
1907 | 1897 | ||
1908 | The BitBake configuration file initially defines the | 1898 | The BitBake configuration file initially defines the |
1909 | :term:`DEPLOY_DIR_DEB` variable as a sub-folder of | 1899 | :term:`DEPLOY_DIR_DEB` variable as a sub-folder of |
@@ -1911,7 +1901,7 @@ system and gives an overview of their function and contents. | |||
1911 | 1901 | ||
1912 | DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb" | 1902 | DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb" |
1913 | 1903 | ||
1914 | The :ref:`package_deb <ref-classes-package_deb>` class uses the | 1904 | The :ref:`ref-classes-package_deb` class uses the |
1915 | :term:`DEPLOY_DIR_DEB` variable to make sure the | 1905 | :term:`DEPLOY_DIR_DEB` variable to make sure the |
1916 | :ref:`ref-tasks-package_write_deb` task | 1906 | :ref:`ref-tasks-package_write_deb` task |
1917 | writes Debian packages into the appropriate folder. For more | 1907 | writes Debian packages into the appropriate folder. For more |
@@ -1930,9 +1920,8 @@ system and gives an overview of their function and contents. | |||
1930 | It must not be used directly in recipes when deploying files. Instead, | 1920 | It must not be used directly in recipes when deploying files. Instead, |
1931 | it's only useful when a recipe needs to "read" a file already deployed | 1921 | it's only useful when a recipe needs to "read" a file already deployed |
1932 | by a dependency. So, it should be filled with the contents of | 1922 | by a dependency. So, it should be filled with the contents of |
1933 | :term:`DEPLOYDIR` by the :ref:`deploy <ref-classes-deploy>` class or | 1923 | :term:`DEPLOYDIR` by the :ref:`ref-classes-deploy` class or with the |
1934 | with the contents of :term:`IMGDEPLOYDIR` by the :ref:`image | 1924 | contents of :term:`IMGDEPLOYDIR` by the :ref:`ref-classes-image` class. |
1935 | <ref-classes-image>` class. | ||
1936 | 1925 | ||
1937 | For more information on the structure of the :term:`Build Directory`, see | 1926 | For more information on the structure of the :term:`Build Directory`, see |
1938 | ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section. | 1927 | ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section. |
@@ -1945,16 +1934,15 @@ system and gives an overview of their function and contents. | |||
1945 | Points to the area that the OpenEmbedded build system uses to place | 1934 | Points to the area that the OpenEmbedded build system uses to place |
1946 | IPK packages that are ready to be used outside of the build system. | 1935 | IPK packages that are ready to be used outside of the build system. |
1947 | This variable applies only when :term:`PACKAGE_CLASSES` contains | 1936 | This variable applies only when :term:`PACKAGE_CLASSES` contains |
1948 | ":ref:`package_ipk <ref-classes-package_ipk>`". | 1937 | ":ref:`ref-classes-package_ipk`". |
1949 | 1938 | ||
1950 | The BitBake configuration file initially defines this variable as a | 1939 | The BitBake configuration file initially defines this variable as a |
1951 | sub-folder of :term:`DEPLOY_DIR`:: | 1940 | sub-folder of :term:`DEPLOY_DIR`:: |
1952 | 1941 | ||
1953 | DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk" | 1942 | DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk" |
1954 | 1943 | ||
1955 | The :ref:`package_ipk <ref-classes-package_ipk>` class uses the | 1944 | The :ref:`ref-classes-package_ipk` class uses the :term:`DEPLOY_DIR_IPK` |
1956 | :term:`DEPLOY_DIR_IPK` variable to make sure the | 1945 | variable to make sure the :ref:`ref-tasks-package_write_ipk` task |
1957 | :ref:`ref-tasks-package_write_ipk` task | ||
1958 | writes IPK packages into the appropriate folder. For more information | 1946 | writes IPK packages into the appropriate folder. For more information |
1959 | on how packaging works, see the | 1947 | on how packaging works, see the |
1960 | ":ref:`overview-manual/concepts:package feeds`" section | 1948 | ":ref:`overview-manual/concepts:package feeds`" section |
@@ -1964,14 +1952,14 @@ system and gives an overview of their function and contents. | |||
1964 | Points to the area that the OpenEmbedded build system uses to place | 1952 | Points to the area that the OpenEmbedded build system uses to place |
1965 | RPM packages that are ready to be used outside of the build system. | 1953 | RPM packages that are ready to be used outside of the build system. |
1966 | This variable applies only when :term:`PACKAGE_CLASSES` contains | 1954 | This variable applies only when :term:`PACKAGE_CLASSES` contains |
1967 | ":ref:`package_rpm <ref-classes-package_rpm>`". | 1955 | ":ref:`ref-classes-package_rpm`". |
1968 | 1956 | ||
1969 | The BitBake configuration file initially defines this variable as a | 1957 | The BitBake configuration file initially defines this variable as a |
1970 | sub-folder of :term:`DEPLOY_DIR`:: | 1958 | sub-folder of :term:`DEPLOY_DIR`:: |
1971 | 1959 | ||
1972 | DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm" | 1960 | DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm" |
1973 | 1961 | ||
1974 | The :ref:`package_rpm <ref-classes-package_rpm>` class uses the | 1962 | The :ref:`ref-classes-package_rpm` class uses the |
1975 | :term:`DEPLOY_DIR_RPM` variable to make sure the | 1963 | :term:`DEPLOY_DIR_RPM` variable to make sure the |
1976 | :ref:`ref-tasks-package_write_rpm` task | 1964 | :ref:`ref-tasks-package_write_rpm` task |
1977 | writes RPM packages into the appropriate folder. For more information | 1965 | writes RPM packages into the appropriate folder. For more information |
@@ -1983,14 +1971,14 @@ system and gives an overview of their function and contents. | |||
1983 | Points to the area that the OpenEmbedded build system uses to place | 1971 | Points to the area that the OpenEmbedded build system uses to place |
1984 | tarballs that are ready to be used outside of the build system. This | 1972 | tarballs that are ready to be used outside of the build system. This |
1985 | variable applies only when :term:`PACKAGE_CLASSES` contains | 1973 | variable applies only when :term:`PACKAGE_CLASSES` contains |
1986 | ":ref:`package_tar <ref-classes-package_tar>`". | 1974 | ":ref:`ref-classes-package_tar`". |
1987 | 1975 | ||
1988 | The BitBake configuration file initially defines this variable as a | 1976 | The BitBake configuration file initially defines this variable as a |
1989 | sub-folder of :term:`DEPLOY_DIR`:: | 1977 | sub-folder of :term:`DEPLOY_DIR`:: |
1990 | 1978 | ||
1991 | DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar" | 1979 | DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar" |
1992 | 1980 | ||
1993 | The :ref:`package_tar <ref-classes-package_tar>` class uses the | 1981 | The :ref:`ref-classes-package_tar` class uses the |
1994 | :term:`DEPLOY_DIR_TAR` variable to make sure the | 1982 | :term:`DEPLOY_DIR_TAR` variable to make sure the |
1995 | :ref:`ref-tasks-package_write_tar` task | 1983 | :ref:`ref-tasks-package_write_tar` task |
1996 | writes TAR packages into the appropriate folder. For more information | 1984 | writes TAR packages into the appropriate folder. For more information |
@@ -1999,13 +1987,13 @@ system and gives an overview of their function and contents. | |||
1999 | in the Yocto Project Overview and Concepts Manual. | 1987 | in the Yocto Project Overview and Concepts Manual. |
2000 | 1988 | ||
2001 | :term:`DEPLOYDIR` | 1989 | :term:`DEPLOYDIR` |
2002 | When inheriting the :ref:`deploy <ref-classes-deploy>` class, the | 1990 | When inheriting the :ref:`ref-classes-deploy` class, the |
2003 | :term:`DEPLOYDIR` points to a temporary work area for deployed files that | 1991 | :term:`DEPLOYDIR` points to a temporary work area for deployed files that |
2004 | is set in the :ref:`deploy <ref-classes-deploy>` class as follows:: | 1992 | is set in the :ref:`ref-classes-deploy` class as follows:: |
2005 | 1993 | ||
2006 | DEPLOYDIR = "${WORKDIR}/deploy-${PN}" | 1994 | DEPLOYDIR = "${WORKDIR}/deploy-${PN}" |
2007 | 1995 | ||
2008 | Recipes inheriting the :ref:`deploy <ref-classes-deploy>` class should copy files to be | 1996 | Recipes inheriting the :ref:`ref-classes-deploy` class should copy files to be |
2009 | deployed into :term:`DEPLOYDIR`, and the class will take care of copying | 1997 | deployed into :term:`DEPLOYDIR`, and the class will take care of copying |
2010 | them into :term:`DEPLOY_DIR_IMAGE` | 1998 | them into :term:`DEPLOY_DIR_IMAGE` |
2011 | afterwards. | 1999 | afterwards. |
@@ -2141,10 +2129,9 @@ system and gives an overview of their function and contents. | |||
2141 | :term:`DISTRO_FEATURES_FILTER_NATIVESDK` | 2129 | :term:`DISTRO_FEATURES_FILTER_NATIVESDK` |
2142 | Specifies a list of features that if present in the target | 2130 | Specifies a list of features that if present in the target |
2143 | :term:`DISTRO_FEATURES` value should be included in | 2131 | :term:`DISTRO_FEATURES` value should be included in |
2144 | :term:`DISTRO_FEATURES` when building | 2132 | :term:`DISTRO_FEATURES` when building :ref:`ref-classes-nativesdk` |
2145 | :ref:`nativesdk <ref-classes-nativesdk>` recipes. This variable is used | 2133 | recipes. This variable is used in addition to the features filtered using |
2146 | in addition to the features filtered using the | 2134 | the :term:`DISTRO_FEATURES_NATIVESDK` variable. |
2147 | :term:`DISTRO_FEATURES_NATIVESDK` variable. | ||
2148 | 2135 | ||
2149 | :term:`DISTRO_FEATURES_NATIVE` | 2136 | :term:`DISTRO_FEATURES_NATIVE` |
2150 | Specifies a list of features that should be included in | 2137 | Specifies a list of features that should be included in |
@@ -2157,7 +2144,7 @@ system and gives an overview of their function and contents. | |||
2157 | :term:`DISTRO_FEATURES_NATIVESDK` | 2144 | :term:`DISTRO_FEATURES_NATIVESDK` |
2158 | Specifies a list of features that should be included in | 2145 | Specifies a list of features that should be included in |
2159 | :term:`DISTRO_FEATURES` when building | 2146 | :term:`DISTRO_FEATURES` when building |
2160 | :ref:`nativesdk <ref-classes-nativesdk>` recipes. This variable is used | 2147 | :ref:`ref-classes-nativesdk` recipes. This variable is used |
2161 | in addition to the features filtered using the | 2148 | in addition to the features filtered using the |
2162 | :term:`DISTRO_FEATURES_FILTER_NATIVESDK` variable. | 2149 | :term:`DISTRO_FEATURES_FILTER_NATIVESDK` variable. |
2163 | 2150 | ||
@@ -2240,7 +2227,7 @@ system and gives an overview of their function and contents. | |||
2240 | Wiki page. | 2227 | Wiki page. |
2241 | 2228 | ||
2242 | :term:`DOC_COMPRESS` | 2229 | :term:`DOC_COMPRESS` |
2243 | When inheriting the :ref:`compress_doc <ref-classes-compress_doc>` | 2230 | When inheriting the :ref:`ref-classes-compress_doc` |
2244 | class, this variable sets the compression policy used when the | 2231 | class, this variable sets the compression policy used when the |
2245 | OpenEmbedded build system compresses man pages and info pages. By | 2232 | OpenEmbedded build system compresses man pages and info pages. By |
2246 | default, the compression method used is gz (gzip). Other policies | 2233 | default, the compression method used is gz (gzip). Other policies |
@@ -2255,9 +2242,8 @@ system and gives an overview of their function and contents. | |||
2255 | :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The | 2242 | :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The |
2256 | default is "grub-efi", but "systemd-boot" can be used instead. | 2243 | default is "grub-efi", but "systemd-boot" can be used instead. |
2257 | 2244 | ||
2258 | See the :ref:`systemd-boot <ref-classes-systemd-boot>` and | 2245 | See the :ref:`ref-classes-systemd-boot` and :ref:`ref-classes-image-live` |
2259 | :ref:`image-live <ref-classes-image-live>` classes for more | 2246 | classes for more information. |
2260 | information. | ||
2261 | 2247 | ||
2262 | :term:`ENABLE_BINARY_LOCALE_GENERATION` | 2248 | :term:`ENABLE_BINARY_LOCALE_GENERATION` |
2263 | Variable that controls which locales for ``glibc`` are generated | 2249 | Variable that controls which locales for ``glibc`` are generated |
@@ -2265,11 +2251,10 @@ system and gives an overview of their function and contents. | |||
2265 | less). | 2251 | less). |
2266 | 2252 | ||
2267 | :term:`ERR_REPORT_DIR` | 2253 | :term:`ERR_REPORT_DIR` |
2268 | When used with the :ref:`report-error <ref-classes-report-error>` | 2254 | When used with the :ref:`ref-classes-report-error` class, specifies the |
2269 | class, specifies the path used for storing the debug files created by | 2255 | path used for storing the debug files created by the :ref:`error reporting |
2270 | the :ref:`error reporting | 2256 | tool <dev-manual/error-reporting-tool:using the error reporting tool>`, |
2271 | tool <dev-manual/error-reporting-tool:using the error reporting tool>`, which | 2257 | which allows you to submit build errors you encounter to a central |
2272 | allows you to submit build errors you encounter to a central | ||
2273 | database. By default, the value of this variable is | 2258 | database. By default, the value of this variable is |
2274 | ``${``\ :term:`LOG_DIR`\ ``}/error-report``. | 2259 | ``${``\ :term:`LOG_DIR`\ ``}/error-report``. |
2275 | 2260 | ||
@@ -2413,8 +2398,7 @@ system and gives an overview of their function and contents. | |||
2413 | When kernel tools are available in the tree, they are preferred over | 2398 | When kernel tools are available in the tree, they are preferred over |
2414 | any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS` | 2399 | any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS` |
2415 | variable tells the OpenEmbedded build system to prefer the installed | 2400 | variable tells the OpenEmbedded build system to prefer the installed |
2416 | external tools. See the | 2401 | external tools. See the :ref:`ref-classes-kernel-yocto` class in |
2417 | :ref:`kernel-yocto <ref-classes-kernel-yocto>` class in | ||
2418 | ``meta/classes-recipe`` to see how the variable is used. | 2402 | ``meta/classes-recipe`` to see how the variable is used. |
2419 | 2403 | ||
2420 | :term:`EXTERNAL_TOOLCHAIN` | 2404 | :term:`EXTERNAL_TOOLCHAIN` |
@@ -2424,7 +2408,7 @@ system and gives an overview of their function and contents. | |||
2424 | installed. | 2408 | installed. |
2425 | 2409 | ||
2426 | :term:`EXTERNALSRC` | 2410 | :term:`EXTERNALSRC` |
2427 | When inheriting the :ref:`externalsrc <ref-classes-externalsrc>` | 2411 | When inheriting the :ref:`ref-classes-externalsrc` |
2428 | class, this variable points to the source tree, which is outside of | 2412 | class, this variable points to the source tree, which is outside of |
2429 | the OpenEmbedded build system. When set, this variable sets the | 2413 | the OpenEmbedded build system. When set, this variable sets the |
2430 | :term:`S` variable, which is what the OpenEmbedded build | 2414 | :term:`S` variable, which is what the OpenEmbedded build |
@@ -2436,7 +2420,7 @@ system and gives an overview of their function and contents. | |||
2436 | section in the Yocto Project Development Tasks Manual. | 2420 | section in the Yocto Project Development Tasks Manual. |
2437 | 2421 | ||
2438 | :term:`EXTERNALSRC_BUILD` | 2422 | :term:`EXTERNALSRC_BUILD` |
2439 | When inheriting the :ref:`externalsrc <ref-classes-externalsrc>` | 2423 | When inheriting the :ref:`ref-classes-externalsrc` |
2440 | class, this variable points to the directory in which the recipe's | 2424 | class, this variable points to the directory in which the recipe's |
2441 | source code is built, which is outside of the OpenEmbedded build | 2425 | source code is built, which is outside of the OpenEmbedded build |
2442 | system. When set, this variable sets the :term:`B` variable, | 2426 | system. When set, this variable sets the :term:`B` variable, |
@@ -2449,7 +2433,7 @@ system and gives an overview of their function and contents. | |||
2449 | section in the Yocto Project Development Tasks Manual. | 2433 | section in the Yocto Project Development Tasks Manual. |
2450 | 2434 | ||
2451 | :term:`EXTRA_AUTORECONF` | 2435 | :term:`EXTRA_AUTORECONF` |
2452 | For recipes inheriting the :ref:`autotools <ref-classes-autotools>` | 2436 | For recipes inheriting the :ref:`ref-classes-autotools` |
2453 | class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to | 2437 | class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to |
2454 | pass to the ``autoreconf`` command that is executed during the | 2438 | pass to the ``autoreconf`` command that is executed during the |
2455 | :ref:`ref-tasks-configure` task. | 2439 | :ref:`ref-tasks-configure` task. |
@@ -2522,7 +2506,7 @@ system and gives an overview of their function and contents. | |||
2522 | 2506 | ||
2523 | :term:`EXTRA_OECMAKE` | 2507 | :term:`EXTRA_OECMAKE` |
2524 | Additional `CMake <https://cmake.org/overview/>`__ options. See the | 2508 | Additional `CMake <https://cmake.org/overview/>`__ options. See the |
2525 | :ref:`cmake <ref-classes-cmake>` class for additional information. | 2509 | :ref:`ref-classes-cmake` class for additional information. |
2526 | 2510 | ||
2527 | :term:`EXTRA_OECONF` | 2511 | :term:`EXTRA_OECONF` |
2528 | Additional ``configure`` script options. See | 2512 | Additional ``configure`` script options. See |
@@ -2540,21 +2524,22 @@ system and gives an overview of their function and contents. | |||
2540 | :term:`EXTRA_OEMAKE` to pass the required flags. | 2524 | :term:`EXTRA_OEMAKE` to pass the required flags. |
2541 | 2525 | ||
2542 | :term:`EXTRA_OESCONS` | 2526 | :term:`EXTRA_OESCONS` |
2543 | When inheriting the :ref:`scons <ref-classes-scons>` class, this | 2527 | When inheriting the :ref:`ref-classes-scons` class, this |
2544 | variable specifies additional configuration options you want to pass | 2528 | variable specifies additional configuration options you want to pass |
2545 | to the ``scons`` command line. | 2529 | to the ``scons`` command line. |
2546 | 2530 | ||
2547 | :term:`EXTRA_USERS_PARAMS` | 2531 | :term:`EXTRA_USERS_PARAMS` |
2548 | When inheriting the :ref:`extrausers <ref-classes-extrausers>` | 2532 | When inheriting the :ref:`ref-classes-extrausers` |
2549 | class, this variable provides image level user and group operations. | 2533 | class, this variable provides image level user and group operations. |
2550 | This is a more global method of providing user and group | 2534 | This is a more global method of providing user and group |
2551 | configuration as compared to using the | 2535 | configuration as compared to using the |
2552 | :ref:`useradd <ref-classes-useradd>` class, which ties user and | 2536 | :ref:`ref-classes-useradd` class, which ties user and |
2553 | group configurations to a specific recipe. | 2537 | group configurations to a specific recipe. |
2554 | 2538 | ||
2555 | The set list of commands you can configure using the | 2539 | The set list of commands you can configure using the |
2556 | :term:`EXTRA_USERS_PARAMS` is shown in the :ref:`extrausers <ref-classes-extrausers>` class. These | 2540 | :term:`EXTRA_USERS_PARAMS` is shown in the |
2557 | commands map to the normal Unix commands of the same names:: | 2541 | :ref:`ref-classes-extrausers` class. These commands map to the normal |
2542 | Unix commands of the same names:: | ||
2558 | 2543 | ||
2559 | # EXTRA_USERS_PARAMS = "\ | 2544 | # EXTRA_USERS_PARAMS = "\ |
2560 | # useradd -p '' tester; \ | 2545 | # useradd -p '' tester; \ |
@@ -2892,7 +2877,7 @@ system and gives an overview of their function and contents. | |||
2892 | 2877 | ||
2893 | :term:`FIT_DESC` | 2878 | :term:`FIT_DESC` |
2894 | Specifies the description string encoded into a fitImage. The default | 2879 | Specifies the description string encoded into a fitImage. The default |
2895 | value is set by the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` | 2880 | value is set by the :ref:`ref-classes-kernel-fitimage` |
2896 | class as follows:: | 2881 | class as follows:: |
2897 | 2882 | ||
2898 | FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}" | 2883 | FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}" |
@@ -2938,7 +2923,7 @@ system and gives an overview of their function and contents. | |||
2938 | The default value is "pkcs-1.5". | 2923 | The default value is "pkcs-1.5". |
2939 | 2924 | ||
2940 | :term:`FIT_SIGN_INDIVIDUAL` | 2925 | :term:`FIT_SIGN_INDIVIDUAL` |
2941 | If set to "1", then the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` | 2926 | If set to "1", then the :ref:`ref-classes-kernel-fitimage` |
2942 | class will sign the kernel, dtb and ramdisk images individually in addition | 2927 | class will sign the kernel, dtb and ramdisk images individually in addition |
2943 | to signing the fitImage itself. This could be useful if you are | 2928 | to signing the fitImage itself. This could be useful if you are |
2944 | intending to verify signatures in another context than booting via | 2929 | intending to verify signatures in another context than booting via |
@@ -2949,14 +2934,14 @@ system and gives an overview of their function and contents. | |||
2949 | value is "2048". | 2934 | value is "2048". |
2950 | 2935 | ||
2951 | :term:`FONT_EXTRA_RDEPENDS` | 2936 | :term:`FONT_EXTRA_RDEPENDS` |
2952 | When inheriting the :ref:`fontcache <ref-classes-fontcache>` class, | 2937 | When inheriting the :ref:`ref-classes-fontcache` class, |
2953 | this variable specifies the runtime dependencies for font packages. | 2938 | this variable specifies the runtime dependencies for font packages. |
2954 | By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils". | 2939 | By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils". |
2955 | 2940 | ||
2956 | :term:`FONT_PACKAGES` | 2941 | :term:`FONT_PACKAGES` |
2957 | When inheriting the :ref:`fontcache <ref-classes-fontcache>` class, | 2942 | When inheriting the :ref:`ref-classes-fontcache` class, this variable |
2958 | this variable identifies packages containing font files that need to | 2943 | identifies packages containing font files that need to be cached by |
2959 | be cached by Fontconfig. By default, the :ref:`fontcache <ref-classes-fontcache>` class assumes | 2944 | Fontconfig. By default, the :ref:`ref-classes-fontcache` class assumes |
2960 | that fonts are in the recipe's main package (i.e. | 2945 | that fonts are in the recipe's main package (i.e. |
2961 | ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you | 2946 | ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you |
2962 | need are in a package other than that main package. | 2947 | need are in a package other than that main package. |
@@ -3007,7 +2992,7 @@ system and gives an overview of their function and contents. | |||
3007 | when it is cloned. | 2992 | when it is cloned. |
3008 | 2993 | ||
3009 | :term:`GITHUB_BASE_URI` | 2994 | :term:`GITHUB_BASE_URI` |
3010 | When inheriting the :ref:`github-releases <ref-classes-github-releases>` | 2995 | When inheriting the :ref:`ref-classes-github-releases` |
3011 | class, specifies the base URL for fetching releases for the github | 2996 | class, specifies the base URL for fetching releases for the github |
3012 | project you wish to fetch sources from. The default value is as follows:: | 2997 | project you wish to fetch sources from. The default value is as follows:: |
3013 | 2998 | ||
@@ -3028,7 +3013,7 @@ system and gives an overview of their function and contents. | |||
3028 | GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8" | 3013 | GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8" |
3029 | 3014 | ||
3030 | :term:`GROUPADD_PARAM` | 3015 | :term:`GROUPADD_PARAM` |
3031 | When inheriting the :ref:`useradd <ref-classes-useradd>` class, | 3016 | When inheriting the :ref:`ref-classes-useradd` class, |
3032 | this variable specifies for a package what parameters should be | 3017 | this variable specifies for a package what parameters should be |
3033 | passed to the ``groupadd`` command if you wish to add a group to the | 3018 | passed to the ``groupadd`` command if you wish to add a group to the |
3034 | system when the package is installed. | 3019 | system when the package is installed. |
@@ -3041,7 +3026,7 @@ system and gives an overview of their function and contents. | |||
3041 | ``groupadd``, see https://linux.die.net/man/8/groupadd. | 3026 | ``groupadd``, see https://linux.die.net/man/8/groupadd. |
3042 | 3027 | ||
3043 | :term:`GROUPMEMS_PARAM` | 3028 | :term:`GROUPMEMS_PARAM` |
3044 | When inheriting the :ref:`useradd <ref-classes-useradd>` class, | 3029 | When inheriting the :ref:`ref-classes-useradd` class, |
3045 | this variable specifies for a package what parameters should be | 3030 | this variable specifies for a package what parameters should be |
3046 | passed to the ``groupmems`` command if you wish to modify the members | 3031 | passed to the ``groupmems`` command if you wish to modify the members |
3047 | of a group when the package is installed. | 3032 | of a group when the package is installed. |
@@ -3055,7 +3040,7 @@ system and gives an overview of their function and contents. | |||
3055 | ``local.conf`` or distribution configuration file to enable graphics | 3040 | ``local.conf`` or distribution configuration file to enable graphics |
3056 | and serial in the menu. | 3041 | and serial in the menu. |
3057 | 3042 | ||
3058 | See the :ref:`grub-efi <ref-classes-grub-efi>` class for more | 3043 | See the :ref:`ref-classes-grub-efi` class for more |
3059 | information on how this variable is used. | 3044 | information on how this variable is used. |
3060 | 3045 | ||
3061 | :term:`GRUB_OPTS` | 3046 | :term:`GRUB_OPTS` |
@@ -3064,7 +3049,7 @@ system and gives an overview of their function and contents. | |||
3064 | multiple options. | 3049 | multiple options. |
3065 | 3050 | ||
3066 | The :term:`GRUB_OPTS` variable is optional. See the | 3051 | The :term:`GRUB_OPTS` variable is optional. See the |
3067 | :ref:`grub-efi <ref-classes-grub-efi>` class for more information | 3052 | :ref:`ref-classes-grub-efi` class for more information |
3068 | on how this variable is used. | 3053 | on how this variable is used. |
3069 | 3054 | ||
3070 | :term:`GRUB_TIMEOUT` | 3055 | :term:`GRUB_TIMEOUT` |
@@ -3072,12 +3057,11 @@ system and gives an overview of their function and contents. | |||
3072 | GNU GRand Unified Bootloader (GRUB). | 3057 | GNU GRand Unified Bootloader (GRUB). |
3073 | 3058 | ||
3074 | The :term:`GRUB_TIMEOUT` variable is optional. See the | 3059 | The :term:`GRUB_TIMEOUT` variable is optional. See the |
3075 | :ref:`grub-efi <ref-classes-grub-efi>` class for more information | 3060 | :ref:`ref-classes-grub-efi` class for more information |
3076 | on how this variable is used. | 3061 | on how this variable is used. |
3077 | 3062 | ||
3078 | :term:`GTKIMMODULES_PACKAGES` | 3063 | :term:`GTKIMMODULES_PACKAGES` |
3079 | When inheriting the | 3064 | When inheriting the :ref:`ref-classes-gtk-immodules-cache` class, |
3080 | :ref:`gtk-immodules-cache <ref-classes-gtk-immodules-cache>` class, | ||
3081 | this variable specifies the packages that contain the GTK+ input | 3065 | this variable specifies the packages that contain the GTK+ input |
3082 | method modules being installed when the modules are in packages other | 3066 | method modules being installed when the modules are in packages other |
3083 | than the main package. | 3067 | than the main package. |
@@ -3180,7 +3164,7 @@ system and gives an overview of their function and contents. | |||
3180 | :term:`ICECC_CLASS_DISABLE` | 3164 | :term:`ICECC_CLASS_DISABLE` |
3181 | Identifies user classes that you do not want the Icecream distributed | 3165 | Identifies user classes that you do not want the Icecream distributed |
3182 | compile support to consider. This variable is used by the | 3166 | compile support to consider. This variable is used by the |
3183 | :ref:`icecc <ref-classes-icecc>` class. You set this variable in | 3167 | :ref:`ref-classes-icecc` class. You set this variable in |
3184 | your ``local.conf`` file. | 3168 | your ``local.conf`` file. |
3185 | 3169 | ||
3186 | When you list classes using this variable, the recipes inheriting | 3170 | When you list classes using this variable, the recipes inheriting |
@@ -3204,7 +3188,7 @@ system and gives an overview of their function and contents. | |||
3204 | 3188 | ||
3205 | :term:`ICECC_ENV_EXEC` | 3189 | :term:`ICECC_ENV_EXEC` |
3206 | Points to the ``icecc-create-env`` script that you provide. This | 3190 | Points to the ``icecc-create-env`` script that you provide. This |
3207 | variable is used by the :ref:`icecc <ref-classes-icecc>` class. You | 3191 | variable is used by the :ref:`ref-classes-icecc` class. You |
3208 | set this variable in your ``local.conf`` file. | 3192 | set this variable in your ``local.conf`` file. |
3209 | 3193 | ||
3210 | If you do not point to a script that you provide, the OpenEmbedded | 3194 | If you do not point to a script that you provide, the OpenEmbedded |
@@ -3241,13 +3225,13 @@ system and gives an overview of their function and contents. | |||
3241 | :term:`ICECC_PATH` | 3225 | :term:`ICECC_PATH` |
3242 | The location of the ``icecc`` binary. You can set this variable in | 3226 | The location of the ``icecc`` binary. You can set this variable in |
3243 | your ``local.conf`` file. If your ``local.conf`` file does not define | 3227 | your ``local.conf`` file. If your ``local.conf`` file does not define |
3244 | this variable, the :ref:`icecc <ref-classes-icecc>` class attempts | 3228 | this variable, the :ref:`ref-classes-icecc` class attempts |
3245 | to define it by locating ``icecc`` using ``which``. | 3229 | to define it by locating ``icecc`` using ``which``. |
3246 | 3230 | ||
3247 | :term:`ICECC_RECIPE_DISABLE` | 3231 | :term:`ICECC_RECIPE_DISABLE` |
3248 | Identifies user recipes that you do not want the Icecream distributed | 3232 | Identifies user recipes that you do not want the Icecream distributed |
3249 | compile support to consider. This variable is used by the | 3233 | compile support to consider. This variable is used by the |
3250 | :ref:`icecc <ref-classes-icecc>` class. You set this variable in | 3234 | :ref:`ref-classes-icecc` class. You set this variable in |
3251 | your ``local.conf`` file. | 3235 | your ``local.conf`` file. |
3252 | 3236 | ||
3253 | When you list recipes using this variable, you are excluding them | 3237 | When you list recipes using this variable, you are excluding them |
@@ -3259,7 +3243,7 @@ system and gives an overview of their function and contents. | |||
3259 | :term:`PARALLEL_MAKE` variable that you want to | 3243 | :term:`PARALLEL_MAKE` variable that you want to |
3260 | force remote distributed compilation on using the Icecream | 3244 | force remote distributed compilation on using the Icecream |
3261 | distributed compile support. This variable is used by the | 3245 | distributed compile support. This variable is used by the |
3262 | :ref:`icecc <ref-classes-icecc>` class. You set this variable in | 3246 | :ref:`ref-classes-icecc` class. You set this variable in |
3263 | your ``local.conf`` file. | 3247 | your ``local.conf`` file. |
3264 | 3248 | ||
3265 | :term:`IMAGE_BASENAME` | 3249 | :term:`IMAGE_BASENAME` |
@@ -3301,12 +3285,12 @@ system and gives an overview of their function and contents. | |||
3301 | ":doc:`/ref-manual/kickstart`" chapter. | 3285 | ":doc:`/ref-manual/kickstart`" chapter. |
3302 | 3286 | ||
3303 | :term:`IMAGE_BUILDINFO_FILE` | 3287 | :term:`IMAGE_BUILDINFO_FILE` |
3304 | When using the :ref:`image-buildinfo <ref-classes-image-buildinfo>` class, | 3288 | When using the :ref:`ref-classes-image-buildinfo` class, |
3305 | specifies the file in the image to write the build information into. The | 3289 | specifies the file in the image to write the build information into. The |
3306 | default value is "``${sysconfdir}/buildinfo``". | 3290 | default value is "``${sysconfdir}/buildinfo``". |
3307 | 3291 | ||
3308 | :term:`IMAGE_BUILDINFO_VARS` | 3292 | :term:`IMAGE_BUILDINFO_VARS` |
3309 | When using the :ref:`image-buildinfo <ref-classes-image-buildinfo>` class, | 3293 | When using the :ref:`ref-classes-image-buildinfo` class, |
3310 | specifies the list of variables to include in the `Build Configuration` | 3294 | specifies the list of variables to include in the `Build Configuration` |
3311 | section of the output file (as a space-separated list). Defaults to | 3295 | section of the output file (as a space-separated list). Defaults to |
3312 | ":term:`DISTRO` :term:`DISTRO_VERSION`". | 3296 | ":term:`DISTRO` :term:`DISTRO_VERSION`". |
@@ -3331,7 +3315,7 @@ system and gives an overview of their function and contents. | |||
3331 | 3315 | ||
3332 | You typically do not need to set this variable unless you are adding | 3316 | You typically do not need to set this variable unless you are adding |
3333 | support for a new image type. For more examples on how to set this | 3317 | support for a new image type. For more examples on how to set this |
3334 | variable, see the :ref:`image_types <ref-classes-image_types>` | 3318 | variable, see the :ref:`ref-classes-image_types` |
3335 | class file, which is ``meta/classes-recipe/image_types.bbclass``. | 3319 | class file, which is ``meta/classes-recipe/image_types.bbclass``. |
3336 | 3320 | ||
3337 | :term:`IMAGE_DEVICE_TABLES` | 3321 | :term:`IMAGE_DEVICE_TABLES` |
@@ -3421,16 +3405,15 @@ system and gives an overview of their function and contents. | |||
3421 | 3405 | ||
3422 | :term:`IMAGE_INSTALL` | 3406 | :term:`IMAGE_INSTALL` |
3423 | Used by recipes to specify the packages to install into an image | 3407 | Used by recipes to specify the packages to install into an image |
3424 | through the :ref:`image <ref-classes-image>` class. Use the | 3408 | through the :ref:`ref-classes-image` class. Use the |
3425 | :term:`IMAGE_INSTALL` variable with care to avoid ordering issues. | 3409 | :term:`IMAGE_INSTALL` variable with care to avoid ordering issues. |
3426 | 3410 | ||
3427 | Image recipes set :term:`IMAGE_INSTALL` to specify the packages to | 3411 | Image recipes set :term:`IMAGE_INSTALL` to specify the packages to |
3428 | install into an image through :ref:`ref-classes-image`. Additionally, | 3412 | install into an image through :ref:`ref-classes-image`. Additionally, |
3429 | there are "helper" classes such as the | 3413 | there are "helper" classes such as the :ref:`ref-classes-core-image` |
3430 | :ref:`core-image <ref-classes-core-image>` class which can | 3414 | class which can take lists used with :term:`IMAGE_FEATURES` and turn |
3431 | take lists used with :term:`IMAGE_FEATURES` and turn them into | 3415 | them into auto-generated entries in :term:`IMAGE_INSTALL` in addition |
3432 | auto-generated entries in :term:`IMAGE_INSTALL` in addition to its | 3416 | to its default contents. |
3433 | default contents. | ||
3434 | 3417 | ||
3435 | When you use this variable, it is best to use it as follows:: | 3418 | When you use this variable, it is best to use it as follows:: |
3436 | 3419 | ||
@@ -3563,19 +3546,16 @@ system and gives an overview of their function and contents. | |||
3563 | :term:`IMAGE_PKGTYPE` | 3546 | :term:`IMAGE_PKGTYPE` |
3564 | Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the | 3547 | Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the |
3565 | OpenEmbedded build system. The variable is defined appropriately by | 3548 | OpenEmbedded build system. The variable is defined appropriately by |
3566 | the :ref:`package_deb <ref-classes-package_deb>`, | 3549 | the :ref:`ref-classes-package_deb`, :ref:`ref-classes-package_rpm`, |
3567 | :ref:`package_rpm <ref-classes-package_rpm>`, | 3550 | :ref:`ref-classes-package_ipk`, or :ref:`ref-classes-package_tar` class. |
3568 | :ref:`package_ipk <ref-classes-package_ipk>`, or | ||
3569 | :ref:`package_tar <ref-classes-package_tar>` class. | ||
3570 | 3551 | ||
3571 | .. note:: | 3552 | .. note:: |
3572 | 3553 | ||
3573 | The ``package_tar`` class is broken and is not supported. It is | 3554 | The ``package_tar`` class is broken and is not supported. It is |
3574 | recommended that you do not use it. | 3555 | recommended that you do not use it. |
3575 | 3556 | ||
3576 | The :ref:`populate_sdk_* <ref-classes-populate-sdk-*>` and | 3557 | The :ref:`ref-classes-populate-sdk-*` and :ref:`ref-classes-image` |
3577 | :ref:`image <ref-classes-image>` classes use the :term:`IMAGE_PKGTYPE` | 3558 | classes use the :term:`IMAGE_PKGTYPE` for packaging up images and SDKs. |
3578 | for packaging up images and SDKs. | ||
3579 | 3559 | ||
3580 | You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the | 3560 | You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the |
3581 | variable is set indirectly through the appropriate | 3561 | variable is set indirectly through the appropriate |
@@ -3672,7 +3652,7 @@ system and gives an overview of their function and contents. | |||
3672 | 3652 | ||
3673 | :term:`IMAGE_TYPEDEP` | 3653 | :term:`IMAGE_TYPEDEP` |
3674 | Specifies a dependency from one image type on another. Here is an | 3654 | Specifies a dependency from one image type on another. Here is an |
3675 | example from the :ref:`image-live <ref-classes-image-live>` class:: | 3655 | example from the :ref:`ref-classes-image-live` class:: |
3676 | 3656 | ||
3677 | IMAGE_TYPEDEP:live = "ext3" | 3657 | IMAGE_TYPEDEP:live = "ext3" |
3678 | 3658 | ||
@@ -3739,14 +3719,14 @@ system and gives an overview of their function and contents. | |||
3739 | the build artifacts. | 3719 | the build artifacts. |
3740 | 3720 | ||
3741 | :term:`IMGDEPLOYDIR` | 3721 | :term:`IMGDEPLOYDIR` |
3742 | When inheriting the :ref:`image <ref-classes-image>` class directly or | 3722 | When inheriting the :ref:`ref-classes-image` class directly or |
3743 | through the :ref:`core-image <ref-classes-core-image>` class, the | 3723 | through the :ref:`ref-classes-core-image` class, the |
3744 | :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files | 3724 | :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files |
3745 | that is set in the ``image`` class as follows:: | 3725 | that is set in the ``image`` class as follows:: |
3746 | 3726 | ||
3747 | IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete" | 3727 | IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete" |
3748 | 3728 | ||
3749 | Recipes inheriting the :ref:`image <ref-classes-image>` class should copy | 3729 | Recipes inheriting the :ref:`ref-classes-image` class should copy |
3750 | files to be deployed into :term:`IMGDEPLOYDIR`, and the class will take | 3730 | files to be deployed into :term:`IMGDEPLOYDIR`, and the class will take |
3751 | care of copying them into :term:`DEPLOY_DIR_IMAGE` afterwards. | 3731 | care of copying them into :term:`DEPLOY_DIR_IMAGE` afterwards. |
3752 | 3732 | ||
@@ -3889,10 +3869,9 @@ system and gives an overview of their function and contents. | |||
3889 | :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit | 3869 | :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit |
3890 | this stripping. | 3870 | this stripping. |
3891 | 3871 | ||
3892 | If you want to use this variable, include the | 3872 | If you want to use this variable, include the :ref:`ref-classes-staging` |
3893 | :ref:`staging <ref-classes-staging>` class. This class uses a | 3873 | class. This class uses a ``sys_strip()`` function to test for the variable |
3894 | ``sys_strip()`` function to test for the variable and acts | 3874 | and acts accordingly. |
3895 | accordingly. | ||
3896 | 3875 | ||
3897 | .. note:: | 3876 | .. note:: |
3898 | 3877 | ||
@@ -3945,11 +3924,12 @@ system and gives an overview of their function and contents. | |||
3945 | section in the Yocto Project Development Tasks Manual. | 3924 | section in the Yocto Project Development Tasks Manual. |
3946 | 3925 | ||
3947 | :term:`INITRAMFS_DEPLOY_DIR_IMAGE` | 3926 | :term:`INITRAMFS_DEPLOY_DIR_IMAGE` |
3948 | Indicates the deploy directory used by :ref:`ref-tasks-bundle_initramfs` where the | 3927 | Indicates the deploy directory used by :ref:`ref-tasks-bundle_initramfs` |
3949 | :term:`INITRAMFS_IMAGE` will be fetched from. | 3928 | where the :term:`INITRAMFS_IMAGE` will be fetched from. This variable is |
3950 | This variable is set by default to ``${DEPLOY_DIR_IMAGE}`` in the | 3929 | set by default to ``${DEPLOY_DIR_IMAGE}`` in the |
3951 | :ref:`kernel <ref-classes-kernel>` class and it's only meant to be changed | 3930 | :ref:`ref-classes-kernel` class and it's only meant to be changed when |
3952 | when building an :term:`Initramfs` image from a separate multiconfig via :term:`INITRAMFS_MULTICONFIG`. | 3931 | building an :term:`Initramfs` image from a separate multiconfig via |
3932 | :term:`INITRAMFS_MULTICONFIG`. | ||
3953 | 3933 | ||
3954 | :term:`INITRAMFS_FSTYPES` | 3934 | :term:`INITRAMFS_FSTYPES` |
3955 | Defines the format for the output image of an initial RAM filesystem | 3935 | Defines the format for the output image of an initial RAM filesystem |
@@ -3988,9 +3968,9 @@ system and gives an overview of their function and contents. | |||
3988 | 3968 | ||
3989 | You can also find more information by referencing the | 3969 | You can also find more information by referencing the |
3990 | ``meta-poky/conf/templates/default/local.conf.sample.extended`` | 3970 | ``meta-poky/conf/templates/default/local.conf.sample.extended`` |
3991 | configuration file in the Source Directory, the :ref:`image | 3971 | configuration file in the Source Directory, the :ref:`ref-classes-image` |
3992 | <ref-classes-image>` class, and the :ref:`kernel <ref-classes-kernel>` | 3972 | class, and the :ref:`ref-classes-kernel` class to see how to use the |
3993 | class to see how to use the :term:`INITRAMFS_IMAGE` variable. | 3973 | :term:`INITRAMFS_IMAGE` variable. |
3994 | 3974 | ||
3995 | If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no | 3975 | If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no |
3996 | :term:`Initramfs` image is built. | 3976 | :term:`Initramfs` image is built. |
@@ -4037,8 +4017,7 @@ system and gives an overview of their function and contents. | |||
4037 | 4017 | ||
4038 | INITRAMFS_IMAGE_BUNDLE = "1" | 4018 | INITRAMFS_IMAGE_BUNDLE = "1" |
4039 | 4019 | ||
4040 | By default, the | 4020 | By default, the :ref:`ref-classes-kernel` class sets this variable to a |
4041 | :ref:`kernel <ref-classes-kernel>` class sets this variable to a | ||
4042 | null string as follows:: | 4021 | null string as follows:: |
4043 | 4022 | ||
4044 | INITRAMFS_IMAGE_BUNDLE ?= "" | 4023 | INITRAMFS_IMAGE_BUNDLE ?= "" |
@@ -4071,7 +4050,8 @@ system and gives an overview of their function and contents. | |||
4071 | information. | 4050 | information. |
4072 | 4051 | ||
4073 | :term:`INITRAMFS_MULTICONFIG` | 4052 | :term:`INITRAMFS_MULTICONFIG` |
4074 | Defines the multiconfig to create a multiconfig dependency to be used by the :ref:`kernel <ref-classes-kernel>` class. | 4053 | Defines the multiconfig to create a multiconfig dependency to be used by |
4054 | the :ref:`ref-classes-kernel` class. | ||
4075 | 4055 | ||
4076 | This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from | 4056 | This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from |
4077 | a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`. | 4057 | a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`. |
@@ -4097,7 +4077,7 @@ system and gives an overview of their function and contents. | |||
4097 | initial RAM disk (``initrd``). | 4077 | initial RAM disk (``initrd``). |
4098 | 4078 | ||
4099 | The :term:`INITRD` variable is an optional variable used with the | 4079 | The :term:`INITRD` variable is an optional variable used with the |
4100 | :ref:`image-live <ref-classes-image-live>` class. | 4080 | :ref:`ref-classes-image-live` class. |
4101 | 4081 | ||
4102 | :term:`INITRD_IMAGE` | 4082 | :term:`INITRD_IMAGE` |
4103 | When building a "live" bootable image (i.e. when | 4083 | When building a "live" bootable image (i.e. when |
@@ -4106,8 +4086,7 @@ system and gives an overview of their function and contents. | |||
4106 | provide the initial RAM disk image. The default value is | 4086 | provide the initial RAM disk image. The default value is |
4107 | "core-image-minimal-initramfs". | 4087 | "core-image-minimal-initramfs". |
4108 | 4088 | ||
4109 | See the :ref:`image-live <ref-classes-image-live>` class for more | 4089 | See the :ref:`ref-classes-image-live` class for more information. |
4110 | information. | ||
4111 | 4090 | ||
4112 | :term:`INITSCRIPT_NAME` | 4091 | :term:`INITSCRIPT_NAME` |
4113 | The filename of the initialization script as installed to | 4092 | The filename of the initialization script as installed to |
@@ -4134,7 +4113,7 @@ system and gives an overview of their function and contents. | |||
4134 | in initlevels 2 and 5, and stops the script in levels 0, 1 and 6. | 4113 | in initlevels 2 and 5, and stops the script in levels 0, 1 and 6. |
4135 | 4114 | ||
4136 | The variable's default value is "defaults", which is set in the | 4115 | The variable's default value is "defaults", which is set in the |
4137 | :ref:`update-rc.d <ref-classes-update-rc.d>` class. | 4116 | :ref:`ref-classes-update-rc.d` class. |
4138 | 4117 | ||
4139 | The value in :term:`INITSCRIPT_PARAMS` is passed through to the | 4118 | The value in :term:`INITSCRIPT_PARAMS` is passed through to the |
4140 | ``update-rc.d`` command. For more information on valid parameters, | 4119 | ``update-rc.d`` command. For more information on valid parameters, |
@@ -4212,7 +4191,7 @@ system and gives an overview of their function and contents. | |||
4212 | BSP. | 4191 | BSP. |
4213 | 4192 | ||
4214 | :term:`KBUILD_DEFCONFIG` | 4193 | :term:`KBUILD_DEFCONFIG` |
4215 | When used with the :ref:`kernel-yocto <ref-classes-kernel-yocto>` | 4194 | When used with the :ref:`ref-classes-kernel-yocto` |
4216 | class, specifies an "in-tree" kernel configuration file for use | 4195 | class, specifies an "in-tree" kernel configuration file for use |
4217 | during a kernel build. | 4196 | during a kernel build. |
4218 | 4197 | ||
@@ -4245,7 +4224,7 @@ system and gives an overview of their function and contents. | |||
4245 | section in the Yocto Project Linux Kernel Development Manual. | 4224 | section in the Yocto Project Linux Kernel Development Manual. |
4246 | 4225 | ||
4247 | :term:`KCONFIG_MODE` | 4226 | :term:`KCONFIG_MODE` |
4248 | When used with the :ref:`kernel-yocto <ref-classes-kernel-yocto>` | 4227 | When used with the :ref:`ref-classes-kernel-yocto` |
4249 | class, specifies the kernel configuration values to use for options | 4228 | class, specifies the kernel configuration values to use for options |
4250 | not specified in the provided ``defconfig`` file. Valid options are:: | 4229 | not specified in the provided ``defconfig`` file. Valid options are:: |
4251 | 4230 | ||
@@ -4302,12 +4281,12 @@ system and gives an overview of their function and contents. | |||
4302 | 4281 | ||
4303 | :term:`KERNEL_CLASSES` | 4282 | :term:`KERNEL_CLASSES` |
4304 | A list of classes defining kernel image types that the | 4283 | A list of classes defining kernel image types that the |
4305 | :ref:`kernel <ref-classes-kernel>` class should inherit. You typically | 4284 | :ref:`ref-classes-kernel` class should inherit. You typically |
4306 | append this variable to enable extended image types. An example is | 4285 | append this variable to enable extended image types. An example is |
4307 | ":ref:`kernel-fitimage <ref-classes-kernel-fitimage>`", which enables | 4286 | ":ref:`ref-classes-kernel-fitimage`", which enables |
4308 | fitImage support and resides in ``meta/classes-recipe/kernel-fitimage.bbclass``. | 4287 | fitImage support and resides in ``meta/classes-recipe/kernel-fitimage.bbclass``. |
4309 | You can register custom kernel image types with the | 4288 | You can register custom kernel image types with the |
4310 | :ref:`kernel <ref-classes-kernel>` class using this variable. | 4289 | :ref:`ref-classes-kernel` class using this variable. |
4311 | 4290 | ||
4312 | :term:`KERNEL_DEBUG_TIMESTAMPS` | 4291 | :term:`KERNEL_DEBUG_TIMESTAMPS` |
4313 | If set to "1", enables timestamping functionality during building | 4292 | If set to "1", enables timestamping functionality during building |
@@ -4329,9 +4308,8 @@ system and gives an overview of their function and contents. | |||
4329 | There is legacy support for specifying the full path to the device | 4308 | There is legacy support for specifying the full path to the device |
4330 | tree. However, providing just the ``.dtb`` file is preferred. | 4309 | tree. However, providing just the ``.dtb`` file is preferred. |
4331 | 4310 | ||
4332 | In order to use this variable, the | 4311 | In order to use this variable, the :ref:`ref-classes-kernel-devicetree` |
4333 | :ref:`kernel-devicetree <ref-classes-kernel-devicetree>` class must | 4312 | class must be inherited. |
4334 | be inherited. | ||
4335 | 4313 | ||
4336 | :term:`KERNEL_DTB_LINK_NAME` | 4314 | :term:`KERNEL_DTB_LINK_NAME` |
4337 | The link name of the kernel device tree binary (DTB). This variable | 4315 | The link name of the kernel device tree binary (DTB). This variable |
@@ -4366,9 +4344,8 @@ system and gives an overview of their function and contents. | |||
4366 | system when generating the device trees (via ``DTC_FLAGS`` environment | 4344 | system when generating the device trees (via ``DTC_FLAGS`` environment |
4367 | variable). | 4345 | variable). |
4368 | 4346 | ||
4369 | In order to use this variable, the | 4347 | In order to use this variable, the :ref:`ref-classes-kernel-devicetree` |
4370 | :ref:`kernel-devicetree <ref-classes-kernel-devicetree>` class must | 4348 | class must be inherited. |
4371 | be inherited. | ||
4372 | 4349 | ||
4373 | :term:`KERNEL_EXTRA_ARGS` | 4350 | :term:`KERNEL_EXTRA_ARGS` |
4374 | Specifies additional ``make`` command-line arguments the OpenEmbedded | 4351 | Specifies additional ``make`` command-line arguments the OpenEmbedded |
@@ -4519,9 +4496,8 @@ system and gives an overview of their function and contents. | |||
4519 | 4496 | ||
4520 | :term:`KERNEL_PATH` | 4497 | :term:`KERNEL_PATH` |
4521 | The location of the kernel sources. This variable is set to the value | 4498 | The location of the kernel sources. This variable is set to the value |
4522 | of the :term:`STAGING_KERNEL_DIR` within | 4499 | of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module` |
4523 | the :ref:`module <ref-classes-module>` class. For information on | 4500 | class. For information on how this variable is used, see the |
4524 | how this variable is used, see the | ||
4525 | ":ref:`kernel-dev/common:incorporating out-of-tree modules`" | 4501 | ":ref:`kernel-dev/common:incorporating out-of-tree modules`" |
4526 | section in the Yocto Project Linux Kernel Development Manual. | 4502 | section in the Yocto Project Linux Kernel Development Manual. |
4527 | 4503 | ||
@@ -4533,9 +4509,8 @@ system and gives an overview of their function and contents. | |||
4533 | 4509 | ||
4534 | :term:`KERNEL_SRC` | 4510 | :term:`KERNEL_SRC` |
4535 | The location of the kernel sources. This variable is set to the value | 4511 | The location of the kernel sources. This variable is set to the value |
4536 | of the :term:`STAGING_KERNEL_DIR` within | 4512 | of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module` |
4537 | the :ref:`module <ref-classes-module>` class. For information on | 4513 | class. For information on how this variable is used, see the |
4538 | how this variable is used, see the | ||
4539 | ":ref:`kernel-dev/common:incorporating out-of-tree modules`" | 4514 | ":ref:`kernel-dev/common:incorporating out-of-tree modules`" |
4540 | section in the Yocto Project Linux Kernel Development Manual. | 4515 | section in the Yocto Project Linux Kernel Development Manual. |
4541 | 4516 | ||
@@ -4613,7 +4588,7 @@ system and gives an overview of their function and contents. | |||
4613 | :term:`LABELS` | 4588 | :term:`LABELS` |
4614 | Provides a list of targets for automatic configuration. | 4589 | Provides a list of targets for automatic configuration. |
4615 | 4590 | ||
4616 | See the :ref:`grub-efi <ref-classes-grub-efi>` class for more | 4591 | See the :ref:`ref-classes-grub-efi` class for more |
4617 | information on how this variable is used. | 4592 | information on how this variable is used. |
4618 | 4593 | ||
4619 | :term:`LAYERDEPENDS` | 4594 | :term:`LAYERDEPENDS` |
@@ -4715,10 +4690,11 @@ system and gives an overview of their function and contents. | |||
4715 | 4690 | ||
4716 | :term:`LEAD_SONAME` | 4691 | :term:`LEAD_SONAME` |
4717 | Specifies the lead (or primary) compiled library file (i.e. ``.so``) | 4692 | Specifies the lead (or primary) compiled library file (i.e. ``.so``) |
4718 | that the :ref:`debian <ref-classes-debian>` class applies its | 4693 | that the :ref:`ref-classes-debian` class applies its |
4719 | naming policy to given a recipe that packages multiple libraries. | 4694 | naming policy to given a recipe that packages multiple libraries. |
4720 | 4695 | ||
4721 | This variable works in conjunction with the :ref:`debian <ref-classes-debian>` class. | 4696 | This variable works in conjunction with the :ref:`ref-classes-debian` |
4697 | class. | ||
4722 | 4698 | ||
4723 | :term:`LIC_FILES_CHKSUM` | 4699 | :term:`LIC_FILES_CHKSUM` |
4724 | Checksums of the license text in the recipe source code. | 4700 | Checksums of the license text in the recipe source code. |
@@ -5103,7 +5079,7 @@ system and gives an overview of their function and contents. | |||
5103 | determined by :term:`COREBASE`). | 5079 | determined by :term:`COREBASE`). |
5104 | 5080 | ||
5105 | :term:`MIME_XDG_PACKAGES` | 5081 | :term:`MIME_XDG_PACKAGES` |
5106 | The current implementation of the :ref:`mime-xdg <ref-classes-mime-xdg>` | 5082 | The current implementation of the :ref:`ref-classes-mime-xdg` |
5107 | class cannot detect ``.desktop`` files installed through absolute | 5083 | class cannot detect ``.desktop`` files installed through absolute |
5108 | symbolic links. Use this setting to make the class create post-install | 5084 | symbolic links. Use this setting to make the class create post-install |
5109 | and post-remove scripts for these packages anyway, to invoke the | 5085 | and post-remove scripts for these packages anyway, to invoke the |
@@ -5131,20 +5107,18 @@ system and gives an overview of their function and contents. | |||
5131 | .. note:: | 5107 | .. note:: |
5132 | 5108 | ||
5133 | The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation | 5109 | The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation |
5134 | is historical and comes from a time when | 5110 | is historical and comes from a time when ":ref:`ref-classes-nativesdk`" |
5135 | ":ref:`nativesdk <ref-classes-nativesdk>`" | ||
5136 | was a suffix rather than a prefix on the recipe name. When | 5111 | was a suffix rather than a prefix on the recipe name. When |
5137 | ":ref:`nativesdk <ref-classes-nativesdk>`" was turned | 5112 | ":ref:`ref-classes-nativesdk`" was turned into a prefix, it made sense |
5138 | into a prefix, it made sense to set :term:`MLPREFIX` for it as well. | 5113 | to set :term:`MLPREFIX` for it as well. |
5139 | 5114 | ||
5140 | To help understand when :term:`MLPREFIX` might be needed, consider when | 5115 | To help understand when :term:`MLPREFIX` might be needed, consider when |
5141 | :term:`BBCLASSEXTEND` is used to provide a | 5116 | :term:`BBCLASSEXTEND` is used to provide a :ref:`ref-classes-nativesdk` |
5142 | :ref:`nativesdk <ref-classes-nativesdk>` version of a recipe in addition | 5117 | version of a recipe in addition to the target version. If that recipe |
5143 | to the target version. If that recipe declares build-time dependencies | 5118 | declares build-time dependencies on tasks in other recipes by using |
5144 | on tasks in other recipes by using :term:`DEPENDS`, then a dependency on | 5119 | :term:`DEPENDS`, then a dependency on "foo" will automatically get |
5145 | "foo" will automatically get rewritten to a dependency on | 5120 | rewritten to a dependency on "nativesdk-foo". However, dependencies like |
5146 | "nativesdk-foo". However, dependencies like the following will not | 5121 | the following will not get rewritten automatically:: |
5147 | get rewritten automatically:: | ||
5148 | 5122 | ||
5149 | do_foo[depends] += "recipe:do_foo" | 5123 | do_foo[depends] += "recipe:do_foo" |
5150 | 5124 | ||
@@ -5243,8 +5217,7 @@ system and gives an overview of their function and contents. | |||
5243 | 5217 | ||
5244 | ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS} | 5218 | ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS} |
5245 | 5219 | ||
5246 | Some classes (e.g. | 5220 | Some classes (e.g. :ref:`ref-classes-cross-canadian`) modify the |
5247 | :ref:`cross-canadian <ref-classes-cross-canadian>`) modify the | ||
5248 | :term:`MULTIMACH_TARGET_SYS` value. | 5221 | :term:`MULTIMACH_TARGET_SYS` value. |
5249 | 5222 | ||
5250 | See the :term:`STAMP` variable for an example. See the | 5223 | See the :term:`STAMP` variable for an example. See the |
@@ -5346,7 +5319,7 @@ system and gives an overview of their function and contents. | |||
5346 | The minimal command and arguments to run ``objdump``. | 5319 | The minimal command and arguments to run ``objdump``. |
5347 | 5320 | ||
5348 | :term:`OE_BINCONFIG_EXTRA_MANGLE` | 5321 | :term:`OE_BINCONFIG_EXTRA_MANGLE` |
5349 | When inheriting the :ref:`binconfig <ref-classes-binconfig>` class, | 5322 | When inheriting the :ref:`ref-classes-binconfig` class, |
5350 | this variable specifies additional arguments passed to the "sed" | 5323 | this variable specifies additional arguments passed to the "sed" |
5351 | command. The sed command alters any paths in configuration scripts | 5324 | command. The sed command alters any paths in configuration scripts |
5352 | that have been set up during compilation. Inheriting this class | 5325 | that have been set up during compilation. Inheriting this class |
@@ -5412,68 +5385,67 @@ system and gives an overview of their function and contents. | |||
5412 | configuration file. | 5385 | configuration file. |
5413 | 5386 | ||
5414 | :term:`OVERLAYFS_ETC_DEVICE` | 5387 | :term:`OVERLAYFS_ETC_DEVICE` |
5415 | When the :ref:`overlayfs-etc <ref-classes-overlayfs-etc>` class is | 5388 | When the :ref:`ref-classes-overlayfs-etc` class is |
5416 | inherited, specifies the device to be mounted for the read/write | 5389 | inherited, specifies the device to be mounted for the read/write |
5417 | layer of ``/etc``. There is no default, so you must set this if you | 5390 | layer of ``/etc``. There is no default, so you must set this if you |
5418 | wish to enable :ref:`overlayfs-etc <ref-classes-overlayfs-etc>`, for | 5391 | wish to enable :ref:`ref-classes-overlayfs-etc`, for |
5419 | example, assuming ``/dev/mmcblk0p2`` was the desired device:: | 5392 | example, assuming ``/dev/mmcblk0p2`` was the desired device:: |
5420 | 5393 | ||
5421 | OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p2" | 5394 | OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p2" |
5422 | 5395 | ||
5423 | :term:`OVERLAYFS_ETC_EXPOSE_LOWER` | 5396 | :term:`OVERLAYFS_ETC_EXPOSE_LOWER` |
5424 | When the :ref:`overlayfs-etc <ref-classes-overlayfs-etc>` class is | 5397 | When the :ref:`ref-classes-overlayfs-etc` class is |
5425 | inherited, if set to "1" then a read-only access to the original | 5398 | inherited, if set to "1" then a read-only access to the original |
5426 | ``/etc`` content will be provided as a ``lower/`` subdirectory of | 5399 | ``/etc`` content will be provided as a ``lower/`` subdirectory of |
5427 | :term:`OVERLAYFS_ETC_MOUNT_POINT`. The default value is "0". | 5400 | :term:`OVERLAYFS_ETC_MOUNT_POINT`. The default value is "0". |
5428 | 5401 | ||
5429 | :term:`OVERLAYFS_ETC_FSTYPE` | 5402 | :term:`OVERLAYFS_ETC_FSTYPE` |
5430 | When the :ref:`overlayfs-etc <ref-classes-overlayfs-etc>` class is | 5403 | When the :ref:`ref-classes-overlayfs-etc` class is |
5431 | inherited, specifies the file system type for the read/write | 5404 | inherited, specifies the file system type for the read/write |
5432 | layer of ``/etc``. There is no default, so you must set this if you | 5405 | layer of ``/etc``. There is no default, so you must set this if you |
5433 | wish to enable :ref:`overlayfs-etc <ref-classes-overlayfs-etc>`, | 5406 | wish to enable :ref:`ref-classes-overlayfs-etc`, |
5434 | for example, assuming the file system is ext4:: | 5407 | for example, assuming the file system is ext4:: |
5435 | 5408 | ||
5436 | OVERLAYFS_ETC_FSTYPE = "ext4" | 5409 | OVERLAYFS_ETC_FSTYPE = "ext4" |
5437 | 5410 | ||
5438 | :term:`OVERLAYFS_ETC_MOUNT_OPTIONS` | 5411 | :term:`OVERLAYFS_ETC_MOUNT_OPTIONS` |
5439 | When the :ref:`overlayfs-etc <ref-classes-overlayfs-etc>` class is | 5412 | When the :ref:`ref-classes-overlayfs-etc` class is |
5440 | inherited, specifies the mount options for the read-write layer. | 5413 | inherited, specifies the mount options for the read-write layer. |
5441 | The default value is "defaults". | 5414 | The default value is "defaults". |
5442 | 5415 | ||
5443 | :term:`OVERLAYFS_ETC_MOUNT_POINT` | 5416 | :term:`OVERLAYFS_ETC_MOUNT_POINT` |
5444 | When the :ref:`overlayfs-etc <ref-classes-overlayfs-etc>` class is | 5417 | When the :ref:`ref-classes-overlayfs-etc` class is |
5445 | inherited, specifies the parent mount path for the filesystem layers. | 5418 | inherited, specifies the parent mount path for the filesystem layers. |
5446 | There is no default, so you must set this if you wish to enable | 5419 | There is no default, so you must set this if you wish to enable |
5447 | :ref:`overlayfs-etc <ref-classes-overlayfs-etc>`, for example if | 5420 | :ref:`ref-classes-overlayfs-etc`, for example if the desired path is |
5448 | the desired path is "/data":: | 5421 | "/data":: |
5449 | 5422 | ||
5450 | OVERLAYFS_ETC_MOUNT_POINT = "/data" | 5423 | OVERLAYFS_ETC_MOUNT_POINT = "/data" |
5451 | 5424 | ||
5452 | :term:`OVERLAYFS_ETC_USE_ORIG_INIT_NAME` | 5425 | :term:`OVERLAYFS_ETC_USE_ORIG_INIT_NAME` |
5453 | When the :ref:`overlayfs-etc <ref-classes-overlayfs-etc>` class is | 5426 | When the :ref:`ref-classes-overlayfs-etc` class is inherited, controls |
5454 | inherited, controls how the generated init will be named. For more | 5427 | how the generated init will be named. For more information, see the |
5455 | information, see the :ref:`overlayfs-etc <ref-classes-overlayfs-etc>` | 5428 | :ref:`ref-classes-overlayfs-etc` class documentation. The default value |
5456 | class documentation. The default value is "1". | 5429 | is "1". |
5457 | 5430 | ||
5458 | :term:`OVERLAYFS_MOUNT_POINT` | 5431 | :term:`OVERLAYFS_MOUNT_POINT` |
5459 | When inheriting the :ref:`overlayfs <ref-classes-overlayfs>` class, | 5432 | When inheriting the :ref:`ref-classes-overlayfs` class, |
5460 | specifies mount point(s) to be used. For example:: | 5433 | specifies mount point(s) to be used. For example:: |
5461 | 5434 | ||
5462 | OVERLAYFS_MOUNT_POINT[data] = "/data" | 5435 | OVERLAYFS_MOUNT_POINT[data] = "/data" |
5463 | 5436 | ||
5464 | The assumes you have a ``data.mount`` systemd unit defined elsewhere | 5437 | The assumes you have a ``data.mount`` systemd unit defined elsewhere in |
5465 | in your BSP (e.g. in ``systemd-machine-units`` recipe) and it is | 5438 | your BSP (e.g. in ``systemd-machine-units`` recipe) and it is installed |
5466 | installed into the image. For more information see | 5439 | into the image. For more information see :ref:`ref-classes-overlayfs`. |
5467 | :ref:`overlayfs <ref-classes-overlayfs>`. | ||
5468 | 5440 | ||
5469 | .. note:: | 5441 | .. note:: |
5470 | 5442 | ||
5471 | Although the :ref:`overlayfs <ref-classes-overlayfs>` class is | 5443 | Although the :ref:`ref-classes-overlayfs` class is |
5472 | inherited by individual recipes, :term:`OVERLAYFS_MOUNT_POINT` | 5444 | inherited by individual recipes, :term:`OVERLAYFS_MOUNT_POINT` |
5473 | should be set in your machine configuration. | 5445 | should be set in your machine configuration. |
5474 | 5446 | ||
5475 | :term:`OVERLAYFS_QA_SKIP` | 5447 | :term:`OVERLAYFS_QA_SKIP` |
5476 | When inheriting the :ref:`overlayfs <ref-classes-overlayfs>` class, | 5448 | When inheriting the :ref:`ref-classes-overlayfs` class, |
5477 | provides the ability to disable QA checks for particular overlayfs | 5449 | provides the ability to disable QA checks for particular overlayfs |
5478 | mounts. For example:: | 5450 | mounts. For example:: |
5479 | 5451 | ||
@@ -5481,12 +5453,12 @@ system and gives an overview of their function and contents. | |||
5481 | 5453 | ||
5482 | .. note:: | 5454 | .. note:: |
5483 | 5455 | ||
5484 | Although the :ref:`overlayfs <ref-classes-overlayfs>` class is | 5456 | Although the :ref:`ref-classes-overlayfs` class is |
5485 | inherited by individual recipes, :term:`OVERLAYFS_QA_SKIP` | 5457 | inherited by individual recipes, :term:`OVERLAYFS_QA_SKIP` |
5486 | should be set in your machine configuration. | 5458 | should be set in your machine configuration. |
5487 | 5459 | ||
5488 | :term:`OVERLAYFS_WRITABLE_PATHS` | 5460 | :term:`OVERLAYFS_WRITABLE_PATHS` |
5489 | When inheriting the :ref:`overlayfs <ref-classes-overlayfs>` class, | 5461 | When inheriting the :ref:`ref-classes-overlayfs` class, |
5490 | specifies writable paths used at runtime for the recipe. For | 5462 | specifies writable paths used at runtime for the recipe. For |
5491 | example:: | 5463 | example:: |
5492 | 5464 | ||
@@ -5598,7 +5570,7 @@ system and gives an overview of their function and contents. | |||
5598 | 5570 | ||
5599 | .. note:: | 5571 | .. note:: |
5600 | 5572 | ||
5601 | While it is a legal option, the :ref:`package_tar <ref-classes-package_tar>` | 5573 | While it is a legal option, the :ref:`ref-classes-package_tar` |
5602 | class has limited functionality due to no support for package | 5574 | class has limited functionality due to no support for package |
5603 | dependencies by that backend. Therefore, it is recommended that | 5575 | dependencies by that backend. Therefore, it is recommended that |
5604 | you do not use it. | 5576 | you do not use it. |
@@ -5936,16 +5908,15 @@ system and gives an overview of their function and contents. | |||
5936 | A space-separated list of configuration options generated from the | 5908 | A space-separated list of configuration options generated from the |
5937 | :term:`PACKAGECONFIG` setting. | 5909 | :term:`PACKAGECONFIG` setting. |
5938 | 5910 | ||
5939 | Classes such as :ref:`autotools <ref-classes-autotools>` and | 5911 | Classes such as :ref:`ref-classes-autotools` and :ref:`ref-classes-cmake` |
5940 | :ref:`cmake <ref-classes-cmake>` use :term:`PACKAGECONFIG_CONFARGS` to | 5912 | use :term:`PACKAGECONFIG_CONFARGS` to pass :term:`PACKAGECONFIG` options |
5941 | pass :term:`PACKAGECONFIG` options to ``configure`` and ``cmake``, | 5913 | to ``configure`` and ``cmake``, respectively. If you are using |
5942 | respectively. If you are using :term:`PACKAGECONFIG` but not a class that | 5914 | :term:`PACKAGECONFIG` but not a class that handles the |
5943 | handles the :ref:`ref-tasks-configure` task, then you need to use | 5915 | :ref:`ref-tasks-configure` task, then you need to use |
5944 | :term:`PACKAGECONFIG_CONFARGS` appropriately. | 5916 | :term:`PACKAGECONFIG_CONFARGS` appropriately. |
5945 | 5917 | ||
5946 | :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` | 5918 | :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` |
5947 | For recipes inheriting the | 5919 | For recipes inheriting the :ref:`ref-classes-packagegroup` class, setting |
5948 | :ref:`packagegroup <ref-classes-packagegroup>` class, setting | ||
5949 | :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the | 5920 | :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the |
5950 | normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth) | 5921 | normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth) |
5951 | should not be automatically created by the ``packagegroup`` recipe, | 5922 | should not be automatically created by the ``packagegroup`` recipe, |
@@ -6097,9 +6068,8 @@ system and gives an overview of their function and contents. | |||
6097 | :term:`PE` is the default value of the :term:`PKGE` variable. | 6068 | :term:`PE` is the default value of the :term:`PKGE` variable. |
6098 | 6069 | ||
6099 | :term:`PEP517_WHEEL_PATH` | 6070 | :term:`PEP517_WHEEL_PATH` |
6100 | When used by recipes that inherit the | 6071 | When used by recipes that inherit the :ref:`ref-classes-python_pep517` |
6101 | :ref:`python_pep517 <ref-classes-python_pep517>` class, | 6072 | class, denotes the path to ``dist/`` (short for distribution) where the |
6102 | denotes the path to ``dist/`` (short for distribution) where the | ||
6103 | binary archive ``wheel`` is built. | 6073 | binary archive ``wheel`` is built. |
6104 | 6074 | ||
6105 | :term:`PERSISTENT_DIR` | 6075 | :term:`PERSISTENT_DIR` |
@@ -6112,10 +6082,10 @@ system and gives an overview of their function and contents. | |||
6112 | ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`} | 6082 | ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`} |
6113 | 6083 | ||
6114 | :term:`PIXBUF_PACKAGES` | 6084 | :term:`PIXBUF_PACKAGES` |
6115 | When inheriting the :ref:`pixbufcache <ref-classes-pixbufcache>` | 6085 | When inheriting the :ref:`ref-classes-pixbufcache` |
6116 | class, this variable identifies packages that contain the pixbuf | 6086 | class, this variable identifies packages that contain the pixbuf |
6117 | loaders used with ``gdk-pixbuf``. By default, the | 6087 | loaders used with ``gdk-pixbuf``. By default, the |
6118 | :ref:`pixbufcache <ref-classes-pixbufcache>` class assumes that | 6088 | :ref:`ref-classes-pixbufcache` class assumes that |
6119 | the loaders are in the recipe's main package (i.e. | 6089 | the loaders are in the recipe's main package (i.e. |
6120 | ``${``\ :term:`PN`\ ``}``). Use this variable if the | 6090 | ``${``\ :term:`PN`\ ``}``). Use this variable if the |
6121 | loaders you need are in a package other than that main package. | 6091 | loaders you need are in a package other than that main package. |
@@ -6128,9 +6098,8 @@ system and gives an overview of their function and contents. | |||
6128 | 6098 | ||
6129 | When using the :term:`PKG` variable, you must use a package name override. | 6099 | When using the :term:`PKG` variable, you must use a package name override. |
6130 | 6100 | ||
6131 | For example, when the :ref:`debian <ref-classes-debian>` class | 6101 | For example, when the :ref:`ref-classes-debian` class renames the output |
6132 | renames the output package, it does so by setting | 6102 | package, it does so by setting ``PKG:packagename``. |
6133 | ``PKG:packagename``. | ||
6134 | 6103 | ||
6135 | :term:`PKG_CONFIG_PATH` | 6104 | :term:`PKG_CONFIG_PATH` |
6136 | The path to ``pkg-config`` files for the current build context. | 6105 | The path to ``pkg-config`` files for the current build context. |
@@ -6531,7 +6500,7 @@ system and gives an overview of their function and contents. | |||
6531 | :term:`PV` is the default value of the :term:`PKGV` variable. | 6500 | :term:`PV` is the default value of the :term:`PKGV` variable. |
6532 | 6501 | ||
6533 | :term:`PYPI_PACKAGE` | 6502 | :term:`PYPI_PACKAGE` |
6534 | When inheriting the :ref:`pypi <ref-classes-pypi>` class, specifies the | 6503 | When inheriting the :ref:`ref-classes-pypi` class, specifies the |
6535 | `PyPI <https://pypi.org/>`__ package name to be built. The default value | 6504 | `PyPI <https://pypi.org/>`__ package name to be built. The default value |
6536 | is set based upon :term:`BPN` (stripping any "python-" or "python3-" | 6505 | is set based upon :term:`BPN` (stripping any "python-" or "python3-" |
6537 | prefix off if present), however for some packages it will need to be set | 6506 | prefix off if present), however for some packages it will need to be set |
@@ -6539,22 +6508,20 @@ system and gives an overview of their function and contents. | |||
6539 | package name has a prefix, underscores, uppercase letters etc.) | 6508 | package name has a prefix, underscores, uppercase letters etc.) |
6540 | 6509 | ||
6541 | :term:`PYTHON_ABI` | 6510 | :term:`PYTHON_ABI` |
6542 | When used by recipes that inherit the | 6511 | When used by recipes that inherit the :ref:`ref-classes-setuptools3` |
6543 | :ref:`setuptools3 <ref-classes-setuptools3>` class, denotes the | 6512 | class, denotes the Application Binary Interface (ABI) currently in use |
6544 | Application Binary Interface (ABI) currently in use for Python. By | 6513 | for Python. By default, the ABI is "m". You do not have to set this |
6545 | default, the ABI is "m". You do not have to set this variable as the | 6514 | variable as the OpenEmbedded build system sets it for you. |
6546 | OpenEmbedded build system sets it for you. | ||
6547 | 6515 | ||
6548 | The OpenEmbedded build system uses the ABI to construct directory | 6516 | The OpenEmbedded build system uses the ABI to construct directory |
6549 | names used when installing the Python headers and libraries in | 6517 | names used when installing the Python headers and libraries in |
6550 | sysroot (e.g. ``.../python3.3m/...``). | 6518 | sysroot (e.g. ``.../python3.3m/...``). |
6551 | 6519 | ||
6552 | :term:`PYTHON_PN` | 6520 | :term:`PYTHON_PN` |
6553 | When used by recipes that inherit the | 6521 | When used by recipes that inherit the :ref:`ref-classes-setuptools3` |
6554 | :ref:`setuptools3 <ref-classes-setuptools3>` class, specifies the | 6522 | class, specifies the major Python version being built. For Python 3.x, |
6555 | major Python version being built. For Python 3.x, :term:`PYTHON_PN` would | 6523 | :term:`PYTHON_PN` would be "python3". You do not have to set this |
6556 | be "python3". You do not have to set this variable as the | 6524 | variable as the OpenEmbedded build system automatically sets it for you. |
6557 | OpenEmbedded build system automatically sets it for you. | ||
6558 | 6525 | ||
6559 | The variable allows recipes to use common infrastructure such as the | 6526 | The variable allows recipes to use common infrastructure such as the |
6560 | following:: | 6527 | following:: |
@@ -6685,7 +6652,7 @@ system and gives an overview of their function and contents. | |||
6685 | The package names you use with :term:`RDEPENDS` must appear as they would | 6652 | The package names you use with :term:`RDEPENDS` must appear as they would |
6686 | in the :term:`PACKAGES` variable. The :term:`PKG` variable | 6653 | in the :term:`PACKAGES` variable. The :term:`PKG` variable |
6687 | allows a different name to be used for the final package (e.g. the | 6654 | allows a different name to be used for the final package (e.g. the |
6688 | :ref:`debian <ref-classes-debian>` class uses this to rename | 6655 | :ref:`ref-classes-debian` class uses this to rename |
6689 | packages), but this final package name cannot be used with | 6656 | packages), but this final package name cannot be used with |
6690 | :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be | 6657 | :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be |
6691 | independent of the package format used. | 6658 | independent of the package format used. |
@@ -6736,7 +6703,7 @@ system and gives an overview of their function and contents. | |||
6736 | See :term:`bitbake:REPODIR` in the BitBake manual. | 6703 | See :term:`bitbake:REPODIR` in the BitBake manual. |
6737 | 6704 | ||
6738 | :term:`REQUIRED_DISTRO_FEATURES` | 6705 | :term:`REQUIRED_DISTRO_FEATURES` |
6739 | When inheriting the :ref:`features_check <ref-classes-features_check>` | 6706 | When inheriting the :ref:`ref-classes-features_check` |
6740 | class, this variable identifies distribution features that must exist | 6707 | class, this variable identifies distribution features that must exist |
6741 | in the current configuration in order for the OpenEmbedded build | 6708 | in the current configuration in order for the OpenEmbedded build |
6742 | system to build the recipe. In other words, if the | 6709 | system to build the recipe. In other words, if the |
@@ -6757,7 +6724,7 @@ system and gives an overview of their function and contents. | |||
6757 | for the same recipe, the :term:`REQUIRED_VERSION` value applies. | 6724 | for the same recipe, the :term:`REQUIRED_VERSION` value applies. |
6758 | 6725 | ||
6759 | :term:`RM_WORK_EXCLUDE` | 6726 | :term:`RM_WORK_EXCLUDE` |
6760 | With :ref:`rm_work <ref-classes-rm-work>` enabled, this variable | 6727 | With :ref:`ref-classes-rm-work` enabled, this variable |
6761 | specifies a list of recipes whose work directories should not be removed. | 6728 | specifies a list of recipes whose work directories should not be removed. |
6762 | See the ":ref:`ref-classes-rm-work`" section for more details. | 6729 | See the ":ref:`ref-classes-rm-work`" section for more details. |
6763 | 6730 | ||
@@ -6789,7 +6756,7 @@ system and gives an overview of their function and contents. | |||
6789 | Indicates a filesystem image to include as the root filesystem. | 6756 | Indicates a filesystem image to include as the root filesystem. |
6790 | 6757 | ||
6791 | The :term:`ROOTFS` variable is an optional variable used with the | 6758 | The :term:`ROOTFS` variable is an optional variable used with the |
6792 | :ref:`image-live <ref-classes-image-live>` class. | 6759 | :ref:`ref-classes-image-live` class. |
6793 | 6760 | ||
6794 | :term:`ROOTFS_POSTINSTALL_COMMAND` | 6761 | :term:`ROOTFS_POSTINSTALL_COMMAND` |
6795 | Specifies a list of functions to call after the OpenEmbedded build | 6762 | Specifies a list of functions to call after the OpenEmbedded build |
@@ -7013,7 +6980,7 @@ system and gives an overview of their function and contents. | |||
7013 | set this variable. Instead, use :term:`SDKMACHINE`. | 6980 | set this variable. Instead, use :term:`SDKMACHINE`. |
7014 | 6981 | ||
7015 | :term:`SDK_BUILDINFO_FILE` | 6982 | :term:`SDK_BUILDINFO_FILE` |
7016 | When using the :ref:`image-buildinfo <ref-classes-image-buildinfo>` class, | 6983 | When using the :ref:`ref-classes-image-buildinfo` class, |
7017 | specifies the file in the SDK to write the build information into. The | 6984 | specifies the file in the SDK to write the build information into. The |
7018 | default value is "``/buildinfo``". | 6985 | default value is "``/buildinfo``". |
7019 | 6986 | ||
@@ -7145,7 +7112,7 @@ system and gives an overview of their function and contents. | |||
7145 | 7112 | ||
7146 | :term:`SDK_PREFIX` | 7113 | :term:`SDK_PREFIX` |
7147 | The toolchain binary prefix used for | 7114 | The toolchain binary prefix used for |
7148 | :ref:`nativesdk <ref-classes-nativesdk>` recipes. The | 7115 | :ref:`ref-classes-nativesdk` recipes. The |
7149 | OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the | 7116 | OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the |
7150 | :term:`TARGET_PREFIX` when building | 7117 | :term:`TARGET_PREFIX` when building |
7151 | ``nativesdk`` recipes. The default value is "${SDK_SYS}-". | 7118 | ``nativesdk`` recipes. The default value is "${SDK_SYS}-". |
@@ -7331,25 +7298,22 @@ system and gives an overview of their function and contents. | |||
7331 | EXTRA_IMAGE_FEATURES += "read-only-rootfs" | 7298 | EXTRA_IMAGE_FEATURES += "read-only-rootfs" |
7332 | 7299 | ||
7333 | :term:`SETUPTOOLS_BUILD_ARGS` | 7300 | :term:`SETUPTOOLS_BUILD_ARGS` |
7334 | When used by recipes that inherit the | 7301 | When used by recipes that inherit the :ref:`ref-classes-setuptools3` |
7335 | :ref:`setuptools3 <ref-classes-setuptools3>` class, this variable can | 7302 | class, this variable can be used to specify additional arguments to be |
7336 | be used to specify additional arguments to be passed to ``setup.py build`` | 7303 | passed to ``setup.py build`` in the ``setuptools3_do_compile()`` task. |
7337 | in the ``setuptools3_do_compile()`` task. | ||
7338 | 7304 | ||
7339 | :term:`SETUPTOOLS_INSTALL_ARGS` | 7305 | :term:`SETUPTOOLS_INSTALL_ARGS` |
7340 | When used by recipes that inherit the | 7306 | When used by recipes that inherit the :ref:`ref-classes-setuptools3` |
7341 | :ref:`setuptools3 <ref-classes-setuptools3>` class, this variable can | 7307 | class, this variable can be used to specify additional arguments to be |
7342 | be used to specify additional arguments to be passed to ``setup.py install`` | 7308 | passed to ``setup.py install`` in the ``setuptools3_do_install()`` task. |
7343 | in the ``setuptools3_do_install()`` task. | ||
7344 | 7309 | ||
7345 | :term:`SETUPTOOLS_SETUP_PATH` | 7310 | :term:`SETUPTOOLS_SETUP_PATH` |
7346 | When used by recipes that inherit the | 7311 | When used by recipes that inherit the :ref:`ref-classes-setuptools3` |
7347 | :ref:`setuptools3 <ref-classes-setuptools3>` class, this variable should | 7312 | class, this variable should be used to specify the directory in which |
7348 | be used to specify the directory in which the ``setup.py`` file is | 7313 | the ``setup.py`` file is located if it is not at the root of the source |
7349 | located if it is not at the root of the source tree (as specified by | 7314 | tree (as specified by :term:`S`). For example, in a recipe where the |
7350 | :term:`S`). For example, in a recipe where the sources are fetched from | 7315 | sources are fetched from a Git repository and ``setup.py`` is in a |
7351 | a Git repository and ``setup.py`` is in a ``python/pythonmodule`` | 7316 | ``python/pythonmodule`` subdirectory, you would have this:: |
7352 | subdirectory, you would have this:: | ||
7353 | 7317 | ||
7354 | S = "${WORKDIR}/git" | 7318 | S = "${WORKDIR}/git" |
7355 | SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule" | 7319 | SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule" |
@@ -7494,7 +7458,7 @@ system and gives an overview of their function and contents. | |||
7494 | specified in :term:`SRC_URI`. | 7458 | specified in :term:`SRC_URI`. |
7495 | 7459 | ||
7496 | To use this variable, you must globally inherit the | 7460 | To use this variable, you must globally inherit the |
7497 | :ref:`own-mirrors <ref-classes-own-mirrors>` class and then provide | 7461 | :ref:`ref-classes-own-mirrors` class and then provide |
7498 | the URL to your mirrors. Here is the general syntax:: | 7462 | the URL to your mirrors. Here is the general syntax:: |
7499 | 7463 | ||
7500 | INHERIT += "own-mirrors" | 7464 | INHERIT += "own-mirrors" |
@@ -7520,7 +7484,7 @@ system and gives an overview of their function and contents. | |||
7520 | ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this | 7484 | ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this |
7521 | option multiplied the size of the ``tmp/deploy/spdx`` directory by a | 7485 | option multiplied the size of the ``tmp/deploy/spdx`` directory by a |
7522 | factor of 13 (+1.6 GiB for this image), compared to just using the | 7486 | factor of 13 (+1.6 GiB for this image), compared to just using the |
7523 | :ref:`create-spdx <ref-classes-create-spdx>` class with no option. | 7487 | :ref:`ref-classes-create-spdx` class with no option. |
7524 | 7488 | ||
7525 | Note that this option doesn't increase the size of :term:`SPDX` | 7489 | Note that this option doesn't increase the size of :term:`SPDX` |
7526 | files in ``tmp/deploy/images/MACHINE``. | 7490 | files in ``tmp/deploy/images/MACHINE``. |
@@ -7546,7 +7510,7 @@ system and gives an overview of their function and contents. | |||
7546 | ``core-image-minimal`` for the ``qemux86-64`` machine, enabling | 7510 | ``core-image-minimal`` for the ``qemux86-64`` machine, enabling |
7547 | these options multiplied the size of the ``tmp/deploy/spdx`` | 7511 | these options multiplied the size of the ``tmp/deploy/spdx`` |
7548 | directory by a factor of 11 (+1.4 GiB for this image), | 7512 | directory by a factor of 11 (+1.4 GiB for this image), |
7549 | compared to just using the :ref:`create-spdx <ref-classes-create-spdx>` | 7513 | compared to just using the :ref:`ref-classes-create-spdx` |
7550 | class with no option. | 7514 | class with no option. |
7551 | 7515 | ||
7552 | Note that using this option only marginally increases the size | 7516 | Note that using this option only marginally increases the size |
@@ -7572,8 +7536,8 @@ system and gives an overview of their function and contents. | |||
7572 | directory by a factor of 3 (+291 MiB for this image), | 7536 | directory by a factor of 3 (+291 MiB for this image), |
7573 | and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in | 7537 | and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in |
7574 | ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this | 7538 | ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this |
7575 | image), compared to just using the | 7539 | image), compared to just using the :ref:`ref-classes-create-spdx` class |
7576 | :ref:`create-spdx <ref-classes-create-spdx>` class with no option. | 7540 | with no option. |
7577 | 7541 | ||
7578 | :term:`SPDX_PRETTY` | 7542 | :term:`SPDX_PRETTY` |
7579 | This option makes the SPDX output more human-readable, using | 7543 | This option makes the SPDX output more human-readable, using |
@@ -7723,15 +7687,15 @@ system and gives an overview of their function and contents. | |||
7723 | 7687 | ||
7724 | :term:`SRCTREECOVEREDTASKS` | 7688 | :term:`SRCTREECOVEREDTASKS` |
7725 | A list of tasks that are typically not relevant (and therefore skipped) | 7689 | A list of tasks that are typically not relevant (and therefore skipped) |
7726 | when building using the :ref:`externalsrc <ref-classes-externalsrc>` | 7690 | when building using the :ref:`ref-classes-externalsrc` |
7727 | class. The default value as set in that class file is the set of tasks | 7691 | class. The default value as set in that class file is the set of tasks |
7728 | that are rarely needed when using external source:: | 7692 | that are rarely needed when using external source:: |
7729 | 7693 | ||
7730 | SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch" | 7694 | SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch" |
7731 | 7695 | ||
7732 | The notable exception is when processing external kernel source as | 7696 | The notable exception is when processing external kernel source as |
7733 | defined in the :ref:`kernel-yocto <ref-classes-kernel-yocto>` | 7697 | defined in the :ref:`ref-classes-kernel-yocto` class file (formatted for |
7734 | class file (formatted for aesthetics):: | 7698 | aesthetics):: |
7735 | 7699 | ||
7736 | SRCTREECOVEREDTASKS += "\ | 7700 | SRCTREECOVEREDTASKS += "\ |
7737 | do_validate_branches \ | 7701 | do_validate_branches \ |
@@ -7799,10 +7763,9 @@ system and gives an overview of their function and contents. | |||
7799 | a different GCC version for native builds, you must configure | 7763 | a different GCC version for native builds, you must configure |
7800 | :term:`SSTATE_MIRRORS` with a regular expression that maps local search | 7764 | :term:`SSTATE_MIRRORS` with a regular expression that maps local search |
7801 | paths to server paths. The paths need to take into account | 7765 | paths to server paths. The paths need to take into account |
7802 | :term:`NATIVELSBSTRING` set by the | 7766 | :term:`NATIVELSBSTRING` set by the :ref:`ref-classes-uninative` class. |
7803 | :ref:`uninative <ref-classes-uninative>` class. For example, the | 7767 | For example, the following maps the local search path ``universal-4.9`` |
7804 | following maps the local search path ``universal-4.9`` to the | 7768 | to the server-provided path server_url_sstate_path:: |
7805 | server-provided path server_url_sstate_path:: | ||
7806 | 7769 | ||
7807 | SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1" | 7770 | SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1" |
7808 | 7771 | ||
@@ -7828,11 +7791,9 @@ system and gives an overview of their function and contents. | |||
7828 | by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files | 7791 | by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files |
7829 | they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather | 7792 | they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather |
7830 | than the variable being comprehensively set. The | 7793 | than the variable being comprehensively set. The |
7831 | :ref:`sstate <ref-classes-sstate>` class specifies the default list | 7794 | :ref:`ref-classes-sstate` class specifies the default list of files. |
7832 | of files. | ||
7833 | 7795 | ||
7834 | For details on the process, see the | 7796 | For details on the process, see the :ref:`ref-classes-staging` class. |
7835 | :ref:`staging <ref-classes-staging>` class. | ||
7836 | 7797 | ||
7837 | :term:`STAGING_BASE_LIBDIR_NATIVE` | 7798 | :term:`STAGING_BASE_LIBDIR_NATIVE` |
7838 | Specifies the path to the ``/lib`` subdirectory of the sysroot | 7799 | Specifies the path to the ``/lib`` subdirectory of the sysroot |
@@ -7943,10 +7904,10 @@ system and gives an overview of their function and contents. | |||
7943 | which is the majority, :term:`STAGING_DIR_TARGET` is set to match | 7904 | which is the majority, :term:`STAGING_DIR_TARGET` is set to match |
7944 | :term:`STAGING_DIR_HOST`. | 7905 | :term:`STAGING_DIR_HOST`. |
7945 | 7906 | ||
7946 | Some recipes build binaries that can run on the target system but | 7907 | Some recipes build binaries that can run on the target system but those |
7947 | those binaries in turn generate code for another different system | 7908 | binaries in turn generate code for another different system (e.g. |
7948 | (e.g. :ref:`cross-canadian <ref-classes-cross-canadian>` recipes). Using terminology from GNU, the | 7909 | :ref:`ref-classes-cross-canadian` recipes). Using terminology from GNU, |
7949 | primary system is referred to as the "HOST" and the secondary, or | 7910 | the primary system is referred to as the "HOST" and the secondary, or |
7950 | different, system is referred to as the "TARGET". Thus, the binaries | 7911 | different, system is referred to as the "TARGET". Thus, the binaries |
7951 | run on the "HOST" system and generate binaries for the "TARGET" | 7912 | run on the "HOST" system and generate binaries for the "TARGET" |
7952 | system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used | 7913 | system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used |
@@ -8040,7 +8001,7 @@ system and gives an overview of their function and contents. | |||
8040 | 8001 | ||
8041 | SYSLINUX_DEFAULT_CONSOLE = "console=ttyX" | 8002 | SYSLINUX_DEFAULT_CONSOLE = "console=ttyX" |
8042 | 8003 | ||
8043 | The :ref:`syslinux <ref-classes-syslinux>` class initially sets | 8004 | The :ref:`ref-classes-syslinux` class initially sets |
8044 | this variable to null but then checks for a value later. | 8005 | this variable to null but then checks for a value later. |
8045 | 8006 | ||
8046 | :term:`SYSLINUX_OPTS` | 8007 | :term:`SYSLINUX_OPTS` |
@@ -8048,14 +8009,14 @@ system and gives an overview of their function and contents. | |||
8048 | this variable in your recipe. If you want to list multiple options, | 8009 | this variable in your recipe. If you want to list multiple options, |
8049 | separate the options with a semicolon character (``;``). | 8010 | separate the options with a semicolon character (``;``). |
8050 | 8011 | ||
8051 | The :ref:`syslinux <ref-classes-syslinux>` class uses this variable | 8012 | The :ref:`ref-classes-syslinux` class uses this variable |
8052 | to create a set of options. | 8013 | to create a set of options. |
8053 | 8014 | ||
8054 | :term:`SYSLINUX_SERIAL` | 8015 | :term:`SYSLINUX_SERIAL` |
8055 | Specifies the alternate serial port or turns it off. To turn off | 8016 | Specifies the alternate serial port or turns it off. To turn off |
8056 | serial, set this variable to an empty string in your recipe. The | 8017 | serial, set this variable to an empty string in your recipe. The |
8057 | variable's default value is set in the | 8018 | variable's default value is set in the |
8058 | :ref:`syslinux <ref-classes-syslinux>` class as follows:: | 8019 | :ref:`ref-classes-syslinux` class as follows:: |
8059 | 8020 | ||
8060 | SYSLINUX_SERIAL ?= "0 115200" | 8021 | SYSLINUX_SERIAL ?= "0 115200" |
8061 | 8022 | ||
@@ -8063,8 +8024,8 @@ system and gives an overview of their function and contents. | |||
8063 | 8024 | ||
8064 | :term:`SYSLINUX_SERIAL_TTY` | 8025 | :term:`SYSLINUX_SERIAL_TTY` |
8065 | Specifies the alternate console=tty... kernel boot argument. The | 8026 | Specifies the alternate console=tty... kernel boot argument. The |
8066 | variable's default value is set in the | 8027 | variable's default value is set in the :ref:`ref-classes-syslinux` |
8067 | :ref:`syslinux <ref-classes-syslinux>` class as follows:: | 8028 | class as follows:: |
8068 | 8029 | ||
8069 | SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200" | 8030 | SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200" |
8070 | 8031 | ||
@@ -8074,7 +8035,7 @@ system and gives an overview of their function and contents. | |||
8074 | An ``.LSS`` file used as the background for the VGA boot menu when | 8035 | An ``.LSS`` file used as the background for the VGA boot menu when |
8075 | you use the boot menu. You need to set this variable in your recipe. | 8036 | you use the boot menu. You need to set this variable in your recipe. |
8076 | 8037 | ||
8077 | The :ref:`syslinux <ref-classes-syslinux>` class checks for this | 8038 | The :ref:`ref-classes-syslinux` class checks for this |
8078 | variable and if found, the OpenEmbedded build system installs the | 8039 | variable and if found, the OpenEmbedded build system installs the |
8079 | splash screen. | 8040 | splash screen. |
8080 | 8041 | ||
@@ -8150,12 +8111,12 @@ system and gives an overview of their function and contents. | |||
8150 | processing on the staged files, or to stage additional files. | 8111 | processing on the staged files, or to stage additional files. |
8151 | 8112 | ||
8152 | :term:`SYSTEMD_AUTO_ENABLE` | 8113 | :term:`SYSTEMD_AUTO_ENABLE` |
8153 | When inheriting the :ref:`systemd <ref-classes-systemd>` class, | 8114 | When inheriting the :ref:`ref-classes-systemd` class, |
8154 | this variable specifies whether the specified service in | 8115 | this variable specifies whether the specified service in |
8155 | :term:`SYSTEMD_SERVICE` should start | 8116 | :term:`SYSTEMD_SERVICE` should start |
8156 | automatically or not. By default, the service is enabled to | 8117 | automatically or not. By default, the service is enabled to |
8157 | automatically start at boot time. The default setting is in the | 8118 | automatically start at boot time. The default setting is in the |
8158 | :ref:`systemd <ref-classes-systemd>` class as follows:: | 8119 | :ref:`ref-classes-systemd` class as follows:: |
8159 | 8120 | ||
8160 | SYSTEMD_AUTO_ENABLE ??= "enable" | 8121 | SYSTEMD_AUTO_ENABLE ??= "enable" |
8161 | 8122 | ||
@@ -8165,7 +8126,7 @@ system and gives an overview of their function and contents. | |||
8165 | When :term:`EFI_PROVIDER` is set to | 8126 | When :term:`EFI_PROVIDER` is set to |
8166 | "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the | 8127 | "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the |
8167 | configuration file that should be used. By default, the | 8128 | configuration file that should be used. By default, the |
8168 | :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the | 8129 | :ref:`ref-classes-systemd-boot` class sets the |
8169 | :term:`SYSTEMD_BOOT_CFG` as follows:: | 8130 | :term:`SYSTEMD_BOOT_CFG` as follows:: |
8170 | 8131 | ||
8171 | SYSTEMD_BOOT_CFG ?= "${S}/loader.conf" | 8132 | SYSTEMD_BOOT_CFG ?= "${S}/loader.conf" |
@@ -8177,9 +8138,8 @@ system and gives an overview of their function and contents. | |||
8177 | When :term:`EFI_PROVIDER` is set to | 8138 | When :term:`EFI_PROVIDER` is set to |
8178 | "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a | 8139 | "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a |
8179 | list of entry files (``*.conf``) to install that contain one boot | 8140 | list of entry files (``*.conf``) to install that contain one boot |
8180 | entry per file. By default, the | 8141 | entry per file. By default, the :ref:`ref-classes-systemd-boot` class |
8181 | :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the | 8142 | sets the :term:`SYSTEMD_BOOT_ENTRIES` as follows:: |
8182 | :term:`SYSTEMD_BOOT_ENTRIES` as follows:: | ||
8183 | 8143 | ||
8184 | SYSTEMD_BOOT_ENTRIES ?= "" | 8144 | SYSTEMD_BOOT_ENTRIES ?= "" |
8185 | 8145 | ||
@@ -8190,7 +8150,7 @@ system and gives an overview of their function and contents. | |||
8190 | When :term:`EFI_PROVIDER` is set to | 8150 | When :term:`EFI_PROVIDER` is set to |
8191 | "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the | 8151 | "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the |
8192 | boot menu timeout in seconds. By default, the | 8152 | boot menu timeout in seconds. By default, the |
8193 | :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the | 8153 | :ref:`ref-classes-systemd-boot` class sets the |
8194 | :term:`SYSTEMD_BOOT_TIMEOUT` as follows:: | 8154 | :term:`SYSTEMD_BOOT_TIMEOUT` as follows:: |
8195 | 8155 | ||
8196 | SYSTEMD_BOOT_TIMEOUT ?= "10" | 8156 | SYSTEMD_BOOT_TIMEOUT ?= "10" |
@@ -8216,7 +8176,7 @@ system and gives an overview of their function and contents. | |||
8216 | SYSTEMD_DEFAULT_TARGET = "graphical.target" | 8176 | SYSTEMD_DEFAULT_TARGET = "graphical.target" |
8217 | 8177 | ||
8218 | :term:`SYSTEMD_PACKAGES` | 8178 | :term:`SYSTEMD_PACKAGES` |
8219 | When inheriting the :ref:`systemd <ref-classes-systemd>` class, | 8179 | When inheriting the :ref:`ref-classes-systemd` class, |
8220 | this variable locates the systemd unit files when they are not found | 8180 | this variable locates the systemd unit files when they are not found |
8221 | in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES` | 8181 | in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES` |
8222 | variable is set such that the systemd unit files are assumed to | 8182 | variable is set such that the systemd unit files are assumed to |
@@ -8229,7 +8189,7 @@ system and gives an overview of their function and contents. | |||
8229 | the build system can find the systemd unit files. | 8189 | the build system can find the systemd unit files. |
8230 | 8190 | ||
8231 | :term:`SYSTEMD_SERVICE` | 8191 | :term:`SYSTEMD_SERVICE` |
8232 | When inheriting the :ref:`systemd <ref-classes-systemd>` class, | 8192 | When inheriting the :ref:`ref-classes-systemd` class, |
8233 | this variable specifies the systemd service name for a package. | 8193 | this variable specifies the systemd service name for a package. |
8234 | 8194 | ||
8235 | Multiple services can be specified, each one separated by a space. | 8195 | Multiple services can be specified, each one separated by a space. |
@@ -8392,7 +8352,7 @@ system and gives an overview of their function and contents. | |||
8392 | - For native recipes, the build system sets the variable to the | 8352 | - For native recipes, the build system sets the variable to the |
8393 | value of :term:`BUILD_PREFIX`. | 8353 | value of :term:`BUILD_PREFIX`. |
8394 | 8354 | ||
8395 | - For native SDK recipes (:ref:`nativesdk <ref-classes-nativesdk>`), | 8355 | - For native SDK recipes (:ref:`ref-classes-nativesdk`), |
8396 | the build system sets the variable to the value of :term:`SDK_PREFIX`. | 8356 | the build system sets the variable to the value of :term:`SDK_PREFIX`. |
8397 | 8357 | ||
8398 | :term:`TARGET_SYS` | 8358 | :term:`TARGET_SYS` |
@@ -8952,21 +8912,19 @@ system and gives an overview of their function and contents. | |||
8952 | "sdcard" specifies the :term:`IMAGE_FSTYPES` to use for the U-Boot image. | 8912 | "sdcard" specifies the :term:`IMAGE_FSTYPES` to use for the U-Boot image. |
8953 | 8913 | ||
8954 | For more information on how the :term:`UBOOT_CONFIG` is handled, see the | 8914 | For more information on how the :term:`UBOOT_CONFIG` is handled, see the |
8955 | :ref:`uboot-config <ref-classes-uboot-config>` | 8915 | :ref:`ref-classes-uboot-config` class. |
8956 | class. | ||
8957 | 8916 | ||
8958 | :term:`UBOOT_DTB_LOADADDRESS` | 8917 | :term:`UBOOT_DTB_LOADADDRESS` |
8959 | Specifies the load address for the dtb image used by U-Boot. During FIT | 8918 | Specifies the load address for the dtb image used by U-Boot. During FIT |
8960 | image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in | 8919 | image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in |
8961 | :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify | 8920 | :ref:`ref-classes-kernel-fitimage` class to specify the load address to be |
8962 | the load address to be used in | 8921 | used in creating the dtb sections of Image Tree Source for the FIT image. |
8963 | creating the dtb sections of Image Tree Source for the FIT image. | ||
8964 | 8922 | ||
8965 | :term:`UBOOT_DTBO_LOADADDRESS` | 8923 | :term:`UBOOT_DTBO_LOADADDRESS` |
8966 | Specifies the load address for the dtbo image used by U-Boot. During FIT | 8924 | Specifies the load address for the dtbo image used by U-Boot. During FIT |
8967 | image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in | 8925 | image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in |
8968 | :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the load address to be used in | 8926 | :ref:`ref-classes-kernel-fitimage` class to specify the load address to be |
8969 | creating the dtbo sections of Image Tree Source for the FIT image. | 8927 | used in creating the dtbo sections of Image Tree Source for the FIT image. |
8970 | 8928 | ||
8971 | :term:`UBOOT_ENTRYPOINT` | 8929 | :term:`UBOOT_ENTRYPOINT` |
8972 | Specifies the entry point for the U-Boot image. During U-Boot image | 8930 | Specifies the entry point for the U-Boot image. During U-Boot image |
@@ -9001,16 +8959,16 @@ system and gives an overview of their function and contents. | |||
9001 | 8959 | ||
9002 | :term:`UBOOT_MKIMAGE` | 8960 | :term:`UBOOT_MKIMAGE` |
9003 | Specifies the name of the mkimage command as used by the | 8961 | Specifies the name of the mkimage command as used by the |
9004 | :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to assemble | 8962 | :ref:`ref-classes-kernel-fitimage` class to assemble |
9005 | the FIT image. This can be used to substitute an alternative command, wrapper | 8963 | the FIT image. This can be used to substitute an alternative command, wrapper |
9006 | script or function if desired. The default is "uboot-mkimage". | 8964 | script or function if desired. The default is "uboot-mkimage". |
9007 | 8965 | ||
9008 | :term:`UBOOT_MKIMAGE_DTCOPTS` | 8966 | :term:`UBOOT_MKIMAGE_DTCOPTS` |
9009 | Options for the device tree compiler passed to mkimage '-D' | 8967 | Options for the device tree compiler passed to mkimage '-D' feature while |
9010 | feature while creating FIT image in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class. | 8968 | creating FIT image in :ref:`ref-classes-kernel-fitimage` class. If |
9011 | If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then | 8969 | :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then |
9012 | :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` will not pass the | 8970 | :ref:`ref-classes-kernel-fitimage` will not pass the ``-D`` option to |
9013 | ``-D`` option to mkimage. | 8971 | mkimage. |
9014 | 8972 | ||
9015 | :term:`UBOOT_MKIMAGE_KERNEL_TYPE` | 8973 | :term:`UBOOT_MKIMAGE_KERNEL_TYPE` |
9016 | Specifies the type argument for the kernel as passed to ``uboot-mkimage``. | 8974 | Specifies the type argument for the kernel as passed to ``uboot-mkimage``. |
@@ -9018,31 +8976,27 @@ system and gives an overview of their function and contents. | |||
9018 | 8976 | ||
9019 | :term:`UBOOT_MKIMAGE_SIGN` | 8977 | :term:`UBOOT_MKIMAGE_SIGN` |
9020 | Specifies the name of the mkimage command as used by the | 8978 | Specifies the name of the mkimage command as used by the |
9021 | :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to sign | 8979 | :ref:`ref-classes-kernel-fitimage` class to sign |
9022 | the FIT image after it has been assembled (if enabled). This can be used | 8980 | the FIT image after it has been assembled (if enabled). This can be used |
9023 | to substitute an alternative command, wrapper script or function if | 8981 | to substitute an alternative command, wrapper script or function if |
9024 | desired. The default is "${:term:`UBOOT_MKIMAGE`}". | 8982 | desired. The default is "${:term:`UBOOT_MKIMAGE`}". |
9025 | 8983 | ||
9026 | :term:`UBOOT_MKIMAGE_SIGN_ARGS` | 8984 | :term:`UBOOT_MKIMAGE_SIGN_ARGS` |
9027 | Optionally specifies additional arguments for the | 8985 | Optionally specifies additional arguments for the |
9028 | :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to pass to the | 8986 | :ref:`ref-classes-kernel-fitimage` class to pass to the |
9029 | mkimage command when signing the FIT image. | 8987 | mkimage command when signing the FIT image. |
9030 | 8988 | ||
9031 | :term:`UBOOT_RD_ENTRYPOINT` | 8989 | :term:`UBOOT_RD_ENTRYPOINT` |
9032 | Specifies the entrypoint for the RAM disk image. | 8990 | Specifies the entrypoint for the RAM disk image. During FIT image |
9033 | During FIT image creation, the | 8991 | creation, the :term:`UBOOT_RD_ENTRYPOINT` variable is used in |
9034 | :term:`UBOOT_RD_ENTRYPOINT` variable is used | 8992 | :ref:`ref-classes-kernel-fitimage` class to specify the entrypoint to be |
9035 | in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the | 8993 | used in creating the Image Tree Source for the FIT image. |
9036 | entrypoint to be used in creating the Image Tree Source for | ||
9037 | the FIT image. | ||
9038 | 8994 | ||
9039 | :term:`UBOOT_RD_LOADADDRESS` | 8995 | :term:`UBOOT_RD_LOADADDRESS` |
9040 | Specifies the load address for the RAM disk image. | 8996 | Specifies the load address for the RAM disk image. During FIT image |
9041 | During FIT image creation, the | 8997 | creation, the :term:`UBOOT_RD_LOADADDRESS` variable is used in |
9042 | :term:`UBOOT_RD_LOADADDRESS` variable is used | 8998 | :ref:`ref-classes-kernel-fitimage` class to specify the load address to |
9043 | in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the | 8999 | be used in creating the Image Tree Source for the FIT image. |
9044 | load address to be used in creating the Image Tree Source for | ||
9045 | the FIT image. | ||
9046 | 9000 | ||
9047 | :term:`UBOOT_SIGN_ENABLE` | 9001 | :term:`UBOOT_SIGN_ENABLE` |
9048 | Enable signing of FIT image. The default value is "0". | 9002 | Enable signing of FIT image. The default value is "0". |
@@ -9084,12 +9038,12 @@ system and gives an overview of their function and contents. | |||
9084 | 9038 | ||
9085 | The configure arguments check that uses | 9039 | The configure arguments check that uses |
9086 | :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the | 9040 | :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the |
9087 | :ref:`insane <ref-classes-insane>` class and is only enabled if the | 9041 | :ref:`ref-classes-insane` class and is only enabled if the |
9088 | recipe inherits the :ref:`autotools <ref-classes-autotools>` class. | 9042 | recipe inherits the :ref:`ref-classes-autotools` class. |
9089 | 9043 | ||
9090 | :term:`UPDATERCPN` | 9044 | :term:`UPDATERCPN` |
9091 | For recipes inheriting the | 9045 | For recipes inheriting the |
9092 | :ref:`update-rc.d <ref-classes-update-rc.d>` class, :term:`UPDATERCPN` | 9046 | :ref:`ref-classes-update-rc.d` class, :term:`UPDATERCPN` |
9093 | specifies the package that contains the initscript that is enabled. | 9047 | specifies the package that contains the initscript that is enabled. |
9094 | 9048 | ||
9095 | The default value is "${PN}". Given that almost all recipes that | 9049 | The default value is "${PN}". Given that almost all recipes that |
@@ -9243,7 +9197,7 @@ system and gives an overview of their function and contents. | |||
9243 | causes the build system to use static ``gid`` values. | 9197 | causes the build system to use static ``gid`` values. |
9244 | 9198 | ||
9245 | :term:`USERADD_PACKAGES` | 9199 | :term:`USERADD_PACKAGES` |
9246 | When inheriting the :ref:`useradd <ref-classes-useradd>` class, | 9200 | When inheriting the :ref:`ref-classes-useradd` class, |
9247 | this variable specifies the individual packages within the recipe | 9201 | this variable specifies the individual packages within the recipe |
9248 | that require users and/or groups to be added. | 9202 | that require users and/or groups to be added. |
9249 | 9203 | ||
@@ -9260,7 +9214,7 @@ system and gives an overview of their function and contents. | |||
9260 | :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables. | 9214 | :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables. |
9261 | 9215 | ||
9262 | :term:`USERADD_PARAM` | 9216 | :term:`USERADD_PARAM` |
9263 | When inheriting the :ref:`useradd <ref-classes-useradd>` class, | 9217 | When inheriting the :ref:`ref-classes-useradd` class, |
9264 | this variable specifies for a package what parameters should pass to | 9218 | this variable specifies for a package what parameters should pass to |
9265 | the ``useradd`` command if you add a user to the system when the | 9219 | the ``useradd`` command if you add a user to the system when the |
9266 | package is installed. | 9220 | package is installed. |