docs: replace ``FOO`` by :term:`FOO` where possible
PATCH 1/1 docs: replace ``FOO`` by :term:`FOO` where possible
If a variable has a glossary entry and some rST files write about those variables, it's better to point to the glossary entry instead of just highlighting it by surrounding it with two tick quotes.
This was automated by the following python script:
"""
import re
from pathlib import Path
with open('objects.inv.txt', 'r') as f:
objects = f.readlines()
with open('bitbake-objects.inv.txt', 'r') as f:
objects = objects + f.readlines()
re_term = re.compile(r'variables.html#term-([A-Z_0-9]*)') terms = []
for obj in objects:
match = re_term.search(obj)
if match and match.group(1):
terms.append(match.group(1))
for rst in Path('.').rglob('*.rst'):
with open(rst, 'r') as f:
content = "".joing(f.readlines())
for term in terms:
content = re.sub(r'``({})``(?!.*\s*[~-]+)'.format(term), r':term:\1', content)
with open(rst, 'w') as f:
f.write(content)
"""
---
note that section titles sometimes have ``FOO``, they have been ignored on purpose (mix of colors in the section title and underlined/not underlined) but it's absolutely possible to do it (though :ref: will need to be updated to reflect that change).
build tested only (no errors, no warnings)
documentation/brief-yoctoprojectqs/index.rst | 2 +- documentation/bsp-guide/bsp.rst | 16 +- documentation/dev-manual/common-tasks.rst | 386 +++--- documentation/kernel-dev/advanced.rst | 56 +- documentation/kernel-dev/common.rst | 52 +- documentation/kernel-dev/faq.rst | 2 +- documentation/kernel-dev/maint-appx.rst | 2 +- documentation/overview-manual/concepts.rst | 72 +- documentation/ref-manual/classes.rst | 74 +- documentation/ref-manual/faq.rst | 16 +- documentation/ref-manual/features.rst | 22 +- documentation/ref-manual/migration-1.3.rst | 4 +- documentation/ref-manual/migration-1.4.rst | 14 +- documentation/ref-manual/migration-1.5.rst | 22 +- documentation/ref-manual/migration-1.6.rst | 12 +- documentation/ref-manual/migration-1.7.rst | 4 +- documentation/ref-manual/migration-1.8.rst | 4 +- documentation/ref-manual/migration-2.0.rst | 4 +- documentation/ref-manual/migration-2.1.rst | 8 +- documentation/ref-manual/migration-2.2.rst | 6 +- documentation/ref-manual/migration-2.3.rst | 20 +- documentation/ref-manual/migration-2.4.rst | 4 +- documentation/ref-manual/migration-2.5.rst | 2 +- documentation/ref-manual/migration-2.6.rst | 22 +- documentation/ref-manual/migration-2.7.rst | 2 +- documentation/ref-manual/migration-3.1.rst | 2 +- documentation/ref-manual/migration-3.2.rst | 6 +- documentation/ref-manual/qa-checks.rst | 26 +- documentation/ref-manual/structure.rst | 16 +- documentation/ref-manual/tasks.rst | 12 +- documentation/ref-manual/terms.rst | 6 +- documentation/ref-manual/variables.rst | 1184 ++++++++--------- .../appendix-customizing-standard.rst | 4 +- .../sdk-manual/appendix-customizing.rst | 24 +- documentation/sdk-manual/extensible.rst | 50 +- documentation/sdk-manual/working-projects.rst | 12 +- .../toaster-manual/setup-and-use.rst | 2 +- .../transitioning-to-a-custom-environment.rst | 2 +- 38 files changed, 1087 insertions(+), 1087 deletions(-)
documentation/brief-yoctoprojectqs/index.rst +1 -1
@@ -332,7 +332,7 @@ Follow these steps to add a hardware layer: #. **Change the Configuration to Build for a Specific Machine:** The :term:`MACHINE` variable in the ``local.conf`` file specifies the machine for the build. For this - example, set the ``MACHINE`` variable to ``cyclone5``. These + example, set the :term:`MACHINE` variable to ``cyclone5``. These configurations are used: https://github.com/kraj/meta-altera/blob/master/conf/machine/cyclone5.conf.
documentation/bsp-guide/bsp.rst +8 -8
@@ -95,11 +95,11 @@ layer and from it build an image. Here is an example:: .. note:: - Ordering and :term:`BBFILE_PRIORITY` for the layers listed in ``BBLAYERS`` + Ordering and :term:`BBFILE_PRIORITY` for the layers listed in :term:`BBLAYERS` matter. For example, if multiple layers define a machine configuration, the OpenEmbedded build system uses the last layer searched given similar layer priorities. The build system works from the top-down through the layers - listed in ``BBLAYERS``. + listed in :term:`BBLAYERS`. Some BSPs require or depend on additional layers beyond the BSP's root layer in order to be functional. In this case, you need to specify these
@@ -685,7 +685,7 @@ statements as follows:: .. note:: - When the preferred provider is assumed by default, the ``PREFERRED_PROVIDER`` + When the preferred provider is assumed by default, the :term:`PREFERRED_PROVIDER` statement does not appear in the ``"bsp_root_name".conf`` file. You would use the ``linux-yocto_4.4.bbappend`` file to append specific
@@ -1121,15 +1121,15 @@ list describes them in order of preference: how to use these variables. If you build as you normally would, without specifying any recipes in - the ``LICENSE_FLAGS_WHITELIST``, the build stops and provides you + the :term:`LICENSE_FLAGS_WHITELIST`, the build stops and provides you with the list of recipes that you have tried to include in the image - that need entries in the ``LICENSE_FLAGS_WHITELIST``. Once you enter + that need entries in the :term:`LICENSE_FLAGS_WHITELIST`. Once you enter the appropriate license flags into the whitelist, restart the build to continue where it left off. During the build, the prompt will not appear again since you have satisfied the requirement. Once the appropriate license flags are on the white list in the - ``LICENSE_FLAGS_WHITELIST`` variable, you can build the encumbered + :term:`LICENSE_FLAGS_WHITELIST` variable, you can build the encumbered image with no change at all to the normal build process. #. *Get a Pre-Built Version of the BSP:* You can get this type of BSP by
@@ -1142,7 +1142,7 @@ list describes them in order of preference: click-through license agreements presented by the website. If you want to build the image yourself using the recipes contained within the BSP tarball, you will still need to create an appropriate - ``LICENSE_FLAGS_WHITELIST`` to match the encumbered recipes in the + :term:`LICENSE_FLAGS_WHITELIST` to match the encumbered recipes in the BSP. .. note::
@@ -1405,7 +1405,7 @@ Project Reference Manual. The BeagleBone development board requires an SPL to boot and that SPL file type must be MLO. Consequently, the machine configuration needs - to define ``SPL_BINARY`` as ``MLO``. + to define :term:`SPL_BINARY` as ``MLO``. .. note::
documentation/dev-manual/common-tasks.rst +193 -193
1,224 lines not on this page · raw message
documentation/kernel-dev/advanced.rst +28 -28
163 lines not on this page · raw message
documentation/kernel-dev/common.rst +26 -26
177 lines not on this page · raw message
documentation/kernel-dev/faq.rst +1 -1
@@ -68,7 +68,7 @@ How do I change the Linux kernel command line? ---------------------------------------------- The Linux kernel command line is -typically specified in the machine config using the ``APPEND`` variable. +typically specified in the machine config using the :term:`APPEND` variable. For example, you can add some helpful debug information doing the following::
documentation/kernel-dev/maint-appx.rst +1 -1
@@ -104,7 +104,7 @@ patch, or BSP: repository organized under the "Yocto Linux Kernel" heading in the :yocto_git:`Yocto Project Source Repositories <>`. - - Areas pointed to by ``SRC_URI`` statements found in kernel recipes. + - Areas pointed to by :term:`SRC_URI` statements found in kernel recipes. For a typical build, the target of the search is a feature description in an ``.scc`` file whose name follows this format (e.g.
documentation/overview-manual/concepts.rst +36 -36
253 lines not on this page · raw message
documentation/ref-manual/classes.rst +37 -37
247 lines not on this page · raw message
documentation/ref-manual/faq.rst +8 -8
@@ -108,10 +108,10 @@ the team can place sources there so builds continue to work. but the package is being marked as machine-specific in all cases, how do I prevent this? -**A:** Set ``SRC_URI_OVERRIDES_PACKAGE_ARCH`` = "0" in the ``.bb`` file +**A:** Set :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH` = "0" in the ``.bb`` file but make sure the package is manually marked as machine-specific for the case that needs it. The code that handles -``SRC_URI_OVERRIDES_PACKAGE_ARCH`` is in the +:term:`SRC_URI_OVERRIDES_PACKAGE_ARCH` is in the ``meta/classes/base.bbclass`` file. **Q:** I'm behind a firewall and need to use a proxy server. How do I do
@@ -250,7 +250,7 @@ size, you need to set various configurations: :term:`IMAGE_ROOTFS_EXTRA_SPACE` variable to add additional free space to the image. The build system adds this space to the image after it determines its - ``IMAGE_ROOTFS_SIZE``. + :term:`IMAGE_ROOTFS_SIZE`. **Q:** Why don't you support directories with spaces in the pathnames?
@@ -262,11 +262,11 @@ situation changes, the team will not support spaces in pathnames. **Q:** How do I use an external toolchain? **A:** The toolchain configuration is very flexible and customizable. It -is primarily controlled with the ``TCMODE`` variable. This variable +is primarily controlled with the :term:`TCMODE` variable. This variable controls which ``tcmode-*.inc`` file to include from the ``meta/conf/distro/include`` directory within the :term:`Source Directory`. -The default value of ``TCMODE`` is "default", which tells the +The default value of :term:`TCMODE` is "default", which tells the OpenEmbedded build system to use its internally built toolchain (i.e. ``tcmode-default.inc``). However, other patterns are accepted. In particular, "external-\*" refers to external toolchains. One example is
@@ -325,7 +325,7 @@ Here is another technique:: BB_FETCH_PREMIRRORONLY = "1" This statement -limits the build system to pulling source from the ``PREMIRRORS`` only. +limits the build system to pulling source from the :term:`PREMIRRORS` only. Again, this technique is useful for reproducing builds. Here is another technique::
@@ -339,7 +339,7 @@ however, the technique can simply waste time during the build. Finally, consider an example where you are behind an HTTP-only firewall. You could make the following changes to the ``local.conf`` configuration -file as long as the ``PREMIRRORS`` server is current:: +file as long as the :term:`PREMIRRORS` server is current:: PREMIRRORS_prepend = "\ ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
@@ -349,7 +349,7 @@ file as long as the ``PREMIRRORS`` server is current:: These changes would cause the build system to successfully fetch source over HTTP and any network accesses to anything other than the -``PREMIRRORS`` would fail. +:term:`PREMIRRORS` would fail. The build system also honors the standard shell environment variables ``http_proxy``, ``ftp_proxy``, ``https_proxy``, and ``all_proxy`` to
documentation/ref-manual/features.rst +11 -11
@@ -10,10 +10,10 @@ can select, and a reference on feature backfilling. Features provide a mechanism for working out which packages should be included in the generated images. Distributions can select which -features they want to support through the ``DISTRO_FEATURES`` variable, +features they want to support through the :term:`DISTRO_FEATURES` variable, which is set or appended to in a distribution's configuration file such as ``poky.conf``, ``poky-tiny.conf``, ``poky-lsb.conf`` and so forth. -Machine features are set in the ``MACHINE_FEATURES`` variable, which is +Machine features are set in the :term:`MACHINE_FEATURES` variable, which is set in the machine configuration file and specifies the hardware features for a given machine.
@@ -267,7 +267,7 @@ these valid features is as follows: - *ssh-server-openssh:* Installs the OpenSSH SSH server, which is more full-featured than Dropbear. Note that if both the OpenSSH SSH server and the Dropbear minimal SSH server are present in - ``IMAGE_FEATURES``, then OpenSSH will take precedence and Dropbear + :term:`IMAGE_FEATURES`, then OpenSSH will take precedence and Dropbear will not be installed. - *tools-debug:* Installs debugging tools such as ``strace`` and
@@ -323,27 +323,27 @@ Here are two examples to help illustrate feature backfilling: - *The "pulseaudio" distro feature option*: Previously, PulseAudio support was enabled within the Qt and GStreamer frameworks. Because of this, the feature is backfilled and thus enabled for all distros - through the ``DISTRO_FEATURES_BACKFILL`` variable in the + through the :term:`DISTRO_FEATURES_BACKFILL` variable in the ``meta/conf/bitbake.conf`` file. However, your distro needs to disable the feature. You can disable the feature without affecting other existing distro configurations that need PulseAudio support by - adding "pulseaudio" to ``DISTRO_FEATURES_BACKFILL_CONSIDERED`` in + adding "pulseaudio" to :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` in your distro's ``.conf`` file. Adding the feature to this variable - when it also exists in the ``DISTRO_FEATURES_BACKFILL`` variable + when it also exists in the :term:`DISTRO_FEATURES_BACKFILL` variable prevents the build system from adding the feature to your - configuration's ``DISTRO_FEATURES``, effectively disabling the + configuration's :term:`DISTRO_FEATURES`, effectively disabling the feature for that particular distro. - *The "rtc" machine feature option*: Previously, real time clock (RTC) support was enabled for all target devices. Because of this, the feature is backfilled and thus enabled for all machines through the - ``MACHINE_FEATURES_BACKFILL`` variable in the + :term:`MACHINE_FEATURES_BACKFILL` variable in the ``meta/conf/bitbake.conf`` file. However, your target device does not have this capability. You can disable RTC support for your device without affecting other machines that need RTC support by adding the - feature to your machine's ``MACHINE_FEATURES_BACKFILL_CONSIDERED`` + feature to your machine's :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` list in the machine's ``.conf`` file. Adding the feature to this - variable when it also exists in the ``MACHINE_FEATURES_BACKFILL`` + variable when it also exists in the :term:`MACHINE_FEATURES_BACKFILL` variable prevents the build system from adding the feature to your - configuration's ``MACHINE_FEATURES``, effectively disabling RTC + configuration's :term:`MACHINE_FEATURES`, effectively disabling RTC support for that particular machine.
documentation/ref-manual/migration-1.3.rst +2 -2
@@ -125,7 +125,7 @@ Image recipes that previously included ``apps-console-core`` in :term:`IMAGE_FEATURES` should now include ``splash`` instead to enable the boot-up splash screen. Retaining ``apps-console-core`` will still include the splash screen but generates a -warning. The ``apps-x11-core`` and ``apps-x11-games`` ``IMAGE_FEATURES`` +warning. The ``apps-x11-core`` and ``apps-x11-games`` :term:`IMAGE_FEATURES` features have been removed. .. _migration-1.3-removed-recipes:
@@ -185,7 +185,7 @@ include :term:`PE` as part of the filename:: KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PE}-${PV}-${PR}-${MACHINE}-${DATETIME}" -Because the ``PE`` variable is not set by default, these binary files +Because the :term:`PE` variable is not set by default, these binary files could result with names that include two dash characters. Here is an example::
documentation/ref-manual/migration-1.4.rst +7 -7
@@ -28,7 +28,7 @@ Differences include the following: and uninstall script functions ``pkg_preinst``, ``pkg_postinst``, ``pkg_prerm``, and ``pkg_postrm`` should always have a package name override. For example, use ``RDEPENDS_${PN}`` for the main package - instead of ``RDEPENDS``. BitBake uses more strict checks when it + instead of :term:`RDEPENDS`. BitBake uses more strict checks when it parses recipes. .. _migration-1.4-build-behavior:
@@ -53,10 +53,10 @@ Differences include the following: :term:`SRC_URI`, the build system now uses :term:`FILESOVERRIDES` instead of :term:`OVERRIDES` for the directory names. In - general, the values previously in ``OVERRIDES`` are now in - ``FILESOVERRIDES`` as well. However, if you relied upon an additional - value you previously added to ``OVERRIDES``, you might now need to - add it to ``FILESOVERRIDES`` unless you are already adding it through + general, the values previously in :term:`OVERRIDES` are now in + :term:`FILESOVERRIDES` as well. However, if you relied upon an additional + value you previously added to :term:`OVERRIDES`, you might now need to + add it to :term:`FILESOVERRIDES` unless you are already adding it through the :term:`MACHINEOVERRIDES` or :term:`DISTROOVERRIDES` variables, as appropriate. For more related changes, see the
@@ -105,7 +105,7 @@ Variables The following variables have changed: -- ``SANITY_TESTED_DISTROS``: This variable now uses a distribution +- :term:`SANITY_TESTED_DISTROS`: This variable now uses a distribution ID, which is composed of the host distributor ID followed by the release. Previously, :term:`SANITY_TESTED_DISTROS` was
@@ -114,7 +114,7 @@ The following variables have changed: you are not specifically setting this variable, or if you are specifically setting it to "". -- ``SRC_URI``: The ``${``\ :term:`PN`\ ``}``, +- :term:`SRC_URI`: The ``${``\ :term:`PN`\ ``}``, ``${``\ :term:`PF`\ ``}``, ``${``\ :term:`P`\ ``}``, and ``FILE_DIRNAME`` directories have been dropped from the default value of the
documentation/ref-manual/migration-1.5.rst +11 -11
@@ -68,7 +68,7 @@ The following changes have been made that relate to BitBake: - ``${``\ :term:`P`\ ``}`` and ``${``\ :term:`PF`\ ``}`` are no longer added to :term:`PROVIDES` by default in ``bitbake.conf``. - These version-specific ``PROVIDES`` items were seldom used. + These version-specific :term:`PROVIDES` items were seldom used. Attempting to use them could result in two versions being built simultaneously rather than just one version due to the way BitBake resolves dependencies.
@@ -84,9 +84,9 @@ The following changes have been made to the package QA checks: :term:`WARN_QA` values in your configuration, check that they contain all of the issues that you wish to be reported. Previous Yocto Project versions contained a bug that meant that any - item not mentioned in ``ERROR_QA`` or ``WARN_QA`` would be treated as + item not mentioned in :term:`ERROR_QA` or :term:`WARN_QA` would be treated as a warning. Consequently, several important items were not already in - the default value of ``WARN_QA``. All of the possible QA checks are + the default value of :term:`WARN_QA`. All of the possible QA checks are now documented in the ":ref:`insane.bbclass <ref-classes-insane>`" section.
@@ -97,7 +97,7 @@ The following changes have been made to the package QA checks: - If you are using the ``buildhistory`` class, the check for the package version going backwards is now controlled using a standard QA check. - Thus, if you have customized your ``ERROR_QA`` or ``WARN_QA`` values + Thus, if you have customized your :term:`ERROR_QA` or :term:`WARN_QA` values and still wish to have this check performed, you should add "version-going-backwards" to your value for one or the other variables depending on how you wish it to be handled. See the
@@ -129,7 +129,7 @@ The following directory changes exist: - When buildhistory is enabled, its output is now written under the :term:`Build Directory` rather than :term:`TMPDIR`. Doing so makes it easier to delete - ``TMPDIR`` and preserve the build history. Additionally, data for + :term:`TMPDIR` and preserve the build history. Additionally, data for produced SDKs is now split by :term:`IMAGE_NAME`. - The ``pkgdata`` directory produced as part of the packaging process
@@ -157,20 +157,20 @@ major issue in the way the values are used. The following changes have been made that relate to :term:`IMAGE_FEATURES`: -- The value of ``IMAGE_FEATURES`` is now validated to ensure invalid +- The value of :term:`IMAGE_FEATURES` is now validated to ensure invalid feature items are not added. Some users mistakenly add package names to this variable instead of using :term:`IMAGE_INSTALL` in order to have the package added to the image, which does not work. This change is - intended to catch those kinds of situations. Valid ``IMAGE_FEATURES`` + intended to catch those kinds of situations. Valid :term:`IMAGE_FEATURES` are drawn from ``PACKAGE_GROUP`` definitions, :term:`COMPLEMENTARY_GLOB` and a new - "validitems" varflag on ``IMAGE_FEATURES``. The "validitems" varflag + "validitems" varflag on :term:`IMAGE_FEATURES`. The "validitems" varflag change allows additional features to be added if they are not provided using the previous two mechanisms. -- The previously deprecated "apps-console-core" ``IMAGE_FEATURES`` item - is no longer supported. Add "splash" to ``IMAGE_FEATURES`` if you +- The previously deprecated "apps-console-core" :term:`IMAGE_FEATURES` item + is no longer supported. Add "splash" to :term:`IMAGE_FEATURES` if you wish to have the splash screen enabled, since this is all that apps-console-core was doing.
@@ -285,7 +285,7 @@ Following are changes to ``udev``: ``udev-extraconf`` to your image. - ``udev`` no longer brings in ``pciutils-ids`` or ``usbutils-ids`` - through ``RRECOMMENDS``. These are not needed by ``udev`` itself and + through :term:`RRECOMMENDS`. These are not needed by ``udev`` itself and removing them saves around 350KB. .. _migration-1.5-removed-renamed-recipes:
documentation/ref-manual/migration-1.6.rst +6 -6
@@ -61,7 +61,7 @@ If you do not specify a branch, BitBake looks in the default "master" branch. Alternatively, if you need to bypass this check (e.g. if you are fetching a revision corresponding to a tag that is not on any branch), -you can add ";nobranch=1" to the end of the URL within ``SRC_URI``. +you can add ";nobranch=1" to the end of the URL within :term:`SRC_URI`. .. _migration-1.6-bitbake-deps:
@@ -134,9 +134,9 @@ OpenEmbedded build system variables, see the ":doc:`/ref-manual/variables`" Chap :term:`TMPDIR` can no longer be on an NFS mount. NFS does not offer full POSIX locking and inode consistency and can cause -unexpected issues if used to store ``TMPDIR``. +unexpected issues if used to store :term:`TMPDIR`. -The check for this occurs on startup. If ``TMPDIR`` is detected on an +The check for this occurs on startup. If :term:`TMPDIR` is detected on an NFS mount, an error occurs. .. _migration-1.6-variable-changes-PRINC:
@@ -274,7 +274,7 @@ In addition to ``core-image-basic`` being renamed, Licensing --------- -The top-level ``LICENSE`` file has been changed to better describe the +The top-level :term:`LICENSE` file has been changed to better describe the license of the various components of :term:`OpenEmbedded-Core (OE-Core)`. However, the licensing itself remains unchanged.
@@ -284,7 +284,7 @@ recipes point to this file within ``${COREBASE}/LICENSE``) and thus the accompanying checksum must be changed from 3f40d7994397109285ec7b81fdeb3b58 to 4d92cd373abda3937c2bc47fbc49d690. A better alternative is to have -``LIC_FILES_CHKSUM`` point to a file describing the license that is +:term:`LIC_FILES_CHKSUM` point to a file describing the license that is distributed with the source that the recipe is building, if possible, rather than pointing to ``${COREBASE}/LICENSE``.
@@ -297,7 +297,7 @@ The "-fpermissive" option has been removed from the default :term:`CFLAGS` value. You need to take action on individual recipes that fail when building with this option. You need to either patch the recipes to fix the issues reported by the compiler, or -you need to add "-fpermissive" to ``CFLAGS`` in the recipes. +you need to add "-fpermissive" to :term:`CFLAGS` in the recipes. .. _migration-1.6-custom-images:
documentation/ref-manual/migration-1.7.rst +2 -2
@@ -140,9 +140,9 @@ part of the variable name. This change not only simplifies usage but also allows the values of these variables to be appropriately incorporated into task signatures and thus trigger the appropriate tasks to re-execute when changed. You should replace any references to -``module_autoload_*`` with ``KERNEL_MODULE_AUTOLOAD``, and add any +``module_autoload_*`` with :term:`KERNEL_MODULE_AUTOLOAD`, and add any modules for which ``module_conf_*`` is specified to -``KERNEL_MODULE_PROBECONF``. +:term:`KERNEL_MODULE_PROBECONF`. .. _migration-1.7-qa-check-changes:
documentation/ref-manual/migration-1.8.rst +2 -2
@@ -153,8 +153,8 @@ The following QA Check and Validation Changes have occurred: instead of ``${D}``. - :term:`S` now needs to be set to a valid value within a - recipe. If ``S`` is not set in the recipe, the directory is not - automatically created. If ``S`` does not point to a directory that + recipe. If :term:`S` is not set in the recipe, the directory is not + automatically created. If :term:`S` does not point to a directory that exists at the time the :ref:`ref-tasks-unpack` task finishes, a warning will be shown.
documentation/ref-manual/migration-2.0.rst +2 -2
@@ -25,7 +25,7 @@ and the porting guide at https://gcc.gnu.org/gcc-5/porting_to.html. Alternatively, you can switch back to GCC 4.9 or 4.8 by setting -``GCCVERSION`` in your configuration, as follows:: +:term:`GCCVERSION` in your configuration, as follows:: GCCVERSION = "4.9%"
@@ -244,7 +244,7 @@ The following QA checks have been added: - Added an "invalid-packageconfig" check for any options specified in :term:`PACKAGECONFIG` that do not match any - ``PACKAGECONFIG`` option defined for the recipe. + :term:`PACKAGECONFIG` option defined for the recipe. .. _migration-2.0-miscellaneous:
documentation/ref-manual/migration-2.1.rst +4 -4
@@ -28,8 +28,8 @@ characters. This practice is now a requirement as BitBake's datastore now assumes lower-case characters in order to give a slight performance boost during parsing. In practical terms, this requirement means that anything that ends up in :term:`OVERRIDES` must now -appear in lower-case characters (e.g. values for ``MACHINE``, -``TARGET_ARCH``, ``DISTRO``, and also recipe names if +appear in lower-case characters (e.g. values for :term:`MACHINE`, +:term:`TARGET_ARCH`, :term:`DISTRO`, and also recipe names if ``_pn-``\ recipename overrides are to be effective). .. _migration-2.1-expand-parameter-to-getvar-and-getvarflag-now-mandatory:
@@ -68,7 +68,7 @@ was a historical accident that has required many classes (e.g. to work with sensible build systems. When upgrading to the release, you must edit any recipe that relies upon this old default by either setting ``EXTRA_OEMAKE`` back to "-e MAKEFLAGS=" or by explicitly setting any -required variable value overrides using ``EXTRA_OEMAKE``, which is +required variable value overrides using :term:`EXTRA_OEMAKE`, which is typically only needed when a Makefile sets a default value for a variable that is inappropriate for cross-compilation using the "=" operator rather than the "?=" operator.
@@ -376,7 +376,7 @@ These additional changes exist: run-postinsts With the Yocto Project 2.1 release, these packages are - only removed if "read-only-rootfs" is in ``IMAGE_FEATURES``, since + only removed if "read-only-rootfs" is in :term:`IMAGE_FEATURES`, since they might still be needed for a read-write image even in the absence of a package manager (e.g. if users need to be added, modified, or removed at runtime).
documentation/ref-manual/migration-2.2.rst +3 -3
@@ -239,7 +239,7 @@ to catch recipes that are building software without using the OpenEmbedded :term:`LDFLAGS`. This change could result in seeing some "No GNU_HASH in the elf binary" QA issues when building such recipes. You need to fix these recipes so that they use the expected -``LDFLAGS``. Depending on how the software is built, the build system +:term:`LDFLAGS`. Depending on how the software is built, the build system used by the software (e.g. a Makefile) might need to be patched. However, sometimes making this fix is as simple as adding the following to the recipe::
@@ -280,7 +280,7 @@ The following changes took place for BitBake: :term:`SRC_URI` parameters to specify these. This change is more in-line with how the other fetchers work for source control systems. Recipes that fetch from Perforce will need to be - updated to use ``SRCREV`` in place of specifying the source revision + updated to use :term:`SRCREV` in place of specifying the source revision within ``SRC_URI``. - Some of BitBake's internal code structures for accessing the recipe
@@ -297,7 +297,7 @@ The following changes took place for BitBake: to cause any problems for most users. However, the setscene verification function as pointed to by ``BB_SETSCENE_VERIFY_FUNCTION`` needed to change signature. - Consequently, a new variable named ``BB_SETSCENE_VERIFY_FUNCTION2`` + Consequently, a new variable named :term:`BB_SETSCENE_VERIFY_FUNCTION2` has been added allowing multiple versions of BitBake to work with suitably written metadata, which includes OpenEmbedded-Core and Poky. Anyone with custom BitBake task scheduler code might also need to
documentation/ref-manual/migration-2.3.rst +10 -10
@@ -35,7 +35,7 @@ Consider the following: As an example, see the ``dbus`` recipe. You will see that this recipe has a ``pkg_postinst`` that calls ``systemctl`` if "systemd" is in :term:`DISTRO_FEATURES`. In the example, - ``systemd-systemctl-native`` is added to ``PACKAGE_WRITE_DEPS``, + ``systemd-systemctl-native`` is added to :term:`PACKAGE_WRITE_DEPS`, which is also conditional on "systemd" being in ``DISTRO_FEATURES``. - Examine Recipes that Use ``SSTATEPOSTINSTFUNCS``: You need to
@@ -136,7 +136,7 @@ The following changes to scripts took place: removed because the script was found to be deleting files it should not have, which lead to broken build trees. Rather than trying to delete portions of :term:`TMPDIR` and getting it wrong, - it is recommended that you delete ``TMPDIR`` and have it restored + it is recommended that you delete :term:`TMPDIR` and have it restored from shared state (sstate) on subsequent builds. - ``wipe-sysroot``: The ``wipe-sysroot`` script has been removed as
@@ -200,10 +200,10 @@ The following changes took place for BitBake: section in the BitBake User Manual for additional information. -- ``BB_SETSCENE_VERIFY_FUNCTION`` and ``BB_SETSCENE_VERIFY_FUNCTION2`` +- ``BB_SETSCENE_VERIFY_FUNCTION`` and :term:`BB_SETSCENE_VERIFY_FUNCTION2` Removed: Because the mechanism they were part of is no longer necessary with recipe-specific sysroots, the - ``BB_SETSCENE_VERIFY_FUNCTION`` and ``BB_SETSCENE_VERIFY_FUNCTION2`` + ``BB_SETSCENE_VERIFY_FUNCTION`` and :term:`BB_SETSCENE_VERIFY_FUNCTION2` variables have been removed. .. _migration-2.3-absolute-symlinks:
@@ -426,10 +426,10 @@ The following miscellaneous changes have occurred: - If the :term:`DISTRO_VERSION` value contains the value of the :term:`DATE` variable, which is the - default between Poky releases, the ``DATE`` value is explicitly + default between Poky releases, the :term:`DATE` value is explicitly excluded from ``/etc/issue`` and ``/etc/issue.net``, which is displayed at the login prompt, in order to avoid conflicts with - Multilib enabled. Regardless, the ``DATE`` value is inaccurate if the + Multilib enabled. Regardless, the :term:`DATE` value is inaccurate if the ``base-files`` recipe is restored from shared state (sstate) rather than rebuilt.
@@ -451,7 +451,7 @@ The following miscellaneous changes have occurred: tools. - The ``USE_LDCONFIG`` variable has been replaced with the "ldconfig" - ``DISTRO_FEATURES`` feature. Distributions that previously set:: + :term:`DISTRO_FEATURES` feature. Distributions that previously set:: USE_LDCONFIG = "0"
@@ -494,12 +494,12 @@ The following miscellaneous changes have occurred: information. - All native and nativesdk recipes now use a separate - ``DISTRO_FEATURES`` value instead of sharing the value used by + :term:`DISTRO_FEATURES` value instead of sharing the value used by recipes for the target, in order to avoid unnecessary rebuilds. - The ``DISTRO_FEATURES`` for ``native`` recipes is + The :term:`DISTRO_FEATURES` for ``native`` recipes is :term:`DISTRO_FEATURES_NATIVE` added to - an intersection of ``DISTRO_FEATURES`` and + an intersection of :term:`DISTRO_FEATURES` and :term:`DISTRO_FEATURES_FILTER_NATIVE`. For nativesdk recipes, the corresponding variables are
documentation/ref-manual/migration-2.4.rst +2 -2
@@ -63,7 +63,7 @@ occurred: - The ``ionice`` program is now packaged in a separate "util-linux-ionice" package. The main ``util-linux`` package has a - recommended runtime dependency (i.e. ``RRECOMMENDS``) on the + recommended runtime dependency (i.e. :term:`RRECOMMENDS`) on the ``util-linux-ionice`` package. - ``initscripts``: The ``sushell`` program is now packaged in a
@@ -71,7 +71,7 @@ occurred: systems to pull ``sushell`` in when ``selinux`` is enabled. The change also eliminates needing to pull in the entire ``initscripts`` package. The main ``initscripts`` package has a runtime dependency - (i.e. ``RDEPENDS``) on the ``sushell`` package when "selinux" is in + (i.e. :term:`RDEPENDS`) on the ``sushell`` package when "selinux" is in ``DISTRO_FEATURES``. - ``glib-2.0``: The ``glib-2.0`` package now has a recommended
documentation/ref-manual/migration-2.5.rst +1 -1
@@ -281,7 +281,7 @@ The following are additional changes: ``IMAGE_FSTYPES``. - Recipes with an unconditional dependency on ``libpam`` are only - buildable with ``pam`` in ``DISTRO_FEATURES``. If the dependency is + buildable with ``pam`` in :term:`DISTRO_FEATURES`. If the dependency is truly optional then it is recommended that the dependency be conditional upon ``pam`` being in ``DISTRO_FEATURES``.
documentation/ref-manual/migration-2.6.rst +11 -11
@@ -156,11 +156,11 @@ Image/Kernel Artifact Naming Changes The following changes have been made: - Name variables (e.g. :term:`IMAGE_NAME`) use a new - ``IMAGE_VERSION_SUFFIX`` variable instead of - :term:`DATETIME`. Using ``IMAGE_VERSION_SUFFIX`` + :term:`IMAGE_VERSION_SUFFIX` variable instead of + :term:`DATETIME`. Using :term:`IMAGE_VERSION_SUFFIX` allows easier and more direct changes. - The ``IMAGE_VERSION_SUFFIX`` variable is set in the ``bitbake.conf`` + The :term:`IMAGE_VERSION_SUFFIX` variable is set in the ``bitbake.conf`` configuration file as follows:: IMAGE_VERSION_SUFFIX = "-${DATETIME}"
@@ -212,19 +212,19 @@ The following changes have been made: The :term:`SERIAL_CONSOLE` variable has been functionally replaced by the :term:`SERIAL_CONSOLES` variable for some time. -With the Yocto Project 2.6 release, ``SERIAL_CONSOLE`` has been +With the Yocto Project 2.6 release, :term:`SERIAL_CONSOLE` has been officially deprecated. -``SERIAL_CONSOLE`` will continue to work as before for the 2.6 release. +:term:`SERIAL_CONSOLE` will continue to work as before for the 2.6 release. However, for the sake of future compatibility, it is recommended that -you replace all instances of ``SERIAL_CONSOLE`` with -``SERIAL_CONSOLES``. +you replace all instances of :term:`SERIAL_CONSOLE` with +:term:`SERIAL_CONSOLES`. .. note:: - The only difference in usage is that ``SERIAL_CONSOLES`` + The only difference in usage is that :term:`SERIAL_CONSOLES` expects entries to be separated using semicolons as compared to - ``SERIAL_CONSOLE``, which expects spaces. + :term:`SERIAL_CONSOLE`, which expects spaces. .. _migration-2.6-poky-sets-unknown-configure-option-to-qa-error:
@@ -387,14 +387,14 @@ QEMU (i.e. "qemu-usermode" is in default). If you wish to disable Python profile-guided optimization regardless of -the value of ``MACHINE_FEATURES``, then ensure that +the value of :term:`MACHINE_FEATURES`, then ensure that :term:`PACKAGECONFIG` for the ``python3`` recipe does not contain "pgo". You could accomplish the latter using the following at the configuration level:: PACKAGECONFIG_remove_pn-python3 = "pgo" -Alternatively, you can set ``PACKAGECONFIG`` using an append file +Alternatively, you can set :term:`PACKAGECONFIG` using an append file for the ``python3`` recipe. .. _migration-2.6-miscellaneous-changes:
documentation/ref-manual/migration-2.7.rst +1 -1
@@ -91,7 +91,7 @@ This section provides information about packaging changes. package_name\ ``-src``). If you are currently using ``dbg-pkgs`` in :term:`IMAGE_FEATURES` to bring in debug symbols and you still need the sources, you must now also add - ``src-pkgs`` to ``IMAGE_FEATURES``. Source packages remain in the + ``src-pkgs`` to :term:`IMAGE_FEATURES`. Source packages remain in the target portion of the SDK by default, unless you have set your own value for :term:`SDKIMAGE_FEATURES` that does not include ``src-pkgs``.
documentation/ref-manual/migration-3.1.rst +1 -1
@@ -260,7 +260,7 @@ Miscellaneous changes --------------------- - The undocumented ``SRC_DISTRIBUTE_LICENSES`` variable has now been - removed in favour of a new ``AVAILABLE_LICENSES`` variable which is + removed in favour of a new :term:`AVAILABLE_LICENSES` variable which is dynamically set based upon license files found in ``${COMMON_LICENSE_DIR}`` and ``${LICENSE_PATH}``.
documentation/ref-manual/migration-3.2.rst +3 -3
@@ -62,10 +62,10 @@ There is a possible complication where some existing recipe may break, for example, a recipe was found to be writing to ``${B}/install`` for ``make install`` in ``do_install`` and since ``${B}`` is listed as not to be tracked, there were errors trying to ``chown root`` for files in this location. Another -example was the ``tcl`` recipe where the source directory ``S`` is set to a +example was the ``tcl`` recipe where the source directory :term:`S` is set to a subdirectory of the source tree but files were written out to the directory structure above that subdirectory. For these types of cases in your own recipes, -extend ``PSEUDO_IGNORE_PATHS`` to cover additional paths that pseudo should not +extend :term:`PSEUDO_IGNORE_PATHS` to cover additional paths that pseudo should not be monitoring. In addition, pseudo's behaviour on mismatches has now been changed - rather
@@ -207,7 +207,7 @@ files into a subdirectory and reference that instead. deploy class now cleans ``DEPLOYDIR`` before ``do_deploy`` ---------------------------------------------------------- -``do_deploy`` as implemented in the :ref:`deploy <ref-classes-deploy>` class now cleans up ${:term:`DEPLOYDIR`} before running, just as ``do_install`` cleans up ${:term:`D`} before running. This reduces the risk of ``DEPLOYDIR`` being accidentally contaminated by files from previous runs, possibly even with different config, in case of incremental builds. +``do_deploy`` as implemented in the :ref:`deploy <ref-classes-deploy>` class now cleans up ${:term:`DEPLOYDIR`} before running, just as ``do_install`` cleans up ${:term:`D`} before running. This reduces the risk of :term:`DEPLOYDIR` being accidentally contaminated by files from previous runs, possibly even with different config, in case of incremental builds. Most recipes and classes that inherit the ``deploy`` class or interact with ``do_deploy`` are unlikely to be affected by this unless they add ``prefuncs`` to ``do_deploy`` *which also* put files into ``${DEPLOYDIR}`` - these should be refactored to use ``do_deploy_prepend`` instead.
documentation/ref-manual/qa-checks.rst +13 -13
@@ -88,7 +88,7 @@ Errors and Warnings A file-level dependency has been identified from the specified package on the specified files, but there is no explicit corresponding entry in :term:`RDEPENDS`. If - particular files are required at runtime then ``RDEPENDS`` should be + particular files are required at runtime then :term:`RDEPENDS` should be declared in the recipe to ensure the packages providing them are built.
@@ -104,7 +104,7 @@ Errors and Warnings :term:`RDEPENDS` value being added at the packaging stage rather than up front, which is usually automatic based on the contents of the package. In most cases, you should change the recipe - to add an explicit ``RDEPENDS`` for the dependency. + to add an explicit :term:`RDEPENDS` for the dependency. .. _qa-check-dev-so:
@@ -152,7 +152,7 @@ Errors and Warnings not explicitly add the ``.debug`` directory to the ``-dbg`` package. If this is the case, add the ``.debug`` directory explicitly to ``FILES_${PN}-dbg``. See :term:`FILES` for additional - information on ``FILES``. + information on :term:`FILES`. .. _qa-check-arch:
@@ -235,9 +235,9 @@ Errors and Warnings This indicates that binaries produced when building the recipe have not been linked with the :term:`LDFLAGS` options - provided by the build system. Check to be sure that the ``LDFLAGS`` + provided by the build system. Check to be sure that the :term:`LDFLAGS` variable is being passed to the linker command. A common workaround - for this situation is to pass in ``LDFLAGS`` using + for this situation is to pass in :term:`LDFLAGS` using :term:`TARGET_CC_ARCH` within the recipe as follows::
@@ -403,7 +403,7 @@ Errors and Warnings If your recipe name does not match this, or you add packages to :term:`PACKAGES` that do not conform to the convention, then you will receive this error. Rename your recipe. Or, - if you have added a non-conforming package name to ``PACKAGES``, + if you have added a non-conforming package name to :term:`PACKAGES`, change the package name appropriately.
@@ -431,13 +431,13 @@ Errors and Warnings The specified recipe has a name (:term:`PN`) value that appears in :term:`OVERRIDES`. If a recipe is named - such that its ``PN`` value matches something already in ``OVERRIDES`` - (e.g. ``PN`` happens to be the same as :term:`MACHINE` + such that its :term:`PN` value matches something already in :term:`OVERRIDES` + (e.g. :term:`PN` happens to be the same as :term:`MACHINE` or :term:`DISTRO`), it can have unexpected consequences. For example, assignments such as ``FILES_${PN} = "xyz"`` effectively turn into ``FILES = "xyz"``. - Rename your recipe (or if ``PN`` is being set explicitly, change the - ``PN`` value) so that the conflict does not occur. See + Rename your recipe (or if :term:`PN` is being set explicitly, change the + :term:`PN` value) so that the conflict does not occur. See :term:`FILES` for additional information.
@@ -464,7 +464,7 @@ Errors and Warnings This check looks for instances of setting ``DEPENDS_${PN}`` which is erroneous (:term:`DEPENDS` is a recipe-wide variable and thus it is not correct to specify it for a particular package, nor will such - an assignment actually work.) Set ``DEPENDS`` instead. + an assignment actually work.) Set :term:`DEPENDS` instead. .. _qa-check-already-stripped:
@@ -499,7 +499,7 @@ Errors and Warnings Package names must appear only once in the :term:`PACKAGES` variable. You might receive this - error if you are attempting to add a package to ``PACKAGES`` that is + error if you are attempting to add a package to :term:`PACKAGES` that is already in the variable's value.
@@ -523,7 +523,7 @@ Errors and Warnings in an image later on in the build process. You need to do one of the following: - - Add the files to ``FILES`` for the package you want them to appear + - Add the files to :term:`FILES` for the package you want them to appear in (e.g. ``FILES_${``\ :term:`PN`\ ``}`` for the main package).
documentation/ref-manual/structure.rst +8 -8
@@ -251,9 +251,9 @@ variables are hard-coded for various reasons but such variables are relatively rare. At a minimum, you would normally edit this file to select the target -``MACHINE``, which package types you wish to use +:term:`MACHINE`, which package types you wish to use (:term:`PACKAGE_CLASSES`), and the location from -which you want to access downloaded files (``DL_DIR``). +which you want to access downloaded files (:term:`DL_DIR`). If ``local.conf`` is not present when you start the build, the OpenEmbedded build system creates it from ``local.conf.sample`` when you
@@ -336,7 +336,7 @@ the build. This directory contains downloaded upstream source tarballs. You can reuse the directory for multiple builds or move the directory to another location. You can control the location of this directory through the -``DL_DIR`` variable. +:term:`DL_DIR` variable. .. _structure-build-sstate-cache:
@@ -346,7 +346,7 @@ location. You can control the location of this directory through the This directory contains the shared state cache. You can reuse the directory for multiple builds or move the directory to another location. You can control the location of this directory through the -``SSTATE_DIR`` variable. +:term:`SSTATE_DIR` variable. .. _structure-build-tmp:
@@ -548,7 +548,7 @@ section in the Yocto Project Overview and Concepts Manual. ------------------ This directory contains general logs that are not otherwise placed using -the package's ``WORKDIR``. Examples of logs are the output from the +the package's :term:`WORKDIR`. Examples of logs are the output from the ``do_check_pkg`` or ``do_distro_check`` tasks. Running a build does not necessarily mean this directory is created.
@@ -569,7 +569,7 @@ It is worth considering the structure of a typical work directory. As an example, consider ``linux-yocto-kernel-3.0`` on the machine ``qemux86`` built within the Yocto Project. For this package, a work directory of ``tmp/work/qemux86-poky-linux/linux-yocto/3.0+git1+<.....>``, referred -to as the ``WORKDIR``, is created. Within this directory, the source is +to as the :term:`WORKDIR`, is created. Within this directory, the source is unpacked to ``linux-qemux86-standard-build`` and then patched by Quilt. (See the ":ref:`dev-manual/common-tasks:using quilt in your workflow`" section in the Yocto Project Development Tasks Manual for more information.) Within
@@ -577,7 +577,7 @@ the ``linux-qemux86-standard-build`` directory, standard Quilt directories ``linux-3.0/patches`` and ``linux-3.0/.pc`` are created, and standard Quilt commands can be used. -There are other directories generated within ``WORKDIR``. The most +There are other directories generated within :term:`WORKDIR`. The most important directory is ``WORKDIR/temp/``, which has log files for each task (``log.do_*.pid``) and contains the scripts BitBake runs for each task (``run.do_*.pid``). The ``WORKDIR/image/`` directory is where "make
@@ -709,7 +709,7 @@ support for a new machine to the Yocto Project, look in this directory. The contents of this directory controls any distribution-specific configurations. For the Yocto Project, the ``defaultsetup.conf`` is the -main file here. This directory includes the versions and the ``SRCDATE`` +main file here. This directory includes the versions and the :term:`SRCDATE` definitions for applications that are configured here. An example of an alternative configuration might be ``poky-bleeding.conf``. Although this file mainly inherits its configuration from Poky.
documentation/ref-manual/tasks.rst +6 -6
@@ -57,7 +57,7 @@ the current working directory set to ``${``\ :term:`B`\ ``}``. The default behavior of this task is to run ``oe_runmake clean`` if a makefile (``Makefile``, ``makefile``, or ``GNUmakefile``) is found and :term:`CLEANBROKEN` is not set to "1". If no such -file is found or the ``CLEANBROKEN`` variable is set to "1", the +file is found or the :term:`CLEANBROKEN` variable is set to "1", the ``do_configure`` task does nothing. .. _ref-tasks-configure_ptest_base:
@@ -308,17 +308,17 @@ This recipe has two patch files located here:: poky/meta/recipes-connectivity/bluez5/bluez5 -In the ``bluez5`` recipe, the ``SRC_URI`` statements point to the source +In the ``bluez5`` recipe, the :term:`SRC_URI` statements point to the source and patch files needed to build the package. .. note:: - In the case for the ``bluez5_5.48.bb`` recipe, the ``SRC_URI`` statements + In the case for the ``bluez5_5.48.bb`` recipe, the :term:`SRC_URI` statements are from an include file ``bluez5.inc``. As mentioned earlier, the build system treats files whose file types are ``.patch`` and ``.diff`` as patch files. However, you can use the -"apply=yes" parameter with the ``SRC_URI`` statement to indicate any +"apply=yes" parameter with the :term:`SRC_URI` statement to indicate any file as a patch file:: SRC_URI = " \
@@ -329,7 +329,7 @@ file as a patch file:: Conversely, if you have a directory full of patch files and you want to exclude some so that the ``do_patch`` task does not apply them during the patch phase, you can use the "apply=no" parameter with the -``SRC_URI`` statement:: +:term:`SRC_URI` statement:: SRC_URI = " \ git://path_to_repo/some_package \
@@ -430,7 +430,7 @@ variable also plays a role in where unpacked source files ultimately reside. For more information on how source files are unpacked, see the ":ref:`overview-manual/concepts:source fetching`" section in the Yocto Project Overview and Concepts Manual and also see -the ``WORKDIR`` and ``S`` variable descriptions. +the :term:`WORKDIR` and :term:`S` variable descriptions. Manually Called Tasks =====================
documentation/ref-manual/terms.rst +3 -3
@@ -97,11 +97,11 @@ universal, the list includes them just in case: .. note:: By default, the Build Directory contains :term:`TMPDIR`, which is a - temporary directory the build system uses for its work. ``TMPDIR`` cannot + temporary directory the build system uses for its work. :term:`TMPDIR` cannot be under NFS. Thus, by default, the Build Directory cannot be under NFS. However, if you need the Build Directory to be under NFS, you can - set this up by setting ``TMPDIR`` in your ``local.conf`` file to use a local - drive. Doing so effectively separates ``TMPDIR`` from :term:`TOPDIR`, which is the + set this up by setting :term:`TMPDIR` in your ``local.conf`` file to use a local + drive. Doing so effectively separates :term:`TMPDIR` from :term:`TOPDIR`, which is the Build Directory. :term:`Build Host`
documentation/ref-manual/variables.rst +592 -592
114 lines not on this page · raw message
documentation/sdk-manual/appendix-customizing-standard.rst +2 -2
Lines of this file are not shown. View the raw message.
documentation/sdk-manual/appendix-customizing.rst +12 -12
Lines of this file are not shown. View the raw message.
documentation/sdk-manual/extensible.rst +25 -25
50 lines not on this page · raw message
documentation/sdk-manual/working-projects.rst +6 -6
Lines of this file are not shown. View the raw message.
documentation/toaster-manual/setup-and-use.rst +1 -1
Lines of this file are not shown. View the raw message.
documentation/transitioning-to-a-custom-environment.rst +1 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.31.1
Part of the diff is not shown here. View the raw message.
This message is left out to keep this page within its size limit. Read the full message.
Hi Quentin,
Quoted 8 lines · Nicolas Dechesne
Have you checked what happens for the terms from the bitbake manual? Perhaps it would be better to split into 2 patches, and run with bitbake and without. You don't seem to add the bitbake prefix in the term role, right? So we could potentially have a confusion if/when a term exists in both yp and bitake terms, no?
Good guess, Nico, I found at least one case where a reference to the BitBake manual is needed instead... See below.
Quoted 11 lines
The ``SOURCE_MIRROR_URL`` and ``own-mirror``
class set up the system to use the downloads directory as your "own
- mirror". Using the ``BB_NO_NETWORK`` variable makes sure that + mirror". Using the :term:BB_NO_NETWORKvariable makes sure that BitBake's fetching process in step 3 stays local, which means files
from your "own-mirror" are used.
Here, it should be substituted by ":term:bitbake:BB_NO_NETWORK" instead.
As far as I am concerned, I like your patch. Before it, the decision to make a link to the variable index was a bit fuzzy, depending on how far a previous reference to the index was made. That's probably safer this way.
Cheers,
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Michael, Nicolas,
Quoted 13 lines · Michael Opdenacker
Hi Quentin,
Quoted 8 lines · Nicolas Dechesne
Have you checked what happens for the terms from the bitbake manual? Perhaps it would be better to split into 2 patches, and run with bitbake and without. You don't seem to add the bitbake prefix in the term role, right? So we could potentially have a confusion if/when a term exists in both yp and bitake terms, no?
Quoted 3 lines
Good guess, Nico, I found at least one case where a reference to the BitBake manual is needed instead... See below.
It's actually not needed (I just re-tested and we already talked about it with Nicolas a few months back). If there is an entry in both glossaries, only YP's will be taken. If there's an entry only in Bitbake's, it will point to Bitbake's.
The nice thing with not explicitly targeting Bitbake's is that in the event it gets a YP-specific or longer/clearer/better explanation in YP, there'll be no change needed. No maintenance on that side which is great. I think this is something we should aim for, thus, no change needed in my opinion.
Quoted 13 lines
Quoted 12 lines
The ``SOURCE_MIRROR_URL`` and ``own-mirror``
class set up the system to use the downloads directory as your "own
- mirror". Using the ``BB_NO_NETWORK`` variable makes sure that + mirror". Using the :term:BB_NO_NETWORKvariable makes sure
that
BitBake's fetching process in step 3 stays local, which means files
from your "own-mirror" are used.
Quoted 2 lines
Here, it should be substituted by ":term:
bitbake:BB_NO_NETWORK" instead.
See above :)
Quoted 4 lines
As far as I am concerned, I like your patch. Before it, the decision to make a link to the variable index was a bit fuzzy, depending on how far a previous reference to the index was made. That's probably safer this way.
And it makes it super easy 1) to run the script if need be to check if some were forgotten or recently added (while being already highlighted in the doc), 2) a simple consistent rule of "if it is documented, always use :term:`` for variables". This brings me also to the fact that we should start adding rules to a README or CONTRIBUTING to keep track of those, because I'm pretty sure there is already one or two we agreed on and I forgot about :)
Cheers,
Quentin
Hi Nicolas,
Quoted 37 lines · Nicolas Dechesne
Quoted 5 lines · Quentin Schulz
If a variable has a glossary entry and some rST files write about those
variables, it's better to point to the glossary entry instead of just
highlighting it by surrounding it with two tick quotes.Nice!
And nice commit message too!Quoted 25 lines
This was automated by the following python script:
"""
import re
from pathlib import Pathwith
open('objects.inv.txt', 'r')as f:
objects =f.readlines()with
open('bitbake-objects.inv.txt', 'r')as f:
objects = objects +f.readlines()
re_term= re.compile(r'variables.html#term-([A-Z_0-9]*)') terms = []for obj in objects:
match =re_term.search(obj)
if match andmatch.group(1):
terms.append(match.group(1))for rst in Path('.').rglob('*.rst'):
withopen(rst, 'r')as f:
content = "".joing(f.readlines())
for term in terms:
content = re.sub(r'``({})``(?!.*\s*[~-]+)'.format(term), r':term:\1', content)
I see that my commit log has the python comments removed, I'll add them back in the v2.
Quoted 6 lines
Have you checked what happens for the terms from the bitbake manual? Perhaps it would be better to split into 2 patches, and run with bitbake and without. You don't seem to add the bitbake prefix in the term role, right? So we could potentially have a confusion if/when a term exists in both yp and bitake terms, no?
It works without making it explicit where the term is defined and I think it's what we want. Because if the term is only defined in Bitbake, itll find it anyway so all good. And the day we decide to "duplicate" the entry in the YP docs, it'll point to the one from YP, no maintenance needed so really neat :)
I can make separate patches if you want but I would not like to add bitbake prefix.
I've rewritten the script now and it's a bit smarter (no need to call sphinx.ext.intersphinx module). If there's interest I can try to make it even nicer and add it to the doc repo for future use since when we'll document more variables, if they are already highlihted somewhere else, it'll stay this way unless this script is run again.
Let me know what we go for,
Cheers,
Quentin
Quoted 11,411 lines
Quoted 69 lines
with
open(rst, 'w')as f:f.write(content)
"""Signed-off-by Quentin Schulz <[email protected]>---
note that section titles sometimes have ``FOO``, they have been ignored on purpose (mix of colors in the section title and underlined/not underlined) but it's absolutely possible to do it (though
:ref: will need to be updated to reflect that change).build tested only (no errors, no warnings)
documentation/brief-yoctoprojectqs/index.rst | 2 +- documentation/bsp-guide/bsp.rst | 16 +- documentation/dev-manual/common-tasks.rst | 386 +++--- documentation/kernel-dev/advanced.rst | 56 +- documentation/kernel-dev/common.rst | 52 +- documentation/kernel-dev/faq.rst | 2 +- documentation/kernel-dev/maint-appx.rst | 2 +- documentation/overview-manual/concepts.rst | 72 +- documentation/ref-manual/classes.rst | 74 +- documentation/ref-manual/faq.rst | 16 +- documentation/ref-manual/features.rst | 22 +- documentation/ref-manual/migration-1.3.rst | 4 +- documentation/ref-manual/migration-1.4.rst | 14 +- documentation/ref-manual/migration-1.5.rst | 22 +- documentation/ref-manual/migration-1.6.rst | 12 +- documentation/ref-manual/migration-1.7.rst | 4 +- documentation/ref-manual/migration-1.8.rst | 4 +- documentation/ref-manual/migration-2.0.rst | 4 +- documentation/ref-manual/migration-2.1.rst | 8 +- documentation/ref-manual/migration-2.2.rst | 6 +- documentation/ref-manual/migration-2.3.rst | 20 +- documentation/ref-manual/migration-2.4.rst | 4 +- documentation/ref-manual/migration-2.5.rst | 2 +- documentation/ref-manual/migration-2.6.rst | 22 +- documentation/ref-manual/migration-2.7.rst | 2 +- documentation/ref-manual/migration-3.1.rst | 2 +- documentation/ref-manual/migration-3.2.rst | 6 +- documentation/ref-manual/qa-checks.rst | 26 +- documentation/ref-manual/structure.rst | 16 +- documentation/ref-manual/tasks.rst | 12 +- documentation/ref-manual/terms.rst | 6 +- documentation/ref-manual/variables.rst | 1184 ++++++++--------- .../appendix-customizing-standard.rst | 4 +- .../sdk-manual/appendix-customizing.rst | 24 +- documentation/sdk-manual/extensible.rst | 50 +- documentation/sdk-manual/working-projects.rst | 12 +- .../toaster-manual/setup-and-use.rst | 2 +- .../transitioning-to-a-custom-environment.rst | 2 +- 38 files changed, 1087 insertions(+), 1087 deletions(-)documentation/brief-yoctoprojectqs/index.rst +0
-0@@ -332,7 +332,7 @@ Follow these steps to add a hardware layer: #. **Change the Configuration to Build for a Specific Machine:**The
:term:MACHINEvariable in the
``local.conf`` file specifies the machine for the build. For thisdocumentation/brief-yoctoprojectqs/index.rst +1
-1- example, set the ``MACHINE`` variable to ``cyclone5``. These + example, set the :term:`MACHINE` variable to ``cyclone5``. TheseQuoted 3 lines
configurations are used:
https://github.com/kraj/meta-altera/blob/master/conf/machine/cyclone5.conf.
Quoted 2,174 lines
documentation/bsp-guide/bsp.rst +0
-0@@ -95,11 +95,11 @@ layer and from it build an image. Here is anexample::
.. note::
- Ordering and :term:
BBFILE_PRIORITYfor the layers listed in
``BBLAYERS``
+ Ordering and :term:BBFILE_PRIORITYfor the layers listed in
:term:BBLAYERS
matter. For example, if multiple layers define a machine configuration, the
OpenEmbedded build system uses the last layer searched given similar layer
priorities. The build system works from the top-down through the layersdocumentation/bsp-guide/bsp.rst +1
-1- listed in ``BBLAYERS``. + listed in :term:`BBLAYERS`.Some BSPs require or depend on additional layers beyond the BSP's root
layer in order to be functional. In this case, you need to specify thesedocumentation/bsp-guide/bsp.rst +0
-0@@ -685,7 +685,7 @@ statements as follows::.. note::
- When the preferred provider is assumed by default, the
``PREFERRED_PROVIDER``
+ When the preferred provider is assumed by default, the
:term:PREFERRED_PROVIDER
statement does not appear in the ``"bsp_root_name".conf`` file.You would use the ``linux-yocto_4.4.bbappend`` file to append specific
documentation/bsp-guide/bsp.rst +0
-0@@ -1121,15 +1121,15 @@ list describes them in order of preference:how to use these variables.
If you build as you normally would, without specifying any recipes in
- the ``LICENSE_FLAGS_WHITELIST``, the build stops and provides
you
+ the :term:LICENSE_FLAGS_WHITELIST, the build stops and
provides you
with the list of recipes that you have tried to include in the image
- that need entries in the ``LICENSE_FLAGS_WHITELIST``. Once you
enter
+ that need entries in the :term:LICENSE_FLAGS_WHITELIST. Once
you enter
the appropriate license flags into the whitelist, restart the build
to continue where it left off. During the build, the prompt will not
appear again since you have satisfied the requirement.Once the appropriate license flags are on the white list in the
- ``LICENSE_FLAGS_WHITELIST`` variable, you can build the
encumbered
+ :term:LICENSE_FLAGS_WHITELISTvariable, you can build the
encumbered
image with no change at all to the normal build process.#. *Get a Pre-Built Version of the BSP:* You can get this type of BSP by
documentation/bsp-guide/bsp.rst +0
-0@@ -1142,7 +1142,7 @@ list describes them in order of preference:click-through license agreements presented by the website. If you
want to build the image yourself using the recipes contained within
the BSP tarball, you will still need to create an appropriate
- ``LICENSE_FLAGS_WHITELIST`` to match the encumbered recipes in
the
+ :term:LICENSE_FLAGS_WHITELISTto match the encumbered recipes
in the
BSP... note::
documentation/bsp-guide/bsp.rst +0
-0@@ -1405,7 +1405,7 @@ Project Reference Manual.The BeagleBone development board requires an SPL to boot and that SPL
file type must be MLO. Consequently, the machine configuration needsdocumentation/bsp-guide/bsp.rst +1
-1- to define ``SPL_BINARY`` as ``MLO``. + to define :term:`SPL_BINARY` as ``MLO``... note::
documentation/dev-manual/common-tasks.rst +0
-0@@ -94,10 +94,10 @@ Follow these general steps to create your layerwithout using tools:
- :term:
BBPATH: Adds the layer's
root directory to BitBake's search path. Through the use of the
- ``BBPATH`` variable, BitBake locates class files
(``.bbclass``),
+ :term:BBPATHvariable, BitBake locates class files
(``.bbclass``),
configuration files, and files that are included with ``include``
and ``require`` statements. For these cases, BitBake uses thedocumentation/dev-manual/common-tasks.rst +1
-1- first file that matches the name found in ``BBPATH``. This is + first file that matches the name found in :term:`BBPATH`.This is
similar to the way the ``PATH`` variable is used for binaries. It
is recommended, therefore, that you use unique class and configuration filenames in your custom layer.documentation/dev-manual/common-tasks.rst +0
-0@@ -205,7 +205,7 @@ following list:``foo``.
To make sure your changes apply only when building machine "one",
documentation/dev-manual/common-tasks.rst +1
-1- use a machine override with the ``DEPENDS`` statement:: + use a machine override with the :term:`DEPENDS` statement::
DEPENDS_one= "foo"documentation/dev-manual/common-tasks.rst +0
-0@@ -255,7 +255,7 @@ following list:are building for a different machine and the ``bblayers.conf``
file includes the ``meta-one`` layer and the location of your machine-specific file is the first location where that file is
- found according to ``FILESPATH``, builds for all machines
will
+ found according to :term:FILESPATH, builds for all machines
will
also use that machine-specific file.You can make sure that a machine-specific file is used for a
documentation/dev-manual/common-tasks.rst +0
-0@@ -420,7 +420,7 @@ Enabling Your LayerBefore the OpenEmbedded build system can use your new layer, you need to
enable it. To enable your layer, simply add your layer's path to the
-``BBLAYERS`` variable in your ``conf/bblayers.conf`` file, which is +:term:BBLAYERSvariable in your ``conf/bblayers.conf`` file, which is
found in the :term:Build Directory.
The following example shows how to enable a layer named ``meta-mylayer``::documentation/dev-manual/common-tasks.rst +0
-0@@ -438,7 +438,7 @@ The following example shows how to enable alayer named
"BitBake parses each ``conf/layer.conf`` file from the top down as -specified in the ``BBLAYERS`` variable within the ``conf/bblayers.conf``
+specified in the :term:BBLAYERSvariable within the ``conf/bblayers.conf``
file. During the processing of each ``conf/layer.conf`` file, BitBake
adds the recipes, classes and configurations contained within the particular layer to the source directory.documentation/dev-manual/common-tasks.rst +0
-0@@ -531,19 +531,19 @@ have the supporting directory structure set upthat will contain any
files or patches you will be including from the layer.Using the immediate expansion assignment operator ``:=`` is important
-because of the reference to ``THISDIR``. The trailing colon character is
+because of the reference to :term:THISDIR. The trailing colon character is
important as it ensures that items in the list remain colon-separated... note::
- BitBake automatically defines the ``THISDIR`` variable. You
should
+ BitBake automatically defines the :term:THISDIRvariable. You
should
never set this variable yourself. Using "_prepend" as part of the
- ``FILESEXTRAPATHS`` ensures your path will be searched prior to
other
+ :term:FILESEXTRAPATHSensures your path will be searched prior
to other
paths in the final list.Also, not all append files add extra files. Many append files simply
allow to add build options (e.g. ``systemd``). For these cases, your
- append file would not even use the ``FILESEXTRAPATHS``
statement.
+ append file would not even use the :term:FILESEXTRAPATHS
statement.Prioritizing Your Layer
-----------------------documentation/dev-manual/common-tasks.rst +0
-0@@ -830,7 +830,7 @@ variable changes are in effect for every buildand consequently affect
all images, which might not be what you require.To add a package to your image using the local configuration file, use
documentation/dev-manual/common-tasks.rst +1
-1-the ``IMAGE_INSTALL`` variable with the ``_append`` operator:: +the :term:`IMAGE_INSTALL` variable with the ``_append`` operator::
IMAGE_INSTALL_append= " strace"documentation/dev-manual/common-tasks.rst +0
-0@@ -855,7 +855,7 @@ to a specific image only. Here is an example::This example adds ``strace`` to the ``core-image-minimal`` image only.
You can add packages using a similar approach through the -``CORE_IMAGE_EXTRA_INSTALL`` variable. If you use this variable, only
+:term:CORE_IMAGE_EXTRA_INSTALLvariable. If you use this variable, only
``core-image-*`` images are affected.Customizing Images Using Custom ``IMAGE_FEATURES`` and ``EXTRA_IMAGE_FEATURES``
documentation/dev-manual/common-tasks.rst +0
-0@@ -866,18 +866,18 @@ high-level image features by using the:term:
IMAGE_FEATURESand
:term:EXTRA_IMAGE_FEATURES
variables. Although the functions for both variables are nearly -equivalent, best practices dictate using ``IMAGE_FEATURES`` from withindocumentation/dev-manual/common-tasks.rst +1
-1-a recipe and using ``EXTRA_IMAGE_FEATURES`` from within your +equivalent, best practices dictate using :term:`IMAGE_FEATURES`from within
+a recipe and using :term:EXTRA_IMAGE_FEATURESfrom within your ``local.conf`` file, which is found in the
:term:Build Directory.To understand how these features work, the best reference is ``meta/classes/core-image.bbclass``. This class lists out the available
-``IMAGE_FEATURES`` of which most map to package groups while some, such
+:term:IMAGE_FEATURESof which most map to package groups while some, such
as ``debug-tweaks`` and ``read-only-rootfs``, resolve as general configuration settings.-In summary, the file looks at the contents of the ``IMAGE_FEATURES``
+In summary, the file looks at the contents of the :term:IMAGE_FEATURES
variable and then maps or configures the feature accordingly. Based on
this information, the build system automatically adds the appropriate
packages or configurations to thedocumentation/dev-manual/common-tasks.rst +0
-0@@ -885,11 +885,11 @@ packages or configurations to theEffectively, you are enabling extra features by extending the class or
creating a custom class for use with specialized image ``.bb`` files.documentation/dev-manual/common-tasks.rst +1
-1-Use the ``EXTRA_IMAGE_FEATURES`` variable from within your local +Use the :term:`EXTRA_IMAGE_FEATURES` variable from within yourlocal
configuration file. Using a separate area from which to enable features
with this variable helps you avoid overwriting the features in the imagedocumentation/dev-manual/common-tasks.rst +2
-2-recipe that are enabled with ``IMAGE_FEATURES``. The value of -``EXTRA_IMAGE_FEATURES`` is added to ``IMAGE_FEATURES`` within +recipe that are enabled with :term:`IMAGE_FEATURES`. The value of +:term:`EXTRA_IMAGE_FEATURES` is added to :term:`IMAGE_FEATURES`within
``meta/conf/bitbake.conf``.To illustrate how you can use these variables to modify your image,
documentation/dev-manual/common-tasks.rst +0
-0@@ -903,8 +903,8 @@ images both include OpenSSH. The``core-image-minimal`` image does not
contain an SSH server.You can customize your image and change these defaults. Edit the -``IMAGE_FEATURES`` variable in your recipe or use the -``EXTRA_IMAGE_FEATURES`` in your ``local.conf`` file so that it +:term:
IMAGE_FEATURESvariable in your recipe or use the +:term:EXTRA_IMAGE_FEATURESin your ``local.conf`` file so that it configures the image you are working with to include ``ssh-server-dropbear`` or ``ssh-server-openssh``.documentation/dev-manual/common-tasks.rst +0
-0@@ -926,7 +926,7 @@ the form for the two lines you need::Defining the software using a custom recipe gives you total control over
the contents of the image. It is important to use the correct names ofdocumentation/dev-manual/common-tasks.rst +1
-1-packages in the ``IMAGE_INSTALL`` variable. You must use the +packages in the :term:`IMAGE_INSTALL` variable. You must use theOpenEmbedded notation and not the Debian notation for the names (e.g.
``glibc-dev`` instead of ``libc6-dev``).documentation/dev-manual/common-tasks.rst +0
-0@@ -946,25 +946,25 @@ to create a custom package group recipe thatis used to build the image
or images. A good example of a package group recipe is ``meta/recipes-core/packagegroups/packagegroup-base.bb [1]``.-If you examine that recipe, you see that the ``PACKAGES`` variable lists
+If you examine that recipe, you see that the :term:PACKAGESvariable lists
the package group packages to produce. The ``inherit packagegroup`` statement sets appropriate default values and automatically adds ``-dev``, ``-dbg``, and ``-ptest`` complementary packages for eachdocumentation/dev-manual/common-tasks.rst +1
-1-package specified in the ``PACKAGES`` statement. +package specified in the :term:`PACKAGES` statement... note::
The ``inherit packagegroup`` line should be located near the top of the
documentation/dev-manual/common-tasks.rst +1
-2- recipe, certainly before the ``PACKAGES`` statement. + recipe, certainly before the :term:`PACKAGES` statement. -For each package you specify in ``PACKAGES``, you can use``RDEPENDS``
-and ``RRECOMMENDS`` entries to provide a list of packages the parent
+For each package you specify in :term:PACKAGES, you can use :term:RDEPENDS
+and :term:RRECOMMENDSentries to provide a list of packages the parent
task package should contain. You can see examples of these further down
in the ``packagegroup-base.bb [1]`` recipe.Here is a short, fabricated example showing the same basic pieces for a
hypothetical packagegroup defined in ``packagegroup-custom.bb [2]``, where
-the variable ``PN`` is the standard way to abbreviate the reference to
+the variable :term:PNis the standard way to abbreviate the reference to
the full packagegroup name ``packagegroup-custom``::DESCRIPTION = "My Custom Package Groups"
documentation/dev-manual/common-tasks.rst +0
-0@@ -994,7 +994,7 @@ their dependencies and their recommended packagedependencies listed:
``packagegroup-custom-apps``, and ``packagegroup-custom-tools``. To build an image using these package group packages, you need to add ``packagegroup-custom-apps`` and/or ``packagegroup-custom-tools`` to
-``IMAGE_INSTALL``. For other forms of image dependencies see the other
+:term:IMAGE_INSTALL. For other forms of image dependencies see the other
areas of this section.Customizing an Image Hostname
documentation/dev-manual/common-tasks.rst +0
-1@@ -1142,7 +1142,7 @@ Following are some syntax examples: - Use this syntax to generate a recipe using code thatyou extract from source. The extracted code is placed in its own layer
documentation/dev-manual/common-tasks.rst +1
-1- defined by ``EXTERNALSRC``. + defined by :term:`EXTERNALSRC`.::
recipetool create -o OUTFILE -x EXTERNALSRC source
documentation/dev-manual/common-tasks.rst +0
-0@@ -1288,22 +1288,22 @@ Fetching CodeThe first thing your recipe must do is specify how to fetch the source
files. Fetching is controlled mainly through the :term:SRC_URIvariable. Your recipedocumentation/dev-manual/common-tasks.rst +1
-1-must have a ``SRC_URI`` variable that points to where the source is +must have a :term:`SRC_URI` variable that points to where thesource is
located. For a graphical representation of source locations, see the
":ref:overview-manual/concepts:sources" section in the Yocto Project Overview and Concepts Manual.The :ref:
ref-tasks-fetchtask uses
-the prefix of each entry in the ``SRC_URI`` variable value to determine
+the prefix of each entry in the :term:SRC_URIvariable value to determine
which :ref:fetcher <bitbake:bitbake-user-manual/bitbake-user-manual-fetching:fetchers>to use to get your
-source files. It is the ``SRC_URI`` variable that triggers the fetcher.
+source files. It is the :term:SRC_URIvariable that triggers the fetcher.
The :ref:ref-tasks-patchtask uses
the variable after source is fetched to apply patches. The OpenEmbedded
build system uses
:term:FILESOVERRIDESfordocumentation/dev-manual/common-tasks.rst +1
-2-scanning directory locations for local files in ``SRC_URI``. +scanning directory locations for local files in :term:`SRC_URI`. -The ``SRC_URI`` variable in your recipe must define each uniquelocation
+The :term:SRC_URIvariable in your recipe must define each unique location
for your source files. It is good practice to not hard-code version numbers in a URL used in ``SRC_URI``. Rather than hard-code these values, use ``${``\ :term:PV\ ``}``,documentation/dev-manual/common-tasks.rst +0
-0@@ -1319,7 +1319,7 @@ comes from a single tarball. Notice the use ofthe
SRC_URI= "https://strace.io/files/${PV}/strace-${PV}.tar.xz [3] \documentation/dev-manual/common-tasks.rst +1
-1-Files mentioned in ``SRC_URI`` whose names end in a typical archive +Files mentioned in :term:`SRC_URI` whose names end in a typicalarchive
extension (e.g. ``.tar``, ``.tar.gz``, ``.tar.bz2``, ``.zip``, and so
forth), are automatically extracted during the :ref:ref-tasks-unpacktask. Fordocumentation/dev-manual/common-tasks.rst +0
-0@@ -1341,17 +1341,17 @@ is an example from the recipe SRC_URI = "git://git.kernel.dk/blktrace.git [4] \file://ldflags.patch"
-If your ``SRC_URI`` statement includes URLs pointing to individual files
+If your :term:SRC_URIstatement includes URLs pointing to individual files
fetched from a remote server other than a version control system, BitBake attempts to verify the files against checksums defined in your
recipe to ensure they have not been tampered with or otherwise modified
since the recipe was written. Two checksums are used:
``SRC_URI[md5sum]`` and ``SRC_URI[sha256sum]``.-If your ``SRC_URI`` variable points to more than a single URL (excluding
+If your :term:SRC_URIvariable points to more than a single URL (excluding
SCM URLs), you need to provide the ``md5`` and ``sha256`` checksums for
each URL. For these cases, you provide a name for each URL as part of
-the ``SRC_URI`` and then reference that name in the subsequent checksum
+the :term:SRC_URIand then reference that name in the subsequent checksum
statements. Here is an example combining lines from the files ``git.inc`` and ``git_2.24.1.bb [5]``::documentation/dev-manual/common-tasks.rst +0
-0@@ -1369,7 +1369,7 @@ with other signatures on the download page forthe upstream source (e.g.
OpenEmbedded build system only deals with ``sha256sum`` and ``md5sum``,
you should verify all the signatures you find by hand.-If no ``SRC_URI`` checksums are specified when you attempt to build the
+If no :term:SRC_URIchecksums are specified when you attempt to build the
recipe, or you provide an incorrect checksum, the build will produce an
error for each missing or incorrect checksum. As part of the error message, the build system provides the checksum string corresponding todocumentation/dev-manual/common-tasks.rst +0
-0@@ -1385,7 +1385,7 @@ paste them into your recipe and then run thebuild again to continue.
This final example is a bit more complicated and is from the ``meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.20.bb [6]`` recipe. The
-example's ``SRC_URI`` statement identifies multiple files as the source
+example's :term:SRC_URIstatement identifies multiple files as the source
files for the recipe: a tarball, a patch file, a desktop file, and an
icon.
::documentation/dev-manual/common-tasks.rst +0
-0@@ -1424,9 +1424,9 @@ If you are fetching your source files from anupstream source archived
tarball and the tarball's internal structure matches the common convention of a top-level subdirectory named
``${``\ :term:BPN\ ``}-${``\ :term:PV\ ``}``,
-then you do not need to set ``S``. However, if ``SRC_URI`` specifies to
+then you do not need to set :term:S. However, if :term:SRC_URIspecifies to
fetch source from an archive that does not use this convention, or fromdocumentation/dev-manual/common-tasks.rst +1
-1-an SCM like Git or Subversion, your recipe needs to define ``S``. +an SCM like Git or Subversion, your recipe needs to define:term:
S.If processing your recipe using BitBake successfully unpacks the source
files, you need to be sure that the directory pointed to by ``${S}``documentation/dev-manual/common-tasks.rst +0
-1@@ -1436,7 +1436,7 @@ Patching Code -------------Sometimes it is necessary to patch code after it has been fetched. Any
documentation/dev-manual/common-tasks.rst +1
-1-files mentioned in ``SRC_URI`` whose names end in ``.patch`` or +files mentioned in :term:`SRC_URI` whose names end in ``.patch`` or``.diff`` or compressed versions of these suffixes (e.g. ``diff.gz`` are
treated as patches. The
:ref:ref-tasks-patchtaskdocumentation/dev-manual/common-tasks.rst +0
-0@@ -1445,7 +1445,7 @@ automatically applies these patches.The build system should be able to apply patches with the "-p1" option
(i.e. one directory level in the path will be stripped off). If your
patch needs to have more directory levels stripped off, specify the -number of levels using the "striplevel" option in the ``SRC_URI`` entry
+number of levels using the "striplevel" option in the :term:SRC_URIentry
for the patch. Alternatively, if your patch needs to be applied in a
specific subdirectory that is not specified in the patch file, use the
"patchdir" option in the entry.documentation/dev-manual/common-tasks.rst +0
-0@@ -1465,24 +1465,24 @@ Your recipe needs to have both the:term:
LIC_FILES_CHKSUM
variables:-- ``LICENSE``: This variable specifies the license for the software.
+- :term:LICENSE: This variable specifies the license for the software.
If you do not know the license under which the software you are building is distributed, you should go to the source code and look
for that information. Typical files containing this information
- include ``COPYING``, ``LICENSE``, and ``README`` files. You
could
+ include ``COPYING``, :term:LICENSE, and ``README`` files. You
could
also find the information near the top of a source file. For example,
given a piece of software licensed under the GNU General Publicdocumentation/dev-manual/common-tasks.rst +1
-1- License version 2, you would set ``LICENSE`` as follows:: + License version 2, you would set :term:`LICENSE` as follows::LICENSE = "GPLv2"
- The licenses you specify within ``LICENSE`` can have any name as
long
+ The licenses you specify within :term:LICENSEcan have any
name as long
as you do not use spaces, since spaces are used as separators between
license names. For standard licenses, use the names of the files in
- ``meta/files/common-licenses/`` or the ``SPDXLICENSEMAP`` flag
names
+ ``meta/files/common-licenses/`` or the :term:SPDXLICENSEMAP
flag names
defined in ``meta/conf/licenses.conf``.-- ``LIC_FILES_CHKSUM``: The OpenEmbedded build system uses this +- :term:
LIC_FILES_CHKSUM: The OpenEmbedded build system uses this
variable to make sure the license text has not changed. If it has,
the build produces an error and it affords you the chance to figure
it out and correct the problem.documentation/dev-manual/common-tasks.rst +0
-0@@ -1492,11 +1492,11 @@ variables:the checksums of the files to be sure the text has not changed. Any
differences result in an error with the message containing the current checksum. For more explanation and examples of how to set thedocumentation/dev-manual/common-tasks.rst +1
-1- ``LIC_FILES_CHKSUM`` variable, see the + :term:`LIC_FILES_CHKSUM` variable, see the":ref:
dev-manual/common-tasks:tracking license changes" section.To determine the correct checksum string, you can list the
- appropriate files in the ``LIC_FILES_CHKSUM`` variable with
incorrect
+ appropriate files in the :term:LIC_FILES_CHKSUMvariable with
incorrect
md5 strings, attempt to build the software, and then note the resulting error messages that will report the correct md5 strings.
See the ":ref:dev-manual/common-tasks:fetching code" section fordocumentation/dev-manual/common-tasks.rst +0
-0@@ -1522,7 +1522,7 @@ installed on the target in order for thesoftware to run.
Within a recipe, you specify build-time dependencies using the :term:
DEPENDSvariable. Although there are nuances,documentation/dev-manual/common-tasks.rst +1
-1-items specified in ``DEPENDS`` should be names of other +items specified in :term:`DEPENDS` should be names of otherrecipes. It is important that you specify all build-time dependencies
explicitly.documentation/dev-manual/common-tasks.rst +0
-0@@ -1639,12 +1639,12 @@ your software is built:Once configuration succeeds, it is always good practice to look at the
``log.do_configure`` file to ensure that the appropriate options have
been enabled and no additional build-time dependencies need to be added
-to ``DEPENDS``. For example, if the configure script reports that it
-found something not mentioned in ``DEPENDS``, or that it did not find
+to :term:DEPENDS. For example, if the configure script reports that it
+found something not mentioned in :term:DEPENDS, or that it did not find
something that it needed for some desired optional functionality, then
-you would need to add those to ``DEPENDS``. Looking at the log might
+you would need to add those to :term:DEPENDS. Looking at the log might
also reveal items being checked for, enabled, or both that you do not
-want, or items not being found that are in ``DEPENDS``, in which case
+want, or items not being found that are in :term:DEPENDS, in which case
you would need to look at passing extra options to the configure script
as needed. For reference information on configure options specific to
the software you are building, you can consult the output of thedocumentation/dev-manual/common-tasks.rst +0
-0@@ -1762,13 +1762,13 @@ Here are some common issues that causefailures.
compilation process notes that files could not be found. In these
cases, you need to go back and add additional options to the configure script as well as possibly add additional build-timedocumentation/dev-manual/common-tasks.rst +1
-1- dependencies to ``DEPENDS``. + dependencies to :term:`DEPENDS`.Occasionally, it is necessary to apply a patch to the source to ensure the correct paths are used. If you need to specify paths to
find files staged into the sysroot from other recipes, use the variables that the OpenEmbedded build system provides (e.g.
- ``STAGING_BINDIR``, ``STAGING_INCDIR``, ``STAGING_DATADIR``, and
so
+ :term:STAGING_BINDIR, :term:STAGING_INCDIR,
:term:STAGING_DATADIR, and so
forth).Installing
documentation/dev-manual/common-tasks.rst +0
-0@@ -2022,7 +2022,7 @@ the list of directories within a recipe::The
/sysroot-onlyis to be used by recipes that generate artifacts
that are not included in the target filesystem, allowing them to sharedocumentation/dev-manual/common-tasks.rst +1
-1- these artifacts without needing to use the ``DEPLOY_DIR``. + these artifacts without needing to use the :term:`DEPLOY_DIR`.For a more complete description of the
:ref:ref-tasks-populate_sysroot
task and its associated functions, see thedocumentation/dev-manual/common-tasks.rst +0
-0@@ -2048,7 +2048,7 @@ statement that essentially identifies itselfas being able to provide
PROVIDES += "${@ "virtual/kernel" if (d.getVar("KERNEL_PACKAGE_NAME")== "kernel") else "" }"Any recipe that inherits the ``kernel`` class is
-going to utilize a ``PROVIDES`` statement that identifies that recipe as
+going to utilize a :term:PROVIDESstatement that identifies that recipe as
being able to provide the ``virtual/kernel`` item.Now comes the time to actually build an image and you need a kernel
documentation/dev-manual/common-tasks.rst +0
-0@@ -2072,7 +2072,7 @@ build is dependent on ``virtual/kernel`` forexample::
During the build, the OpenEmbedded build system picks the correct recipe needed for the ``virtual/kernel`` dependency based on
-the ``PREFERRED_PROVIDER`` variable. If you want to use the small kernel
+the :term:PREFERRED_PROVIDERvariable. If you want to use the small kernel
mentioned at the beginning of this section, configure your build as follows::documentation/dev-manual/common-tasks.rst +0
-0@@ -2080,8 +2080,8 @@ follows::.. note::
- Any recipe that ``PROVIDES`` a ``virtual/*`` item that is
ultimately not
- selected through ``PREFERRED_PROVIDER`` does not get built.
Preventing these
+ Any recipe that :term:PROVIDESa ``virtual/*`` item that is
ultimately not
+ selected through :term:PREFERRED_PROVIDERdoes not get built.
Preventing these
recipes from building is usually the desired behavior since this mechanism's
purpose is to select between mutually exclusive alternative providers.documentation/dev-manual/common-tasks.rst +0
-0@@ -2221,8 +2221,8 @@ Single .c File Package (Hello World!)Building an application from a single file that is stored locally (e.g.
under ``files``) requires a recipe that has the file listed in the -``SRC_URI`` variable. Additionally, you need to manually write the -``do_compile`` and ``do_install`` tasks. The ``S`` variable defines the
+:term:SRC_URIvariable. Additionally, you need to manually write the
+``do_compile`` and ``do_install`` tasks. The :term:Svariable defines the
directory containing the source code, which is set to :term:WORKDIRin this case - the
directory BitBake uses for the build.documentation/dev-manual/common-tasks.rst +0
-0@@ -2256,7 +2256,7 @@ Autotooled Package~~~~~~~~~~~~~~~~~~
Applications that use Autotools such as ``autoconf`` and ``automake``
-require a recipe that has a source archive listed in ``SRC_URI`` and
+require a recipe that has a source archive listed in :term:SRC_URIand
also inherit the
:ref:autotools <ref-classes-autotools>class,
which contains the definitions of all the steps needed to build andocumentation/dev-manual/common-tasks.rst +0
-0@@ -2275,7 +2275,7 @@ Following is one example: (``hello_2.3.bb [7]``)inherit autotools gettext
documentation/dev-manual/common-tasks.rst +1
-1-The variable ``LIC_FILES_CHKSUM`` is used to track source license +The variable :term:`LIC_FILES_CHKSUM` is used to track sourcelicense
changes as described in the ":ref:dev-manual/common-tasks:tracking license changes" section in
the Yocto Project Overview and Concepts Manual. You can quickly createdocumentation/dev-manual/common-tasks.rst +0
-0@@ -2285,7 +2285,7 @@ Makefile-Based Package~~~~~~~~~~~~~~~~~~~~~~
Applications that use GNU ``make`` also require a recipe that has the
documentation/dev-manual/common-tasks.rst +1
-1-source archive listed in ``SRC_URI``. You do not need to add a +source archive listed in :term:`SRC_URI`. You do not need to add a``do_compile`` step since by default BitBake starts the ``make`` command
to compile the application. If you need additional ``make`` options, you
should store them in thedocumentation/dev-manual/common-tasks.rst +0
-0@@ -2297,7 +2297,7 @@ Otherwise, BitBake runs an empty``do_install`` task by default.
Some applications might require extra parameters to be passed to the
compiler. For example, the application might need an additional header
-path. You can accomplish this by adding to the ``CFLAGS`` variable. The
+path. You can accomplish this by adding to the :term:CFLAGSvariable. The
following example shows this::
CFLAGS_prepend= "-I ${S}/include "documentation/dev-manual/common-tasks.rst +0
-0@@ -2341,7 +2341,7 @@ In the following example, ``mtd-utils`` is amakefile-based package::
Splitting an Application into Multiple Packages
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~documentation/dev-manual/common-tasks.rst +1
-1-You can use the variables ``PACKAGES`` and ``FILES`` to split an +You can use the variables :term:`PACKAGES` and :term:`FILES` tosplit an
application into multiple packages.Following is an example that uses the ``libxpm`` recipe. By default,
documentation/dev-manual/common-tasks.rst +0
-0@@ -2365,12 +2365,12 @@ into separate packages::In the previous example, we want to ship the ``sxpm`` and ``cxpm`` binaries in separate packages. Since ``bindir`` would be packaged into
-the main ``PN`` package by default, we prepend the ``PACKAGES`` variable
+the main :term:PNpackage by default, we prepend the :term:PACKAGESvariable
so additional package names are added to the start of list. This results
in the extra ``FILES_*`` variables then containing information that define which files and directories go into which packages. Files included by earlier packages are skipped by latter packages. Thus, thedocumentation/dev-manual/common-tasks.rst +1
-1-main ``PN`` package does not include the above listed files. +main :term:`PN` package does not include the above listed files.Packaging Externally Produced Binaries
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~documentation/dev-manual/common-tasks.rst +0
-1@@ -2415,12 +2415,12 @@ Reference Manual's variable glossary. - Using :term:`DEPENDS` is a goodidea even for components distributed in binary form, and is often
necessary for shared libraries. For a shared library, listing the
- library dependencies in ``DEPENDS`` makes sure that the
libraries
+ library dependencies in :term:DEPENDSmakes sure that the
libraries
are available in the staging sysroot when other recipes link against the library, which might be necessary for successful linking.documentation/dev-manual/common-tasks.rst +1
-1- - Using ``DEPENDS`` also allows runtime dependencies between + - Using :term:`DEPENDS` also allows runtime dependenciesbetween
packages to be added automatically. See the ":ref:overview-manual/concepts:automatically added runtime dependencies"
section in the Yocto Project Overview and Concepts Manual for moredocumentation/dev-manual/common-tasks.rst +0
-0@@ -2747,7 +2747,7 @@ file or include from a lower-levelconfiguration file are as follows:
- ``PREFERRED_PROVIDER_virtual/kernel``
-- ``MACHINE_FEATURES`` (e.g. "apm screen wifi") +- :term:
MACHINE_FEATURES(e.g. "apm screen wifi")You might also need these variables:
documentation/dev-manual/common-tasks.rst +1
-2@@ -2755,7 +2755,7 @@ You might also need these variables: - ``KERNEL_IMAGETYPE`` (e.g. "zImage") -- ``IMAGE_FSTYPES`` (e.g. "tar.gz jffs2") +- :term:`IMAGE_FSTYPES` (e.g. "tar.gz jffs2")You can find full details on these variables in the reference section.
You can leverage existing machine ``.conf`` files fromdocumentation/dev-manual/common-tasks.rst +0
-0@@ -2771,8 +2771,8 @@ examples in the Source Directory at``meta/recipes-kernel/linux`` that
you can use as references.If you are creating a new kernel recipe, normal recipe-writing rules
documentation/dev-manual/common-tasks.rst +0
-2-apply for setting up a ``SRC_URI``. Thus, you need to specify any -necessary patches and set ``S`` to point at the source code. Youneed to
+apply for setting up a :term:SRC_URI. Thus, you need to specify any
+necessary patches and set :term:Sto point at the source code. You need to
create a ``do_configure`` task that configures the unpacked kernel with
a ``defconfig`` file. You can do this by using a ``make defconfig`` command or, more commonly, by copying in a suitable ``defconfig`` filedocumentation/dev-manual/common-tasks.rst +0
-0@@ -2785,8 +2785,8 @@ If you are extending an existing kernelrecipe, it is usually a matter
of adding a suitable ``defconfig`` file. The file needs to be added into
a location similar to ``defconfig`` files used for other machines in a
given kernel recipe. A possible way to do this is by listing the file indocumentation/dev-manual/common-tasks.rst +2
-2-the ``SRC_URI`` and adding the machine to the expression in -``COMPATIBLE_MACHINE``:: +the :term:`SRC_URI` and adding the machine to the expression in +:term:`COMPATIBLE_MACHINE`::
COMPATIBLE_MACHINE= '(qemux86|qemumips)'documentation/dev-manual/common-tasks.rst +0
-0@@ -3178,9 +3178,9 @@ To manually upgrade recipe versions, followthese general steps:
1. *Change the Version:* Rename the recipe such that the version (i.e.
the :term:PVpart of the recipe name)
changes appropriately. If the version is not part of the recipe name,
- change the value as it is set for ``PV`` within the recipe
itself.
+ change the value as it is set for :term:PVwithin the recipe
itself.-2. *Update* ``SRCREV`` *if Needed*: If the source code your recipe builds
+2. *Update* :term:SRCREV*if Needed*: If the source code your recipe builds
is fetched from Git or some other version control system, update :term:SRCREVto point to the
commit hash that matches the new version.documentation/dev-manual/common-tasks.rst +0
-0@@ -3241,15 +3241,15 @@ patches.During a build, the unpacked temporary source code used by recipes to
build packages is available in the Build Directory as defined by the
:term:Svariable. Below is the defaultdocumentation/dev-manual/common-tasks.rst +1
-1-value for the ``S`` variable as defined in the +value for the :term:`S` variable as defined in the``meta/conf/bitbake.conf`` configuration file in the :term:
Source Directory::S = "${WORKDIR}/${BP}"
You should be aware that many recipes override the -``S`` variable. For example, recipes that fetch their source from Git
-usually set ``S`` to ``${WORKDIR}/git``.
+:term:Svariable. For example, recipes that fetch their source from Git
+usually set :term:Sto ``${WORKDIR}/git``... note::
documentation/dev-manual/common-tasks.rst +0
-0@@ -3369,13 +3369,13 @@ Follow these general steps:``file2.c``, and ``file3.c`` files.
You can find the resulting patch file in the ``patches/``
documentation/dev-manual/common-tasks.rst +1
-1- subdirectory of the source (``S``) directory. + subdirectory of the source (:term:`S`) directory.8. *Copy the Patch File:* For simplicity, copy the patch file into a
directory named ``files``, which you can create in the same directory
that holds the recipe (``.bb``) file or the append (``.bbappend``)
file. Placing the patch here guarantees that the OpenEmbedded build
- system will find the patch. Next, add the patch into the
``SRC_URI``
+ system will find the patch. Next, add the patch into the
:term:SRC_URI
of the recipe. Here is an example::
SRC_URI+= "file://my_changes.patch"documentation/dev-manual/common-tasks.rst +0
-0@@ -3454,7 +3454,7 @@ terminal window.use the full compiler name such as ``arm-poky-linux-gnueabi-gcc``
instead of just using ``gcc``. The same applies to other applications such as ``binutils``, ``libtool`` and so forth.
- BitBake sets up environment variables such as ``CC`` to
assist
+ BitBake sets up environment variables such as :term:CCto
assist
applications, such as ``make`` to find the correct tools.- It is also worth noting that ``devshell`` still works over X11
documentation/dev-manual/common-tasks.rst +0
-0@@ -3573,7 +3573,7 @@ The following figure and list overviews thebuild process:
``conf/local.conf`` configuration file, which is found in the Build
Directory, is set up how you want it. This file defines many aspects
of the build environment including the target machine architecture
- through the ``MACHINE`` variable, the packaging format used
during
+ through the :term:MACHINEvariable, the packaging format used
during
the build
(:term:PACKAGE_CLASSES),
and a centralized tarball download directory through thedocumentation/dev-manual/common-tasks.rst +0
-0@@ -3646,7 +3646,7 @@ Follow these steps to set up and executemultiple configuration builds:
consider a scenario with two different multiconfigs for the same :term:MACHINE: "qemux86" built
for two distributions such as "poky" and "poky-lsb". In this case,documentation/dev-manual/common-tasks.rst +1
-1- you might want to use the same ``TMPDIR``. + you might want to use the same :term:`TMPDIR`.Here is an example showing the minimal statements needed in a configuration file for a "qemux86" target whose temporary build
documentation/dev-manual/common-tasks.rst +0
-0@@ -3663,7 +3663,7 @@ Follow these steps to set up and executemultiple configuration builds:
.. image:: figures/multiconfig_files.png
:align: center- The reason for this required file hierarchy is because the
``BBPATH``
+ The reason for this required file hierarchy is because the
:term:BBPATH
variable is not constructed until the layers are parsed. Consequently, using the configuration file as a pre-configuration
file is not possible unless it is located in the current workingdocumentation/dev-manual/common-tasks.rst +0
-0@@ -3674,7 +3674,7 @@ Follow these steps to set up and executemultiple configuration builds:
:term:BBMULTICONFIG
variable in your ``conf/local.conf`` configuration file to specify
each multiconfig. Continuing with the example from the previousdocumentation/dev-manual/common-tasks.rst +1
-1- figure, the ``BBMULTICONFIG`` variable needs to enable two + figure, the :term:`BBMULTICONFIG` variable needs to enable twomulticonfigs: "x86" and "arm" by specifying each configuration file::
BBMULTICONFIG = "x86 arm"
documentation/dev-manual/common-tasks.rst +0
-0@@ -3708,7 +3708,7 @@ Follow these steps to set up and executemultiple configuration builds:
Support for multiple configuration builds in the Yocto Project &DISTRO;
(&DISTRO_NAME;) Release does not include Shared State (sstate) optimizations. Consequently, if a build uses the same object twicedocumentation/dev-manual/common-tasks.rst +1
-1- in, for example, two different ``TMPDIR`` + in, for example, two different :term:`TMPDIR`directories, the build either loads from an existing sstate cache for
that build at the start or builds the object fresh.documentation/dev-manual/common-tasks.rst +0
-0@@ -3806,7 +3806,7 @@ Follow these steps to create an initramfsimage:
recipe and the initramfs recipe should the initramfs image include
kernel modules.documentation/dev-manual/common-tasks.rst +1
-1- Setting the ``INITRAMFS_IMAGE_BUNDLE`` flag causes the initramfs + Setting the :term:`INITRAMFS_IMAGE_BUNDLE` flag causes theinitramfs
image to be unpacked into the ``${B}/usr/`` directory. The unpacked
initramfs image is then passed to the kernel's ``Makefile`` using the
:term:CONFIG_INITRAMFS_SOURCEdocumentation/dev-manual/common-tasks.rst +0
-0@@ -3828,7 +3828,7 @@ Follow these steps to create an initramfsimage:
:term:PACKAGE_INSTALL
rather than
:term:IMAGE_INSTALL.
- ``PACKAGE_INSTALL`` gives more direct control of what is added
to the
+ :term:PACKAGE_INSTALLgives more direct control of what is
added to the
image as compared to the defaults you might not necessarily want that
are set by the :ref:image <ref-classes-image>
or :ref:core-image <ref-classes-core-image>documentation/dev-manual/common-tasks.rst +0
-0@@ -3912,7 +3912,7 @@ your own distribution that are likely modeledafter ``poky-tiny``.
.. note::
- To use ``poky-tiny`` in your build, set the ``DISTRO`` variable
in your
+ To use ``poky-tiny`` in your build, set the :term:DISTRO
variable in your
``local.conf`` file to "poky-tiny" as described in the ":ref:dev-manual/common-tasks:creating your own distribution" section.documentation/dev-manual/common-tasks.rst +0
-0@@ -4156,17 +4156,17 @@ your tunings to best consider build timesand package feed maintenance.
:term:TMPDIRacross builds. The
Yocto Project supports switching between different :term:MACHINEvalues in the same
- ``TMPDIR``. This practice is well supported and regularly used
by
+ :term:TMPDIR. This practice is well supported and regularly
used by
developers when building for multiple machines. When you use the same
- ``TMPDIR`` for multiple machine builds, the OpenEmbedded build
system
+ :term:TMPDIRfor multiple machine builds, the OpenEmbedded
build system
can reuse the existing native and often cross-recipes for multiple
machines. Thus, build time decreases... note::
If :term:
DISTROsettings change or fundamental configuration settings
- such as the filesystem layout, you need to work with a clean
``TMPDIR``.
- Sharing ``TMPDIR`` under these circumstances might work but
since it is
+ such as the filesystem layout, you need to work with a clean
:term:TMPDIR.
+ Sharing :term:TMPDIRunder these circumstances might work
but since it is
not guaranteed, you should use a clean ``TMPDIR``.documentation/dev-manual/common-tasks.rst +0
-1- *Enable the Appropriate Package Architecture:* By default, the@@ -4304,7 +4304,7 @@ your ``local.conf`` file::EXTERNALSRC_pn-myrecipe = "path-to-your-source-tree"
This next example shows how to accomplish the same thing by setting -``EXTERNALSRC`` in the recipe itself or in the recipe's append file::
+:term:EXTERNALSRCin the recipe itself or in the recipe's append file::EXTERNALSRC = "path"
EXTERNALSRC_BUILD= "path"documentation/dev-manual/common-tasks.rst +0
-0@@ -4340,7 +4340,7 @@ Follow these steps to populate your Downloadsdirectory:
1. *Create a Clean Downloads Directory:* Start with an empty downloads
directory (:term:DL_DIR). You
start with an empty downloads directory by either removing the files
- in the existing directory or by setting ``DL_DIR`` to point to
either
+ in the existing directory or by setting :term:DL_DIRto point
to either
an empty location or one that does not yet exist.2. *Generate Tarballs of the Source Git Repositories:* Edit your
documentation/dev-manual/common-tasks.rst +0
-0@@ -4351,7 +4351,7 @@ Follow these steps to populate your Downloadsdirectory:
During
the fetch process in the next step, BitBake gathers the source files
- and creates tarballs in the directory pointed to by ``DL_DIR``.
See
+ and creates tarballs in the directory pointed to by
:term:DL_DIR. See
the
:term:BB_GENERATE_MIRROR_TARBALLS
variable for more information.documentation/dev-manual/common-tasks.rst +0
-0@@ -4394,7 +4394,7 @@ directory:The ``SOURCE_MIRROR_URL`` and ``own-mirror``
class set up the system to use the downloads directory as your "owndocumentation/dev-manual/common-tasks.rst +1
-1- mirror". Using the ``BB_NO_NETWORK`` variable makes sure that + mirror". Using the :term:`BB_NO_NETWORK` variable makes surethat
BitBake's fetching process in step 3 stays local, which means files
from your "own-mirror" are used.documentation/dev-manual/common-tasks.rst +0
-0@@ -4420,27 +4420,27 @@ directory:SRCREV = "${AUTOREV}"
documentation/dev-manual/common-tasks.rst +1
-1- When a recipe sets ``SRCREV`` to + When a recipe sets :term:`SRCREV` to``${AUTOREV}``, the build system accesses the network in an attempt to determine the latest version of software from the SCM.
- Typically, recipes that use ``AUTOREV`` are custom or
modified
+ Typically, recipes that use :term:AUTOREVare custom or
modified
recipes. Recipes that reside in public repositories usually do notdocumentation/dev-manual/common-tasks.rst +1
-2- use ``AUTOREV``. + use :term:`AUTOREV`. - If you do have recipes that use ``AUTOREV``, you can takesteps to
+ If you do have recipes that use :term:AUTOREV, you can take
steps to
still use the recipes in an offline build. Do the following:1. Use a configuration generated by enabling :ref:
build history <dev-manual/common-tasks:maintaining build output quality>.2. Use the ``buildhistory-collect-srcrevs`` command to collect the
- stored ``SRCREV`` values from the build's history. For
more
+ stored :term:SRCREVvalues from the build's history. For
more
information on collecting these values, see the ":ref:dev-manual/common-tasks:build history package information"
section.3. Once you have the correct source revisions, you can modify
- those recipes to set ``SRCREV`` to specific versions of
the
+ those recipes to set :term:SRCREVto specific versions
of the
software.Speeding Up a Build
documentation/dev-manual/common-tasks.rst +0
-0@@ -4580,7 +4580,7 @@ the built library.The :term:
PACKAGESand
:term:FILES_* <FILES>variables in the ``meta/conf/bitbake.conf`` configuration file define how files installed
-by the ``do_install`` task are packaged. By default, the ``PACKAGES``
+by the ``do_install`` task are packaged. By default, the :term:PACKAGES
variable includes ``${PN}-staticdev``, which represents all static library files.documentation/dev-manual/common-tasks.rst +0
-0@@ -5943,7 +5943,7 @@ system to make your images more secure:
EXTRA_IMAGE_FEATURES= "debug-tweaks"To disable that feature, simply comment out that line in your
- ``local.conf`` file, or make sure ``IMAGE_FEATURES`` does not
contain
+ ``local.conf`` file, or make sure :term:IMAGE_FEATURESdoes
not contain
"debug-tweaks" before producing your final image. Among other things,
leaving this in place sets the root password as blank, which makes
logging in for debugging or inspection easy during development butdocumentation/dev-manual/common-tasks.rst +0
-0@@ -6248,20 +6248,20 @@ the following:.. note::
Technically, a third component, the "epoch" (i.e. :term:
PE) is involveddocumentation/dev-manual/common-tasks.rst +1
-1- but this discussion for the most part ignores ``PE``. + but this discussion for the most part ignores :term:`PE`.The version and revision are taken from the
:term:PVand
:term:PRvariables, respectively.-- ``PV``: The recipe version. ``PV`` represents the version of the - software being packaged. Do not confuse ``PV`` with the binary +- :term:`PV`: The recipe version. :term:`PV` represents theversion of the
+ software being packaged. Do not confuse :term:PVwith the
binary
package version.documentation/dev-manual/common-tasks.rst +0
-3- ``PR``: The recipe revision. - :term:`SRCPV`: The OpenEmbedded - build system uses this string to help define the value of ``PV``when
+ build system uses this string to help define the value of
:term:PVwhen
the source code revision needs to be included in it.documentation/dev-manual/common-tasks.rst +0
-1- :yocto_wiki:`PR Service </PR_Service>`: A@@ -6271,12 +6271,12 @@ the following:Whenever the binary package content changes, the binary package version
must change. Changing the binary package version is accomplished by -changing or "bumping" the ``PR`` and/or ``PV`` values. Increasing these
+changing or "bumping" the :term:PRand/or :term:PVvalues. Increasing these
values occurs one of two ways:- Automatically using a Package Revision Service (PR Service).
-- Manually incrementing the ``PR`` and/or ``PV`` variables. +- Manually incrementing the :term:
PRand/or :term:PVvariables.Given a primary challenge of any build system and its users is how to
maintain a package feed that is compatible with existing package managerdocumentation/dev-manual/common-tasks.rst +0
-0@@ -6290,7 +6290,7 @@ package revisioning remains linear, see thesection.
The following three sections provide related information on the PR -Service, the manual method for "bumping" ``PR`` and/or ``PV``, and on
+Service, the manual method for "bumping" :term:PRand/or :term:PV, and on
how to ensure binary package revisioning remains linear.Working With a PR Service
documentation/dev-manual/common-tasks.rst +0
-0@@ -6320,20 +6320,20 @@ Because the OpenEmbedded build system usesunique to a given build, the build system knows when to rebuild packages. All the inputs into a given task are represented by a signature, which can trigger a rebuild when different. Thus, the build
-system itself does not rely on the ``PR``, ``PV``, and ``PE`` numbers to
+system itself does not rely on the :term:PR, :term:PV, and :term:PEnumbers to
trigger a rebuild. The signatures, however, can be used to generate these values.The PR Service works with both ``OEBasic`` and ``OEBasicHash`` -generators. The value of ``PR`` bumps when the checksum changes and the
+generators. The value of :term:PRbumps when the checksum changes and the
different generator mechanisms change signatures under different circumstances.As implemented, the build system includes values from the PR Service
-into the ``PR`` field as an addition using the form "``.x``" so ``r0``
+into the :term:PRfield as an addition using the form "``.x``" so ``r0``
becomes ``r0.1``, ``r0.2`` and so forth. This scheme allows existing
-``PR`` values to be used for whatever reasons, which include manual -``PR`` bumps, should it be necessary.
+:term:PRvalues to be used for whatever reasons, which include manual
+:term:PRbumps, should it be necessary.By default, the PR Service is not enabled or running. Thus, the packages
generated are just "self consistent". The build system adds and removesdocumentation/dev-manual/common-tasks.rst +0
-0@@ -6349,7 +6349,7 @@ this scenario, you can enable a local PRService by setting
PRSERV_HOST= "localhost:0"Once the service is started, packages will automatically
documentation/dev-manual/common-tasks.rst +1
-1-get increasing ``PR`` values and BitBake takes care of starting and +get increasing :term:`PR` values and BitBake takes care of startingand
stopping the server.If you have a more complex setup where multiple host development systems
documentation/dev-manual/common-tasks.rst +0
-0@@ -6379,7 +6379,7 @@ history, see the.. note::
- The OpenEmbedded build system does not maintain ``PR``
information as
+ The OpenEmbedded build system does not maintain :term:PR
information as
part of the shared state (sstate) packages. If you maintain an sstate
feed, it's expected that either all your building systems that contribute to the sstate feed use a shared PR Service, or you do notdocumentation/dev-manual/common-tasks.rst +0
-0@@ -6398,27 +6398,27 @@ The alternative to setting up a PR Serviceis to manually "bump" the
If a committed change results in changing the package output, then the
value of the PR variable needs to be increased (or "bumped") as part of
-that commit. For new recipes you should add the ``PR`` variable and set
+that commit. For new recipes you should add the :term:PRvariable and set
its initial value equal to "r0", which is the default. Even though the
default value is "r0", the practice of adding it to a new recipe makes
it harder to forget to bump the variable when you make changes to the
recipe in future.If you are sharing a common ``.inc`` file with multiple recipes, you can
-also use the ``INC_PR`` variable to ensure that the recipes sharing the
+also use the :term:INC_PRvariable to ensure that the recipes sharing the
``.inc`` file are rebuilt when the ``.inc`` file itself is changed. The
-``.inc`` file must set ``INC_PR`` (initially to "r0"), and all recipes
-referring to it should set ``PR`` to "${INC_PR}.0" initially, +``.inc`` file must set :term:INC_PR(initially to "r0"), and all recipes
+referring to it should set :term:PRto "${INC_PR}.0" initially, incrementing the last number when the recipe is changed. If the ``.inc``documentation/dev-manual/common-tasks.rst +1
-3-file is changed then its ``INC_PR`` should be incremented. +file is changed then its :term:`INC_PR` should be incremented. -When upgrading the version of a binary package, assuming the ``PV`` -changes, the ``PR`` variable should be reset to "r0" (or"${INC_PR}.0"
documentation/dev-manual/common-tasks.rst +1
-1-if you are using ``INC_PR``). +When upgrading the version of a binary package, assuming the:term:
PV
+changes, the :term:PRvariable should be reset to "r0" (or "${INC_PR}.0"
+if you are using :term:INC_PR).Usually, version increases occur only to binary packages. However, if
-for some reason ``PV`` changes but does not increase, you can increase
-the ``PE`` variable (Package Epoch). The ``PE`` variable defaults to
+for some reason :term:PVchanges but does not increase, you can increase
+the :term:PEvariable (Package Epoch). The :term:PEvariable defaults to
"0".Binary package version numbering strives to follow the `Debian Version
documentation/dev-manual/common-tasks.rst +0
-0@@ -6433,20 +6433,20 @@ Automatically Incrementing a Package VersionNumber
When fetching a repository, BitBake uses the :term:SRCREVvariable to determine
the specific source code revision from which to build. You set the -``SRCREV`` variable to
+:term:SRCREVvariable to
:term:AUTOREVto cause the
OpenEmbedded build system to automatically use the latest revision of
the software::SRCREV = "${AUTOREV}"
documentation/dev-manual/common-tasks.rst +1
-1-Furthermore, you need to reference ``SRCPV`` in ``PV`` in order to +Furthermore, you need to reference :term:`SRCPV` in :term:`PV` inorder to
automatically update the version whenever the revision of the source
code changes. Here is an example::PV = "1.0+git${SRCPV}"
-The OpenEmbedded build system substitutes ``SRCPV`` with the following:
+The OpenEmbedded build system substitutes :term:SRCPVwith the following:.. code-block:: none
documentation/dev-manual/common-tasks.rst +0
-0@@ -6479,7 +6479,7 @@ with a number. The number used depends on thestate of the PR Service:
In summary, the OpenEmbedded build system does not track the history of
binary package versions for this purpose. ``AUTOINC``, in this case, is
-comparable to ``PR``. If PR server is not enabled, ``AUTOINC`` in the
+comparable to :term:PR. If PR server is not enabled, ``AUTOINC`` in the
package version is simply replaced by "0". If PR server is enabled, the
build system keeps track of the package versions and bumps the number
when the package revision changes.documentation/dev-manual/common-tasks.rst +0
-0@@ -6654,7 +6654,7 @@ ensure that any :term:`RDEPENDS` and:term:
RRECOMMENDSon a package
name starting with the prefix are satisfied during build time. If you
are using ``do_split_packages`` as described in the previous section,
-the value you put in ``PACKAGES_DYNAMIC`` should correspond to the name
+the value you put in :term:PACKAGES_DYNAMICshould correspond to the name
pattern specified in the call to ``do_split_packages``.Using Runtime Package Management
documentation/dev-manual/common-tasks.rst +0
-0@@ -6822,7 +6822,7 @@ From within the build directory where you havebuilt an image based on
your packaging choice (i.e. the
:term:PACKAGE_CLASSES
setting), simply start the server. The following example assumes a build
-directory of ``poky/build/tmp/deploy/rpm`` and a ``PACKAGE_CLASSES``
+directory of ``poky/build/tmp/deploy/rpm`` and a :term:PACKAGE_CLASSES
setting of "package_rpm"::$ cd poky/build/tmp/deploy/rpmdocumentation/dev-manual/common-tasks.rst +0
-0@@ -7360,7 +7360,7 @@ command::The
recipe this command generates is very similar to the recipe created in
-the previous section. However, the ``SRC_URI`` looks like the following::
+the previous section. However, the :term:SRC_URIlooks like the following::
SRC_URI= " \git://github.com/martinaglv/cute-files.git;protocol=https
[8] \documentation/dev-manual/common-tasks.rst +1
-2@@ -7394,7 +7394,7 @@ of precedence is the same as this list: - ``PACKAGE_ADD_METADATA_<PN>`` -- ``PACKAGE_ADD_METADATA`` +- :term:`PACKAGE_ADD_METADATA`
<PKGTYPE>is a parameter and expected to be a distinct name of specific
package type:documentation/dev-manual/common-tasks.rst +0
-0@@ -7587,7 +7587,7 @@ variable defines the Device Table to use andshould be set in the
machine or distro configuration file. Alternatively, you can set this
variable in your ``local.conf`` configuration file.-If you do not define the ``IMAGE_DEVICE_TABLES`` variable, the default
+If you do not define the :term:IMAGE_DEVICE_TABLESvariable, the default
``device_table-minimal.txt`` is used::
IMAGE_DEVICE_TABLES= "device_table-mymachine.txt"documentation/dev-manual/common-tasks.rst +0
-0@@ -7713,13 +7713,13 @@ Creating the Root FilesystemTo create the read-only root filesystem, simply add the "read-only-rootfs" feature to your image, normally in one of two ways.
The first way is to add the "read-only-rootfs" image feature in thedocumentation/dev-manual/common-tasks.rst +1
-1-image's recipe file via the ``IMAGE_FEATURES`` variable:: +image's recipe file via the :term:`IMAGE_FEATURES` variable::
IMAGE_FEATURES+= "read-only-rootfs"As an alternative, you can add the same feature
from within your build directory's ``local.conf`` file with thedocumentation/dev-manual/common-tasks.rst +1
-1-associated ``EXTRA_IMAGE_FEATURES`` variable, as in:: +associated :term:`EXTRA_IMAGE_FEATURES` variable, as in::
EXTRA_IMAGE_FEATURES= "read-only-rootfs"documentation/dev-manual/common-tasks.rst +0
-1@@ -7813,7 +7813,7 @@ Enabling and Disabling Build History ------------------------------------Build history is disabled by default. To enable it, add the following
-``INHERIT`` statement and set the
+:term:INHERITstatement and set the :term:BUILDHISTORY_COMMIT
variable to "1" at the end of your ``conf/local.conf`` file found in the
:term:Build Directory::documentation/dev-manual/common-tasks.rst +0
-0@@ -7913,10 +7913,10 @@ example assumingYou can use the
``buildhistory-collect-srcrevs`` command with the ``-a`` option to -collect the stored ``SRCREV`` values from build history and report them
+collect the stored :term:SRCREVvalues from build history and report them
in a format suitable for use in global configuration (e.g., ``local.conf`` or a distro include file) to override floating -``AUTOREV`` values to a fixed set of revisions. Here is some example
+:term:AUTOREVvalues to a fixed set of revisions. Here is some example
output from this command::$ buildhistory-collect-srcrevs -adocumentation/dev-manual/common-tasks.rst +0
-0@@ -7945,7 +7945,7 @@ output from this command::Here are some notes on using the
``buildhistory-collect-srcrevs`` command:- - By default, only values where the ``SRCREV`` was not
hardcoded
+ - By default, only values where the :term:SRCREVwas not
hardcoded
(usually when ``AUTOREV`` is used) are reported. Use the ``-a``
option to see all ``SRCREV`` values.documentation/dev-manual/common-tasks.rst +0
-0@@ -8276,7 +8276,7 @@ Once you start running the tests, thefollowing happens:
tests run. The full boot log is written to
``${WORKDIR}/testimage/qemu_boot_log``.-5. Each test module loads in the order found in ``TEST_SUITES``. You can
+5. Each test module loads in the order found in :term:TEST_SUITES. You can
find the full output of the commands run over SSH in ``${WORKDIR}/testimgage/ssh_target_log``.documentation/dev-manual/common-tasks.rst +0
-0@@ -8310,7 +8310,7 @@ addresses written into the image, or set theimage to use DHCP and have
your DHCP server on the test network assign a known IP address based on
the MAC address of the device.-In order to run tests on hardware, you need to set ``TEST_TARGET`` to an
+In order to run tests on hardware, you need to set :term:TEST_TARGETto an
appropriate value. For QEMU, you do not have to change anything, the
default value is "qemu". For running tests on hardware, the following
options are available:documentation/dev-manual/common-tasks.rst +0
-0@@ -8359,14 +8359,14 @@ options are available:Selecting SystemdbootTarget
~~~~~~~~~~~~~~~~~~~~~~~~~~~-If you did not set ``TEST_TARGET`` to "SystemdbootTarget", then you do
+If you did not set :term:TEST_TARGETto "SystemdbootTarget", then you do
not need any information in this section. You can skip down to the ":ref:dev-manual/common-tasks:running tests" section.-If you did set ``TEST_TARGET`` to "SystemdbootTarget", you also need to
+If you did set :term:TEST_TARGETto "SystemdbootTarget", you also need to
perform a one-time setup of your master image by doing the following:-1. *Set EFI_PROVIDER:* Be sure that ``EFI_PROVIDER`` is as follows::
+1. *Set EFI_PROVIDER:* Be sure that :term:EFI_PROVIDERis as follows::
EFI_PROVIDER= "systemd-boot"documentation/dev-manual/common-tasks.rst +0
-0@@ -8400,7 +8400,7 @@ perform a one-time setup of your master imageby doing the following:
3. *Install image:* Install the image that you just built on the target
system.documentation/dev-manual/common-tasks.rst +1
-1-The final thing you need to do when setting ``TEST_TARGET`` to +The final thing you need to do when setting :term:`TEST_TARGET` to"SystemdbootTarget" is to set up the test image:
1. *Set up your local.conf file:* Make sure you have the following
documentation/dev-manual/common-tasks.rst +0
-0@@ -8421,8 +8421,8 @@ Power ControlFor most hardware targets other than "simpleremote", you can control
power:-- You can use ``TEST_POWERCONTROL_CMD`` together with
- ``TEST_POWERCONTROL_EXTRA_ARGS`` as a command that runs on the
host+- You can use :term:`TEST_POWERCONTROL_CMD` together with + :term:`TEST_POWERCONTROL_EXTRA_ARGS` as a command that runs onthe host
and does power cycling. The test code passes one argument to that
command: off, on or cycle (off then on). Here is an example that could appear in your ``local.conf`` file::documentation/dev-manual/common-tasks.rst +0
-0@@ -8441,8 +8441,8 @@ power:.. note::
documentation/dev-manual/common-tasks.rst +0
-2- You need to customize ``TEST_POWERCONTROL_CMD`` and - ``TEST_POWERCONTROL_EXTRA_ARGS`` for your own setup. The onerequirement
documentation/dev-manual/common-tasks.rst +2
-0+ You need to customize :term:`TEST_POWERCONTROL_CMD` and + :term:`TEST_POWERCONTROL_EXTRA_ARGS` for your own setup. Theone requirement
is that it accepts "on", "off", and "cycle" as the last argument.- When no command is defined, it connects to the device over SSH and
documentation/dev-manual/common-tasks.rst +0
-0@@ -8540,14 +8540,14 @@ the ``local.conf`` file as normal. Be surethat tests reside in
You can change the set of tests run by appending or overriding :term:
TEST_SUITESvariable in
-``local.conf``. Each name in ``TEST_SUITES`` represents a required test
-for the image. Test modules named within ``TEST_SUITES`` cannot be +``local.conf``. Each name in :term:TEST_SUITESrepresents a required test
+for the image. Test modules named within :term:TEST_SUITEScannot be
skipped even if a test is not suitable for an image (e.g. running the
RPM tests on an image without ``rpm``). Appending "auto" to -``TEST_SUITES`` causes the build system to try to run all tests that are
+:term:TEST_SUITEScauses the build system to try to run all tests that are
suitable for the image (i.e. each test module may elect to skip itself).-The order you list tests in ``TEST_SUITES`` is important and influences
+The order you list tests in :term:TEST_SUITESis important and influences
test dependencies. Consequently, tests that depend on other tests should
be added after the test on which they depend. For example, since the
``ssh`` test depends on the ``ping`` test, "ssh" needs to come afterdocumentation/dev-manual/common-tasks.rst +0
-0@@ -8599,7 +8599,7 @@ following BitBake command form::Exporting the tests places them in the :term:
Build Directoryin ``tmp/testexport/``\ image, which is controlled by the -``TEST_EXPORT_DIR`` variable. +:term:TEST_EXPORT_DIRvariable.You can now run the tests outside of the build environment::
documentation/dev-manual/common-tasks.rst +0
-0@@ -9558,7 +9558,7 @@ So the first thing to do is build "neard"locally. Before you start the
build, set the
:term:PARALLEL_MAKEvariable
in your ``local.conf`` file to a high number (e.g. "-j 20"). Using adocumentation/dev-manual/common-tasks.rst +1
-1-high value for ``PARALLEL_MAKE`` increases the chances of the race +high value for :term:`PARALLEL_MAKE` increases the chances of therace
condition showing up::$ bitbake nearddocumentation/dev-manual/common-tasks.rst +0
-0@@ -9631,7 +9631,7 @@ The final thing you need to do to implementthe fix in the build is to
update the "neard" recipe (i.e. ``neard-0.14.bb [9]``) so that the :term:SRC_URIstatement includes
the patch file. The recipe file is in the folder above the patch. Heredocumentation/dev-manual/common-tasks.rst +1
-1-is what the edited ``SRC_URI`` statement would look like:: +is what the edited :term:`SRC_URI` statement would look like::
SRC_URI= "${KERNELORG_MIRROR}/linux/network/nfc/${BPN}-${PV}.tar.xz \
file://neard.in [10] \documentation/dev-manual/common-tasks.rst +0
-0@@ -9640,7 +9640,7 @@ is what the edited ``SRC_URI`` statement wouldlook like::
"With the patch complete and moved to the correct folder and the -``SRC_URI`` statement updated, you can exit the ``devshell``::
+:term:SRC_URIstatement updated, you can exit the ``devshell``::$ exitdocumentation/dev-manual/common-tasks.rst +0
-0@@ -9985,14 +9985,14 @@ Here are some other tips that you might finduseful:
- Removing :term:TMPDIR(usually
``tmp/``, within the
:term:Build Directory) can often fix
- temporary build issues. Removing ``TMPDIR`` is usually a
relatively
+ temporary build issues. Removing :term:TMPDIRis usually a
relatively
cheap operation, because task output will be cached in :term:SSTATE_DIR(usually
``sstate-cache/``, which is also in the Build Directory)... note::
documentation/dev-manual/common-tasks.rst +1
-1- Removing ``TMPDIR`` might be a workaround rather than a fix. + Removing :term:`TMPDIR` might be a workaround rather than afix.
Consequently, trying to determine the underlying cause of an issue before
removing the directory is a good idea.documentation/dev-manual/common-tasks.rst +0
-0@@ -10585,9 +10585,9 @@ build will fail.Specifying the ``LIC_FILES_CHKSUM`` Variable
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-The ``LIC_FILES_CHKSUM`` variable contains checksums of the license text
+The :term:LIC_FILES_CHKSUMvariable contains checksums of the license text
in the source code for the recipe. Following is an example of how todocumentation/dev-manual/common-tasks.rst +1
-1-specify ``LIC_FILES_CHKSUM``:: +specify :term:`LIC_FILES_CHKSUM`::
LIC_FILES_CHKSUM= "file://COPYING;md5=xxxx \file://licfile1.txt;beginline=5;endline=29;md5=yyyy \
documentation/dev-manual/common-tasks.rst +0
-0@@ -10607,7 +10607,7 @@ specify ``LIC_FILES_CHKSUM``::The build system uses the :term:
S
variable as the default directory when searching files listed in -``LIC_FILES_CHKSUM``. The previous example employs the default +:term:LIC_FILES_CHKSUM. The previous example employs the default directory.Consider this next example::
documentation/dev-manual/common-tasks.rst +0
-0@@ -10620,13 +10620,13 @@ The first line locates a file in``${S}/src/ls.c`` and isolates lines
five through 16 as license text. The second line refers to a file in
:term:WORKDIR.-Note that ``LIC_FILES_CHKSUM`` variable is mandatory for all recipes,
documentation/dev-manual/common-tasks.rst +1
-1-unless the ``LICENSE`` variable is set to "CLOSED". +Note that :term:`LIC_FILES_CHKSUM` variable is mandatory for allrecipes,
+unless the :term:LICENSEvariable is set to "CLOSED".Explanation of Syntax
~~~~~~~~~~~~~~~~~~~~~-As mentioned in the previous section, the ``LIC_FILES_CHKSUM`` variable
+As mentioned in the previous section, the :term:LIC_FILES_CHKSUMvariable
lists all the important files that contain the license text for the source code. It is possible to specify a checksum for an entire file, or
a specific section of a file (specified by beginning and ending linedocumentation/dev-manual/common-tasks.rst +0
-0@@ -10646,7 +10646,7 @@ build, the correct md5 checksum is placed inthe build log and can be
easily copied to the recipe.There is no limit to how many files you can specify using the -``LIC_FILES_CHKSUM`` variable. Generally, however, every project +:term:
LIC_FILES_CHKSUMvariable. Generally, however, every project
requires a few specifications for license tracking. Many projects have a
"COPYING" file that stores the license information for all the source
code files. This practice allows you to just track the "COPYING" file asdocumentation/dev-manual/common-tasks.rst +0
-0@@ -10683,16 +10683,16 @@ name and version (after variableexpansion)::
LICENSE_FLAGS= "license_${PN}_${PV}"In order for a component restricted by a -``LICENSE_FLAGS`` definition to be enabled and included in an image, it
+:term:LICENSE_FLAGSdefinition to be enabled and included in an image, it
needs to have a matching entry in the global :term:LICENSE_FLAGS_WHITELIST
variable, which is a variable typically defined in your ``local.conf``
file. For example, to enable the ``poky/meta/recipes-multimedia/gstreamer/gst-plugins-ugly`` package, you
could add either the string "commercial_gst-plugins-ugly" or the moredocumentation/dev-manual/common-tasks.rst +1
-1-general string "commercial" to ``LICENSE_FLAGS_WHITELIST``. See the +general string "commercial" to :term:`LICENSE_FLAGS_WHITELIST`. Seethe
":ref:dev-manual/common-tasks:license flag matching" section for a fulldocumentation/dev-manual/common-tasks.rst +1
-1-explanation of how ``LICENSE_FLAGS`` matching works. Here is the +explanation of how :term:`LICENSE_FLAGS` matching works. Here isthe
example::
LICENSE_FLAGS_WHITELIST= "commercial_gst-plugins-ugly"documentation/dev-manual/common-tasks.rst +0
-0@@ -10723,8 +10723,8 @@ License Flag MatchingLicense flag matching allows you to control what recipes the OpenEmbedded build system includes in the build. Fundamentally, the
documentation/dev-manual/common-tasks.rst +1
-2-build system attempts to match ``LICENSE_FLAGS`` strings found in -recipes against ``LICENSE_FLAGS_WHITELIST`` strings found in the +build system attempts to match :term:`LICENSE_FLAGS` strings foundin
+recipes against :term:LICENSE_FLAGS_WHITELISTstrings found in the
whitelist. A match causes the build system to include a recipe in the
build, while failure to find a match causes the build system to exclude
a recipe.documentation/dev-manual/common-tasks.rst +0
-0@@ -10734,14 +10734,14 @@ concepts will help you correctly andeffectively use matching.
Before a flag defined by a particular recipe is tested against the contents of the whitelist, the expanded string ``_${PN}`` is appended to
documentation/dev-manual/common-tasks.rst +1
-1-the flag. This expansion makes each ``LICENSE_FLAGS`` value +the flag. This expansion makes each :term:`LICENSE_FLAGS` valuerecipe-specific. After expansion, the string is then matched against the
whitelist. Thus, specifying ``LICENSE_FLAGS = "commercial"`` in recipe
"foo", for example, results in the string ``"commercial_foo"``. And, to
create a match, that string must appear in the whitelist.-Judicious use of the ``LICENSE_FLAGS`` strings and the contents of the
-``LICENSE_FLAGS_WHITELIST`` variable allows you a lot of flexibility for
+Judicious use of the :term:LICENSE_FLAGSstrings and the contents of the
+:term:LICENSE_FLAGS_WHITELISTvariable allows you a lot of flexibility for
including or excluding recipes based on licensing. For example, you can
broaden the matching capabilities by using license flags string subsets
in the whitelist.documentation/dev-manual/common-tasks.rst +0
-0@@ -10753,7 +10753,7 @@ in the whitelist.``usethispart_1.3``, ``usethispart_1.4``, and so forth).
For example, simply specifying the string "commercial" in the whitelist
-matches any expanded ``LICENSE_FLAGS`` definition that starts with the
+matches any expanded :term:LICENSE_FLAGSdefinition that starts with the
string "commercial" such as "commercial_foo" and "commercial_bar", which
are the strings the build system automatically generates for hypothetical recipes named "foo" and "bar" assuming those recipes simplydocumentation/dev-manual/common-tasks.rst +0
-0@@ -10767,7 +10767,7 @@ only specific recipes into the image, or youcan use a string subset
that causes a broader range of matches to allow a range of recipes into
the image.documentation/dev-manual/common-tasks.rst +1
-1-This scheme works even if the ``LICENSE_FLAGS`` string already has +This scheme works even if the :term:`LICENSE_FLAGS` string alreadyhas
``_${PN}`` appended. For example, the build system turns the license
flag "commercial_1.2_foo" into "commercial_1.2_foo_foo" and would match
both the general "commercial" and the specific "commercial_1.2_foo"documentation/dev-manual/common-tasks.rst +0
-0@@ -10814,14 +10814,14 @@ file::Of course, you could also create a matching whitelist for those components using the more general "commercial" in the whitelist, but
-that would also enable all the other packages with ``LICENSE_FLAGS``
+that would also enable all the other packages with :term:LICENSE_FLAGS
containing "commercial", which you may or may not want::
LICENSE_FLAGS_WHITELIST= "commercial"Specifying audio and video plugins as part of the ``COMMERCIAL_AUDIO_PLUGINS`` and ``COMMERCIAL_VIDEO_PLUGINS`` statements
documentation/dev-manual/common-tasks.rst +1
-1-(along with the enabling ``LICENSE_FLAGS_WHITELIST``) includes the +(along with the enabling :term:`LICENSE_FLAGS_WHITELIST`) includesthe
plugins or components into built images, thus adding support for media
formats or components.documentation/dev-manual/common-tasks.rst +0
-0@@ -10887,7 +10887,7 @@ accidental release of proprietary software.The Yocto Project provides
an :ref:archiver <ref-classes-archiver>class to help avoid some of these concerns.documentation/dev-manual/common-tasks.rst +1
-1-Before you employ ``DL_DIR`` or the ``archiver`` class, you need to +Before you employ :term:`DL_DIR` or the ``archiver`` class, youneed to
decide how you choose to provide source. The source ``archiver`` class
can generate tarballs and SRPMs and can create them with various levels
of compliance in mind.documentation/kernel-dev/advanced.rst +0
-0@@ -46,15 +46,15 @@ linux-yocto recipe.Every linux-yocto style recipe must define the :term:
KMACHINEvariable. This
-variable is typically set to the same value as the ``MACHINE`` variable,
+variable is typically set to the same value as the :term:MACHINEvariable,
which is used by :term:BitBake.
However, in some cases, the variable might instead refer to thedocumentation/kernel-dev/advanced.rst +1
-2-underlying platform of the ``MACHINE``. +underlying platform of the :term:`MACHINE`. -Multiple BSPs can reuse the same ``KMACHINE`` name if they arebuilt
+Multiple BSPs can reuse the same :term:KMACHINEname if they are built
using the same BSP description. Multiple Corei7-based BSPs could share
-the same "intel-corei7-64" value for ``KMACHINE``. It is important to
-realize that ``KMACHINE`` is just for kernel mapping, while ``MACHINE``
+the same "intel-corei7-64" value for :term:KMACHINE. It is important to
+realize that :term:KMACHINEis just for kernel mapping, while :term:MACHINE
is the machine type within a BSP Layer. Even with this distinction, however, these two variables can hold the same value. See the ":ref:kernel-dev/advanced:bsp descriptions" section for more information.documentation/kernel-dev/advanced.rst +0
-0@@ -66,7 +66,7 @@ to indicate the branch... note::
- You can use the ``KBRANCH`` value to define an alternate branch
typically
+ You can use the :term:KBRANCHvalue to define an alternate
branch typically
with a machine override as shown here from the
``meta-yocto-bsp`` layer::
KBRANCH_edgerouter= "standard/edgerouter"documentation/kernel-dev/advanced.rst +0
-0@@ -81,8 +81,8 @@ variables::term:
LINUX_KERNEL_TYPE
defines the kernel type to be used in assembling the configuration. If
-you do not specify a ``LINUX_KERNEL_TYPE``, it defaults to "standard".
-Together with ``KMACHINE``, ``LINUX_KERNEL_TYPE`` defines the search
+you do not specify a :term:LINUX_KERNEL_TYPE, it defaults to "standard".
+Together with :term:KMACHINE, :term:LINUX_KERNEL_TYPEdefines the search
arguments used by the kernel tools to find the appropriate description
within the kernel Metadata with which to build out the sources and configuration. The linux-yocto recipes define "standard", "tiny", anddocumentation/kernel-dev/advanced.rst +0
-0@@ -90,21 +90,21 @@ configuration. The linux-yocto recipes define"standard", "tiny", and
section for more information on kernel types.During the build, the kern-tools search for the BSP description file
-that most closely matches the ``KMACHINE`` and ``LINUX_KERNEL_TYPE``
+that most closely matches the :term:KMACHINEand :term:LINUX_KERNEL_TYPE
variables passed in from the recipe. The tools use the first BSP description they find that matches both variables. If the tools cannot find
a match, they issue a warning.-The tools first search for the ``KMACHINE`` and then for the -``LINUX_KERNEL_TYPE``. If the tools cannot find a partial match, they
documentation/kernel-dev/advanced.rst +2
-1-will use the sources from the ``KBRANCH`` and any configuration +The tools first search for the :term:`KMACHINE` and then for the +:term:`LINUX_KERNEL_TYPE`. If the tools cannot find a partialmatch, they
+will use the sources from the :term:KBRANCHand any configuration specified in the :term:SRC_URI.You can use the
:term:KERNEL_FEATURES
variable to include features (configuration fragments, patches, or both)
-that are not already included by the ``KMACHINE`` and -``LINUX_KERNEL_TYPE`` variable combination. For example, to include a
+that are not already included by the :term:KMACHINEand +:term:LINUX_KERNEL_TYPEvariable combination. For example, to include a
feature specified as "features/netfilter/netfilter.scc", specify::
KERNEL_FEATURES+= "features/netfilter/netfilter.scc"documentation/kernel-dev/advanced.rst +0
-0@@ -116,7 +116,7 @@ specify::
KERNEL_FEATURES_append_qemux86= " cfg/sound.scc"The value of
documentation/kernel-dev/advanced.rst +1
-1-the entries in ``KERNEL_FEATURES`` are dependent on their location +the entries in :term:`KERNEL_FEATURES` are dependent on theirlocation
within the kernel Metadata itself. The examples here are taken from the
``yocto-kernel-cache`` repository. Each branch of this repository contains "features" and "cfg" subdirectories at the top-level. For moredocumentation/kernel-dev/advanced.rst +0
-0@@ -344,7 +344,7 @@ as how an additional feature description file isincluded with the
Typically, features are less granular than configuration fragments and
are more likely than configuration fragments and patches to be the types
-of things you want to specify in the ``KERNEL_FEATURES`` variable of the
+of things you want to specify in the :term:KERNEL_FEATURESvariable of the
Linux kernel recipe. See the ":ref:kernel-dev/advanced:using kernel metadata in a recipe" section earlier
in the manual.documentation/kernel-dev/advanced.rst +0
-0@@ -509,12 +509,12 @@ description as meeting the criteria set by therecipe being built. This
example supports the "beaglebone" machine for the "standard" kernel and
the "arm" architecture.-Be aware that there is no hard link between the ``KTYPE`` variable and a kernel
+Be aware that there is no hard link between the :term:KTYPEvariable and a kernel
type description file. Thus, if you do not have the kernel type defined in your kernel Metadata as it is here, you only need
to ensure that the
:term:LINUX_KERNEL_TYPEdocumentation/kernel-dev/advanced.rst +1
-1-variable in the kernel recipe and the ``KTYPE`` variable in the BSP +variable in the kernel recipe and the :term:`KTYPE` variable in theBSP
description file match.To separate your kernel policy from your hardware configuration, you
documentation/kernel-dev/advanced.rst +0
-0@@ -657,7 +657,7 @@ Notice again the three critical variables: :term:`KMACHINE`,:term:
KTYPE, and
:term:KARCH. Of these variables, only
-``KTYPE`` has changed to specify the "tiny" kernel type. +:term:KTYPEhas changed to specify the "tiny" kernel type.Kernel Metadata Location
========================documentation/kernel-dev/advanced.rst +0
-0@@ -693,7 +693,7 @@ directory hierarchy belowa linux-yocto recipe or for a Linux kernel recipe derived by copying and
modifying ``oe-core/meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb [11]`` todocumentation/kernel-dev/advanced.rst +1
-1-a recipe in your layer, ``FILESEXTRAPATHS`` is typically set to +a recipe in your layer, :term:`FILESEXTRAPATHS` is typically set to``${``\ :term:
THISDIR\ ``}/${``\ :term:PN\ ``}``. See the ":ref:kernel-dev/common:modifying an existing recipe" section for more information.documentation/kernel-dev/advanced.rst +0
-0@@ -718,10 +718,10 @@ and fetches any files referenced in the``.scc`` files by the
``include``, ``patch``, or ``kconf`` commands. Because of this, it is
necessary to bump the recipe :term:PR
value when changing the content of files not explicitly listed in the
-``SRC_URI``.
+:term:SRC_URI.If the BSP description is in recipe space, you cannot simply list the
-``*.scc`` in the ``SRC_URI`` statement. You need to use the following
+``*.scc`` in the :term:SRC_URIstatement. You need to use the following
form from your kernel append file::
SRC_URI_append_myplatform= " \documentation/kernel-dev/advanced.rst +0
-0@@ -735,7 +735,7 @@ When stored outside of the recipe-space, thekernel Metadata files
reside in a separate repository. The OpenEmbedded build system adds the
Metadata to the build as a "type=kmeta" repository through the :term:SRC_URIvariable. As andocumentation/kernel-dev/advanced.rst +1
-1-example, consider the following ``SRC_URI`` statement from the +example, consider the following :term:`SRC_URI` statement from the``linux-yocto_4.12.bb [12]`` kernel recipe::
Quoted 2 lines
SRC_URI="
git://git.yoctoproject.org/linux-yocto-4.12.git;name=machine;branch=${KBRANCH}Quoted 214 lines
[13]; \
documentation/kernel-dev/advanced.rst +0
-0@@ -744,20 +744,20 @@ example, consider the following ``SRC_URI``statement from the
``${KMETA}``, in this context, is simply used to name the directory into
which the Git fetcher places the Metadata. This behavior is no different
-than any multi-repository ``SRC_URI`` statement used in a recipe (e.g.
+than any multi-repository :term:SRC_URIstatement used in a recipe (e.g.
see the previous section).You can keep kernel Metadata in a "kernel-cache", which is a directory
containing configuration fragments. As with any Metadata kept outside
-the recipe-space, you simply need to use the ``SRC_URI`` statement with
+the recipe-space, you simply need to use the :term:SRC_URIstatement with
the "type=kmeta" attribute. Doing so makes the kernel Metadata available
during the configuration phase.-If you modify the Metadata, you must not forget to update the ``SRCREV``
+If you modify the Metadata, you must not forget to update the :term:SRCREV
statements in the kernel's recipe. In particular, you need to update the
``SRCREV_meta`` variable to match the commit in the ``KMETA`` branch you
wish to use. Changing the data in these branches and not updating the
-``SRCREV`` statements to match will cause the build to fetch an older
+:term:SRCREVstatements to match will cause the build to fetch an older
commit.Organizing Your Source
documentation/kernel-dev/advanced.rst +0
-0@@ -820,7 +820,7 @@ patches into a feature.Once you have a new branch, you can set up your kernel Metadata to use
the branch a couple different ways. In the recipe, you can specify thedocumentation/kernel-dev/advanced.rst +1
-1-new branch as the ``KBRANCH`` to use for the board as follows:: +new branch as the :term:`KBRANCH` to use for the board as follows::KBRANCH = "mynewbranch"
documentation/kernel-dev/common.rst +0
-0@@ -70,7 +70,7 @@ section::term:
MACHINEvariable is set to
"qemux86-64", which is fine if you are building for the QEMU emulator
in 64-bit mode. However, if you are not, you need to set the
- ``MACHINE`` variable appropriately in your ``conf/local.conf``
file
+ :term:MACHINEvariable appropriately in your
``conf/local.conf`` file
found in the
:term:Build Directory(i.e.
``poky/build`` in this example).documentation/kernel-dev/common.rst +0
-0@@ -248,7 +248,7 @@ section::term:
MACHINEvariable is set to
"qemux86-64", which is fine if you are building for the QEMU emulator
in 64-bit mode. However, if you are not, you need to set the
- ``MACHINE`` variable appropriately in your ``conf/local.conf``
file
+ :term:MACHINEvariable appropriately in your
``conf/local.conf`` file
found in the
:term:Build Directory(i.e.
``poky/build`` in this example).documentation/kernel-dev/common.rst +0
-0@@ -474,7 +474,7 @@ variable as follows::The path ``${``\ :term:
THISDIR\ ``}/${``\ :term:PN\ ``}`` expands to "linux-yocto" in the current directory for this example. If
you add any new files that modify the kernel recipe and you have -extended ``FILESPATH`` as described above, you must place the files in
+extended :term:FILESPATHas described above, you must place the files in
your layer in the following area::your-layer/recipes-kernel/linux/linux-yocto/
documentation/kernel-dev/common.rst +0
-0@@ -553,7 +553,7 @@ the append file.For example, suppose you had some configuration options in a file called
``network_configs.cfg``. You can place that file inside a directory -named ``linux-yocto`` and then add a ``SRC_URI`` statement such as the
+named ``linux-yocto`` and then add a :term:SRC_URIstatement such as the
following to the append file. When the OpenEmbedded build system builds
the kernel, the configuration options are picked up and applied. ::documentation/kernel-dev/common.rst +0
-0@@ -563,7 +563,7 @@ the kernel, the configuration options are pickedup and applied.
To group related configurations into multiple files, you perform a similar procedure. Here is an example that groups separate configurations specifically for Ethernet and graphics into their own
-files and adds the configurations by using a ``SRC_URI`` statement like
+files and adds the configurations by using a :term:SRC_URIstatement like
the following in your append file::
SRC_URI+= "file://myconfig.cfg \documentation/kernel-dev/common.rst +0
-0@@ -643,7 +643,7 @@ following lines to the linux-yocto ``.bbappend``file in your layer::
FILESEXTRAPATHS_prepend:= "${THISDIR}/${PN}:"SRC_URI+= "file://defconfig"documentation/kernel-dev/common.rst +1
-1-The ``SRC_URI`` tells the build system how to search +The :term:`SRC_URI` tells the build system how to searchfor the file, while the
:term:FILESEXTRAPATHS
extends the :term:FILESPATHdocumentation/kernel-dev/common.rst +0
-0@@ -684,7 +684,7 @@ with the following content (withoutindentation)::
CONFIG_SERIAL_CORE_CONSOLE=yNext, include this
-configuration fragment and extend the ``FILESPATH`` variable in your
+configuration fragment and extend the :term:FILESPATHvariable in your
``.bbappend`` file::
FILESEXTRAPATHS_prepend:= "${THISDIR}/${PN}:"documentation/kernel-dev/common.rst +0
-0@@ -722,7 +722,7 @@ form::
KBUILD_DEFCONFIG_KMACHINE?= "defconfig_file"Here is an example
-that assigns the ``KBUILD_DEFCONFIG`` variable based on "raspberrypi2"
+that assigns the :term:KBUILD_DEFCONFIGvariable based on "raspberrypi2"
and provides the path to the "in-tree" ``defconfig`` file to be used for
a Raspberry Pi 2, which is based on the Broadcom 2708/2709 chipset::documentation/kernel-dev/common.rst +0
-0@@ -734,7 +734,7 @@ Aside from modifying your kernel recipe andproviding your own
a kernel's ``linux-``\machine\ ``.inc`` file). In other words, if the
build system detects a statement that identifies an "out-of-tree" ``defconfig`` file, that statement will override your -``KBUILD_DEFCONFIG`` variable. +:term:KBUILD_DEFCONFIGvariable.See the
:term:KBUILD_DEFCONFIGdocumentation/kernel-dev/common.rst +0
-0@@ -1349,10 +1349,10 @@ be picked up and applied when the kernel isbuilt::
SRC_URI+= "file://myconfig.cfg"As mentioned earlier, you can group related configurations into multiple
documentation/kernel-dev/common.rst +1
-1-files and name them all in the ``SRC_URI`` statement as well. For +files and name them all in the :term:`SRC_URI` statement as well.For
example, you could group separate configurations specifically for Ethernet and graphics into their own files and add those by using a -``SRC_URI`` statement like the following in your append file::
+:term:SRC_URIstatement like the following in your append file::
SRC_URI+= "file://myconfig.cfg \
file://eth.cfg \documentation/kernel-dev/common.rst +0
-0@@ -1628,11 +1628,11 @@ Here are some basic steps you can use towork with your own sources:
appropriate for your project:documentation/kernel-dev/common.rst +0
-2- :term:`SRC_URI`: The - ``SRC_URI`` should specify a Git repository that uses one ofthe
+ :term:SRC_URIshould specify a Git repository that uses one
of the
supported Git fetcher protocols (i.e. ``file``, ``git``, ``http``,
- and so forth). The ``SRC_URI`` variable should also specify
either
+ and so forth). The :term:SRC_URIvariable should also
specify either
a ``defconfig`` file or some configuration fragment files. Thedocumentation/kernel-dev/common.rst +1
-1- skeleton recipe provides an example ``SRC_URI`` as a syntax + skeleton recipe provides an example :term:`SRC_URI` as asyntax
reference.documentation/kernel-dev/common.rst +0
-1- :term:`LINUX_VERSION`:@@ -1650,16 +1650,16 @@ Here are some basic steps you can use towork with your own sources:
indicate to the OpenEmbedded build system that the recipe has changed.documentation/kernel-dev/common.rst +1
-1- - :term:`PV`: The default ``PV`` + - :term:`PV`: The default :term:`PV`assignment is typically adequate. It combines the
Quoted 11 lines
- ``LINUX_VERSION`` with the Source Control Manager (SCM)
revision
+ :term:LINUX_VERSIONwith the Source Control Manager (SCM)
revision
as derived from the :term:SRCPV
variable. The combined results are a string with the following
form::3.19.11+git1+68a635bf8dfb64b02263c1ac80c948647cc76d5f_1+218bd8d2022b9852c60d32f0d770931e3cf343e2
Quoted 1,453 lines
- While lengthy, the extra verbosity in ``PV`` helps ensure you
are
+ While lengthy, the extra verbosity in :term:PVhelps ensure
you are
using the exact sources from which you intend to build.documentation/kernel-dev/common.rst +0
-1- :term:`COMPATIBLE_MACHINE`:@@ -1773,7 +1773,7 @@ information to build modules. If your module``Makefile`` uses a
different variable, you might want to override the :ref:ref-tasks-compilestep, or
create a patch to the ``Makefile`` to work with the more typical -``KERNEL_SRC`` or ``KERNEL_PATH`` variables. +:term:KERNEL_SRCor :term:KERNEL_PATHvariables.After you have prepared your recipe, you will likely want to include the
module in your images. To do this, see the documentation for thedocumentation/kernel-dev/common.rst +0
-0@@ -1886,23 +1886,23 @@ build stops. Kernel features are the lastelements processed for
configuring and patching the kernel. Therefore, adding features in this
manner is a way to enforce specific features are present and enabled
without needing to do a full audit of any other layer's additions to the
-``SRC_URI`` statement.
+:term:SRC_URIstatement.You add a kernel feature by providing the feature as part of the -``KERNEL_FEATURES`` variable and by providing the path to the feature's
+:term:KERNEL_FEATURESvariable and by providing the path to the feature's
``.scc`` file, which is relative to the root of the kernel Metadata. The
OpenEmbedded build system searches all forms of kernel Metadata on the
-``SRC_URI`` statement regardless of whether the Metadata is in the +:term:SRC_URIstatement regardless of whether the Metadata is in the
"kernel-cache", system kernel Metadata, or a recipe-space Metadata (i.e.
part of the kernel recipe). See the ":ref:kernel-dev/advanced:kernel metadata location" section for additional information.documentation/kernel-dev/common.rst +1
-1-When you specify the feature's ``.scc`` file on the ``SRC_URI`` +When you specify the feature's ``.scc`` file on the :term:`SRC_URI`statement, the OpenEmbedded build system adds the directory of that ``.scc`` file along with all its subdirectories to the kernel feature
search path. Because subdirectories are searched, you can reference a
-single ``.scc`` file in the ``SRC_URI`` statement to reference multiple
+single ``.scc`` file in the :term:SRC_URIstatement to reference multiple
kernel features.Consider the following example that adds the "test.scc" feature to the
documentation/kernel-dev/common.rst +0
-0@@ -1910,7 +1910,7 @@ build.1. *Create the Feature File:* Create a ``.scc`` file and locate it just
as you would any other patch file, ``.cfg`` file, or fetcher item youdocumentation/kernel-dev/common.rst +1
-1- specify in the ``SRC_URI`` statement. + specify in the :term:`SRC_URI` statement... note::
documentation/kernel-dev/common.rst +0
-0@@ -1937,7 +1937,7 @@ build.a similarly named configuration fragment file ``test.cfg``.
2. *Add the Feature File to SRC_URI:* Add the ``.scc`` file to the
documentation/kernel-dev/common.rst +1
-1- recipe's ``SRC_URI`` statement:: + recipe's :term:`SRC_URI` statement::
SRC_URI_append= " file://test.scc"documentation/kernel-dev/common.rst +0
-0@@ -1945,7 +1945,7 @@ build.appended to the existing path.
3. *Specify the Feature as a Kernel Feature:* Use the
documentation/kernel-dev/common.rst +1
-1- ``KERNEL_FEATURES`` statement to specify the feature as a kernel + :term:`KERNEL_FEATURES` statement to specify the feature as akernel
feature::
KERNEL_FEATURES_append= " test.scc"documentation/kernel-dev/faq.rst +0
-1@@ -68,7 +68,7 @@ How do I change the Linux kernel command line? ----------------------------------------------The Linux kernel command line is
-typically specified in the machine config using the ``APPEND`` variable.
+typically specified in the machine config using the :term:APPENDvariable.
For example, you can add some helpful debug information doing the following::documentation/kernel-dev/maint-appx.rst +0
-0@@ -104,7 +104,7 @@ patch, or BSP:repository organized under the "Yocto Linux Kernel" heading in the
:yocto_git:Yocto Project Source Repositories <>.- - Areas pointed to by ``SRC_URI`` statements found in kernel
recipes.
+ - Areas pointed to by :term:SRC_URIstatements found in
kernel recipes.For a typical build, the target of the search is a feature description in an ``.scc`` file whose name follows this format (e.g.
documentation/overview-manual/concepts.rst +0
-0@@ -332,7 +332,7 @@ created by an autobuilder:One useful scenario for using the ``conf/site.conf`` file is to extend your :term:
BBPATHvariable
to include the path to a ``conf/site.conf``. Then, when BitBake looks
- for Metadata using ``BBPATH``, it finds the ``conf/site.conf``
file
+ for Metadata using :term:BBPATH, it finds the
``conf/site.conf`` file
and applies your common configurations found in the file. To override
configurations in a particular build directory, alter the similar
configurations within that build directory's ``conf/local.conf``documentation/overview-manual/concepts.rst +0
-0@@ -532,7 +532,7 @@ to build software. A combination of the two isalso possible.
BitBake uses the :term:
SRC_URI
variable to point to source files regardless of their location. Eachdocumentation/overview-manual/concepts.rst +1
-1-recipe must have a ``SRC_URI`` variable that points to the source. +recipe must have a :term:`SRC_URI` variable that points to thesource.
Another area that plays a significant role in where source files come
from is pointed to by thedocumentation/overview-manual/concepts.rst +0
-0@@ -540,13 +540,13 @@ from is pointed to by thea cache that can hold previously downloaded source. You can also instruct the OpenEmbedded build system to create tarballs from Git repositories, which is not the default behavior, and store them in the
-``DL_DIR`` by using the
+:term:DL_DIRby using the :term:BB_GENERATE_MIRROR_TARBALLS
variable.-Judicious use of a ``DL_DIR`` directory can save the build system a trip
+Judicious use of a :term:DL_DIRdirectory can save the build system a trip
across the Internet when looking for files. A good method for using a
-download directory is to have ``DL_DIR`` point to an area outside of
+download directory is to have :term:DL_DIRpoint to an area outside of
your Build Directory. Doing so allows you to safely delete the Build
Directory if needed without fear of removing any downloaded source file.documentation/overview-manual/concepts.rst +0
-0@@ -747,7 +747,7 @@ Build Directory's hierarchy:architecture of the built package or packages. Depending on the eventual destination of the package or packages (i.e. machine architecture, :term:
Build Host, SDK, ordocumentation/overview-manual/concepts.rst +1
-1- specific machine), ``PACKAGE_ARCH`` varies. See the variable's + specific machine), :term:`PACKAGE_ARCH` varies. See thevariable's
description for details.documentation/overview-manual/concepts.rst +0
-2- :term:`TARGET_OS`: The operating@@ -756,7 +756,7 @@ Build Directory's hierarchy: - :term:`PN`: The name of the recipe usedto build the package. This variable can have multiple meanings.
- However, when used in the context of input files, ``PN``
represents
+ However, when used in the context of input files, :term:PN
represents
the name of the recipe.documentation/overview-manual/concepts.rst +0
-1- :term:`WORKDIR`: The location@@ -773,7 +773,7 @@ Build Directory's hierarchy:files for a given recipe.
documentation/overview-manual/concepts.rst +0
-2- :term:`BPN`: The name of the recipe - used to build the package. The ``BPN`` variable is a versionof
+ used to build the package. The :term:BPNvariable is a
version of
the ``PN`` variable but with common prefixes and suffixes removed.documentation/overview-manual/concepts.rst +0
-1- :term:`PV`: The version of the@@ -803,13 +803,13 @@ and the :term:`FILESPATH` variableto locate applicable patch files.
Default processing for patch files assumes the files have either -``*.patch`` or ``*.diff`` file types. You can use ``SRC_URI`` parameters
+``*.patch`` or ``*.diff`` file types. You can use :term:SRC_URIparameters
to change the way the build system recognizes patch files. See the :ref:ref-tasks-patchtask for more
information.BitBake finds and applies multiple patches for a single recipe in the
documentation/overview-manual/concepts.rst +1
-1-order in which it locates the patches. The ``FILESPATH`` variable +order in which it locates the patches. The :term:`FILESPATH`variable
defines the default set of directories that the build system uses to
search for patch files. Once found, patches are applied to the recipe's
source files, which are located in thedocumentation/overview-manual/concepts.rst +0
-0@@ -877,12 +877,12 @@ This step in the build process consists of thefollowing tasks:
:ref:ref-tasks-compiletask.
Compilation occurs in the directory pointed to by the :term:Bvariable. Realize that thedocumentation/overview-manual/concepts.rst +1
-1- ``B`` directory is, by default, the same as the + :term:`B` directory is, by default, the same as the:term:
Sdirectory.- *do_install*: After compilation completes, BitBake executes the :ref:
ref-tasks-installtask.
- This task copies files from the ``B`` directory and places them
in a
+ This task copies files from the :term:Bdirectory and places
them in a
holding area pointed to by the :term:D
variable. Packaging occurs later using files from this holding directory.documentation/overview-manual/concepts.rst +0
-0@@ -928,7 +928,7 @@ the analysis and package splitting process useseveral areas:
- :term:PKGDATA_DIR: A shared,
global-state directory that holds packaging metadata generated during
the packaging process. The packaging process copies metadata from
- ``PKGDESTWORK`` to the ``PKGDATA_DIR`` area where it becomes
globally
+ :term:PKGDESTWORKto the :term:PKGDATA_DIRarea where it
becomes globally
available.documentation/overview-manual/concepts.rst +0
-1- :term:`STAGING_DIR_HOST`:@@ -1008,7 +1008,7 @@ actually install:With :term:
IMAGE_ROOTFS
pointing to the location of the filesystem under construction and the
-``PACKAGE_INSTALL`` variable providing the final list of packages to
+:term:PACKAGE_INSTALLvariable providing the final list of packages to
install, the root file system is created.Package installation is under control of the package manager (e.g.
documentation/overview-manual/concepts.rst +0
-0@@ -1057,7 +1057,7 @@ based on the image types specified in theThe process turns everything into an image file or a set of image files
and can compress the root filesystem image to reduce the overall size of
the image. The formats used for the root filesystem depend on the -``IMAGE_FSTYPES`` variable. Compression depends on whether the formats
+:term:IMAGE_FSTYPESvariable. Compression depends on whether the formats
support compression.As an example, a dynamically created task when creating a particular
documentation/overview-manual/concepts.rst +0
-0@@ -1066,7 +1066,7 @@ image type would take the following form::
do_image_typeSo, if the type
-as specified by the ``IMAGE_FSTYPES`` were ``ext4``, the dynamically
+as specified by the :term:IMAGE_FSTYPESwere ``ext4``, the dynamically
generated task would be as follows::
do_image_ext4documentation/overview-manual/concepts.rst +0
-0@@ -1171,9 +1171,9 @@ the task is rerun.the sstate cache mechanism adds is a way to cache task output that
can then be shared between build machines.-Since ``STAMPS_DIR`` is usually a subdirectory of ``TMPDIR``, removing
-``TMPDIR`` will also remove ``STAMPS_DIR``, which means tasks willdocumentation/overview-manual/concepts.rst +1
-1-properly be rerun to repopulate ``TMPDIR``. +Since :term:`STAMPS_DIR` is usually a subdirectory of:term:
TMPDIR, removing
+:term:TMPDIRwill also remove :term:STAMPS_DIR, which means tasks will
+properly be rerun to repopulate :term:TMPDIR.If you want some task to always be considered "out of date", you can
mark it with the :ref:nostamp <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:variable flags>documentation/overview-manual/concepts.rst +0
-0@@ -1408,7 +1408,7 @@ This next list, shows the variables associatedwith a standard SDK:
- :term:
TOOLCHAIN_HOST_TASK:
Lists packages that make up the host part of the SDK (i.e. the partdocumentation/overview-manual/concepts.rst +1
-1- that runs on the ``SDKMACHINE``). When you use + that runs on the :term:`SDKMACHINE`). When you use``bitbake -c
populate_sdkimagename`` to create the SDK, a set of
default packages apply. This variable allows you to add more packages.documentation/overview-manual/concepts.rst +0
-0@@ -1614,7 +1614,7 @@ them if they are deemed to be valid.:term:
PRinformation as part of
the shared state packages. Consequently, there are considerations that
affect maintaining shared state feeds. For information on how the
- build system works with packages and can track incrementing
``PR``
+ build system works with packages and can track incrementing
:term:PR
information, see the ":ref:dev-manual/common-tasks:automatically incrementing a package version number"
section in the Yocto Project Development Tasks Manual.documentation/overview-manual/concepts.rst +0
-0@@ -1671,8 +1671,8 @@ objective of making native or cross packagesrelocatable.
build host. However, cross packages generate output for the target
architecture.documentation/overview-manual/concepts.rst +0
-2-The checksum therefore needs to exclude ``WORKDIR``. The simplistic -approach for excluding the work directory is to set ``WORKDIR`` tosome
+The checksum therefore needs to exclude :term:WORKDIR. The simplistic
+approach for excluding the work directory is to set :term:WORKDIRto some
fixed value and create the checksum for the "run" script.Another problem results from the "run" scripts containing functions that
documentation/overview-manual/concepts.rst +0
-0@@ -1690,7 +1690,7 @@ contains code that first figures out thevariable and function
dependencies, and then creates a checksum for the data used as the input
to the task.-Like the ``WORKDIR`` case, there can be situations where dependencies should be
+Like the :term:WORKDIRcase, there can be situations where dependencies should be
ignored. For these situations, you can instruct the build process to
ignore a dependency by using a line like the following::documentation/overview-manual/concepts.rst +0
-0@@ -1707,7 +1707,7 @@ following::PACKAGE_ARCHS[vardeps] = "MACHINE"
This example explicitly
-adds the ``MACHINE`` variable as a dependency for ``PACKAGE_ARCHS``.
+adds the :term:MACHINEvariable as a dependency for :term:PACKAGE_ARCHS.As an example, consider a case with in-line Python where BitBake is not
able to figure out dependencies. When running in debug mode (i.e. usingdocumentation/overview-manual/concepts.rst +0
-0@@ -1761,7 +1761,7 @@ through this setting in the ``bitbake.conf``file::
BB_SIGNATURE_HANDLER?= "OEBasicHash"documentation/overview-manual/concepts.rst +1
-1-The "OEBasicHash" ``BB_SIGNATURE_HANDLER`` is the same +The "OEBasicHash" :term:`BB_SIGNATURE_HANDLER` is the sameas the "OEBasic" version but adds the task hash to the :ref:
stamp files <overview-manual/concepts:stamp files and the rerunning of tasks>. This
results in any metadata change that changes the task hash, automatically causingdocumentation/overview-manual/concepts.rst +0
-1@@ -1782,7 +1782,7 @@ the build. This information includes: - ``BBHASHDEPS_``\ filename\ ``:``\ taskname: The taskdependencies for
each task.-- ``BB_TASKHASH``: The hash of the currently running task. +- :term:
BB_TASKHASH: The hash of the currently running task.Shared State
------------documentation/overview-manual/concepts.rst +0
-0@@ -1851,7 +1851,7 @@ The following list explains the previousexample:
``do_deploy`` is in the shared state cache and its signature indicates
that the cached output is still valid (i.e. if no relevant task inputs
have changed), then the contents of the shared state cache copies
- directly to ${``DEPLOY_DIR_IMAGE``} by the
``do_deploy_setscene`` task
+ directly to ${:term:DEPLOY_DIR_IMAGE} by the
``do_deploy_setscene`` task
instead, skipping the ``do_deploy`` task.documentation/overview-manual/concepts.rst +0
-1- The following task definition is glue logic needed to make the@@ -1897,8 +1897,8 @@ The following list explains the previousexample:
- ``sstate-inputdirs`` and ``sstate-outputdirs`` can also be used with
multiple directories. For example, the following declares
- ``PKGDESTWORK`` and ``SHLIBWORK`` as shared state input
directories,documentation/overview-manual/concepts.rst +1
-1- which populates the shared state cache, and ``PKGDATA_DIR`` and + :term:`PKGDESTWORK` and ``SHLIBWORK`` as shared state inputdirectories,
+ which populates the shared state cache, and :term:PKGDATA_DIR
and
``SHLIBSDIR`` as the corresponding shared state output directories::do_package[sstate-inputdirs] = "${PKGDESTWORK}
${SHLIBSWORKDIR}"documentation/overview-manual/concepts.rst +0
-0@@ -1925,7 +1925,7 @@ shared state files. Here is an example::subdirectories, where the subdirectory names are based on the first two
characters of the hash.
If the shared state directory structure for a mirror has the same structure
- as ``SSTATE_DIR``, you must specify "PATH" as part of the URI to
enable the build
+ as :term:SSTATE_DIR, you must specify "PATH" as part of the
URI to enable the build
system to map to the appropriate subdirectory.The shared state package validity can be detected just by looking at the
documentation/overview-manual/concepts.rst +0
-0@@ -1976,7 +1976,7 @@ dependencies, you must manually declare thedependencies.
Simultaneously, all executables and shared libraries installed by the
recipe are inspected to see what shared libraries they link against.
- For each shared library dependency that is found,
``PKGDATA_DIR`` is
+ For each shared library dependency that is found,
:term:PKGDATA_DIRis
queried to see if some package (likely from a different recipe) contains the shared library. If such a package is found, a runtime
dependency is added from the package that depends on the shareddocumentation/overview-manual/concepts.rst +0
-0@@ -1985,7 +1985,7 @@ dependencies, you must manually declare thedependencies.
The automatically added runtime dependency also includes a version
restriction. This version restriction specifies that at least the
current version of the package that provides the shared library must
- be used, as if "package (>= version)" had been added to
``RDEPENDS``.
+ be used, as if "package (>= version)" had been added to
:term:RDEPENDS.
This forces an upgrade of the package containing the shared library
when installing the package that depends on the library, if needed.documentation/overview-manual/concepts.rst +0
-0@@ -1999,14 +1999,14 @@ dependencies, you must manually declare thedependencies.
pkg-config modules (``*.pc`` files) installed by the recipe are located. For each module, the package that contains the module is
registered as providing the module. The resulting module-to-packagedocumentation/overview-manual/concepts.rst +1
-1- mapping is saved globally in ``PKGDATA_DIR`` by the + mapping is saved globally in :term:`PKGDATA_DIR` by the``do_packagedata`` task.
Simultaneously, all pkg-config modules installed by the recipe are
inspected to see what other pkg-config modules they depend on. A module is seen as depending on another module if it contains a "Requires:" line that specifies the other module. For each moduledocumentation/overview-manual/concepts.rst +1
-1- dependency, ``PKGDATA_DIR`` is queried to see if some package + dependency, :term:`PKGDATA_DIR` is queried to see if somepackage
contains the module. If such a package is found, a runtime dependency
is added from the package that depends on the module to the package
that contains the module.documentation/overview-manual/concepts.rst +0
-0@@ -2046,7 +2046,7 @@ recipe in :term:`DEPENDS` through useof a ``[``\ :ref:
deptask <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:variable flags>\ ``]``
declaration, which guarantees that the required shared-library/module-to-package mapping information will be availabledocumentation/overview-manual/concepts.rst +1
-1-when needed as long as ``DEPENDS`` has been correctly set. +when needed as long as :term:`DEPENDS` has been correctly set.Fakeroot and Pseudo
===================documentation/ref-manual/classes.rst +0
-0@@ -50,7 +50,7 @@ splitting out of debug symbols during packaging).``do_package_write_*`` tasks to
have different signatures for the machines with different tunings.
Additionally, unnecessary rebuilds occur every time an image for a
- different ``MACHINE`` is built even when the recipe never
changes.
+ different :term:MACHINEis built even when the recipe never
changes.By default, all recipes inherit the :ref:
base <ref-classes-base>and
:ref:package <ref-classes-package>classes, which enabledocumentation/ref-manual/classes.rst +0
-0@@ -110,7 +110,7 @@ It's useful to have some idea of how the tasksdefined by the
- :ref:ref-tasks-configure- Regenerates the configure script (using ``autoreconf``) and then launches it with a
standard set of arguments used during cross-compilation. You can pass
- additional parameters to ``configure`` through the
``EXTRA_OECONF``
+ additional parameters to ``configure`` through the
:term:EXTRA_OECONF
or :term:PACKAGECONFIG_CONFARGS
variables.documentation/ref-manual/classes.rst +0
-0@@ -168,7 +168,7 @@ example use for this class.the "subpath" parameter limits the checkout to a specific subpath
of the tree. Here is an example where ``${BP}`` is used so that the files
are extracted into the subdirectory expected by the default value ofdocumentation/ref-manual/classes.rst +1
-1- ``S``:: + :term:`S`::
SRC_URI= "git://example.com/downloads/somepackage.rpm;subpath=${BP}[14]"documentation/ref-manual/classes.rst +0
-0@@ -256,7 +256,7 @@ Collecting build statistics is enabled bydefault through the
:term:USER_CLASSESvariable from your
``local.conf`` file. Consequently, you do not have to do anything to
enable the class. However, if you want to disable the class, simplydocumentation/ref-manual/classes.rst +1
-1-remove "buildstats" from the ``USER_CLASSES`` list. +remove "buildstats" from the :term:`USER_CLASSES` list... _ref-classes-buildstats-summary:
documentation/ref-manual/classes.rst +0
-0@@ -448,7 +448,7 @@ deployed to :term:`DEPLOYDIR`, and use``addtask`` to
add the task at the appropriate place, which is usually after :ref:ref-tasks-compileor :ref:ref-tasks-install. The class then takes care ofdocumentation/ref-manual/classes.rst +1
-1-staging the files from ``DEPLOYDIR`` to ``DEPLOY_DIR_IMAGE``. +staging the files from :term:`DEPLOYDIR` to:term:
DEPLOY_DIR_IMAGE... _ref-classes-devshell:
documentation/ref-manual/classes.rst +0
-0@@ -489,7 +489,7 @@ The classcurrently only supports creating a development variant of the target
recipe, not ``native`` or ``nativesdk`` variants.documentation/ref-manual/classes.rst +1
-1-The ``BBCLASSEXTEND`` syntax (i.e. ``devupstream:target``) provides +The :term:`BBCLASSEXTEND` syntax (i.e. ``devupstream:target``)provides
support for ``native`` and ``nativesdk`` variants. Consequently, this
functionality can be added in a future release.documentation/ref-manual/classes.rst +0
-0@@ -534,13 +534,13 @@ and to build it, respectively. When yourrecipe inherits the
``externalsrc`` class, you use the
:term:EXTERNALSRCand
:term:EXTERNALSRC_BUILDvariables todocumentation/ref-manual/classes.rst +1
-1-ultimately define ``S`` and ``B``. +ultimately define :term:`S` and :term:`B`.By default, this class expects the source code to support recipe builds
that use the :term:Bvariable to point to the directory in which the OpenEmbedded build system places the generated objects builtdocumentation/ref-manual/classes.rst +2
-2-from the recipes. By default, the ``B`` directory is set to the -following, which is separate from the source directory (``S``):: +from the recipes. By default, the :term:`B` directory is set to the +following, which is separate from the source directory(:term:
S)::${WORKDIR}/${BPN}/{PV}/
documentation/ref-manual/classes.rst +0
-0@@ -704,8 +704,8 @@ introspection. This functionality is onlyenabled if the
.. note::This functionality is backfilled by default and, if not applicable,
- should be disabled through
``DISTRO_FEATURES_BACKFILL_CONSIDERED`` ordocumentation/ref-manual/classes.rst +1
-1- ``MACHINE_FEATURES_BACKFILL_CONSIDERED``, respectively. + should be disabled through:term:
DISTRO_FEATURES_BACKFILL_CONSIDEREDor
+ :term:MACHINE_FEATURES_BACKFILL_CONSIDERED, respectively... _ref-classes-grub-efi:
documentation/ref-manual/classes.rst +0
-0@@ -853,7 +853,7 @@ using an empty :term:`PARALLEL_MAKE` variable.Inheriting the ``icecc`` class changes all sstate signatures. Consequently, if a development team has a dedicated build system that
populates :term:SSTATE_MIRRORSand they want to
-reuse sstate from ``SSTATE_MIRRORS``, then all developers and the build
+reuse sstate from :term:SSTATE_MIRRORS, then all developers and the build
system need to either inherit the ``icecc`` class or nobody should.At the distribution level, you can inherit the ``icecc`` class to be
documentation/ref-manual/classes.rst +0
-0@@ -881,10 +881,10 @@ First, the root filesystem is created frompackages using one of the
``rootfs*.bbclass`` files (depending on the package format used) and
then one or more image files are created.-- The ``IMAGE_FSTYPES`` variable controls the types of images to +- The :term:
IMAGE_FSTYPESvariable controls the types of images to
generate.-- The ``IMAGE_INSTALL`` variable controls the list of packages to +- The :term:
IMAGE_INSTALLvariable controls the list of packages to
install into the image.For information on customizing images, see the
documentation/ref-manual/classes.rst +0
-0@@ -931,7 +931,7 @@ The ``image_types`` class also handlesconversion and compression of images.
.. note::To build a VMware VMDK image, you need to add "wic.vmdk" to
- ``IMAGE_FSTYPES``. This would also be similar for Virtual Box
Virtual Disk
+ :term:IMAGE_FSTYPES. This would also be similar for Virtual
Box Virtual Disk
Image ("vdi") and QEMU Copy On Write Version 2 ("qcow2") images... _ref-classes-image-live:
documentation/ref-manual/classes.rst +0
-0@@ -1009,7 +1009,7 @@ Please keep in mind that the QA checksare meant to detect real or potential problems in the packaged output. So exercise caution when disabling these checks.
documentation/ref-manual/classes.rst +1
-1-Here are the tests you can list with the ``WARN_QA`` and +Here are the tests you can list with the :term:`WARN_QA` and``ERROR_QA`` variables:
documentation/ref-manual/classes.rst +0
-1- ``already-stripped:`` Checks that produced binaries have not@@ -1142,13 +1142,13 @@ Here are the tests you can list with the``WARN_QA`` and
PACKAGECONFIG[foo] = "..."
-- ``la:`` Checks ``.la`` files for any ``TMPDIR`` paths. Any ``.la``
+- ``la:`` Checks ``.la`` files for any :term:TMPDIRpaths. Any ``.la``
file containing these paths is incorrect since ``libtool`` adds the
correct sysroot prefix when using the files automatically itself.- ``ldflags:`` Ensures that the binaries were linked with the :term:
LDFLAGSoptions provided by the build system.documentation/ref-manual/classes.rst +1
-1- If this test fails, check that the ``LDFLAGS`` variable is being + If this test fails, check that the :term:`LDFLAGS` variable isbeing
passed to the linker command.documentation/ref-manual/classes.rst +0
-1- ``libdir:`` Checks for libraries being installed into incorrect@@ -1188,7 +1188,7 @@ Here are the tests you can list with the``WARN_QA`` and
invalid characters (i.e. characters other than 0-9, a-z, ., +, and
-).-- ``pkgv-undefined:`` Checks to see if the ``PKGV`` variable is +- ``pkgv-undefined:`` Checks to see if the :term:
PKGVvariable is
undefined during :ref:ref-tasks-package.documentation/ref-manual/classes.rst +0
-1- ``pkgvarcheck:`` Checks through the variables@@ -1208,8 +1208,8 @@ Here are the tests you can list with the``WARN_QA`` and
- ``pn-overrides:`` Checks that a recipe does not have a name (:term:PN) value that appears in :term:OVERRIDES. If a recipe is named such that
- its ``PN`` value matches something already in ``OVERRIDES``
(e.g.documentation/ref-manual/classes.rst +1
-1- ``PN`` happens to be the same as :term:`MACHINE` or + its :term:`PN` value matches something already in:term:
OVERRIDES(e.g.
+ :term:PNhappens to be the same as :term:MACHINEor
:term:DISTRO), it can have unexpected consequences. For example, assignments such as ``FILES_${PN} = "xyz"`` effectively
turn into ``FILES = "xyz"``.documentation/ref-manual/classes.rst +0
-0@@ -1740,7 +1740,7 @@ To use this class, inherit it globally andspecify
SOURCE_MIRROR_URL= "http://example.com/my-source-mirror"You can specify only a single URL
documentation/ref-manual/classes.rst +1
-1-in ``SOURCE_MIRROR_URL``. +in :term:`SOURCE_MIRROR_URL`... _ref-classes-package:
documentation/ref-manual/classes.rst +0
-0@@ -1764,7 +1764,7 @@ package-specific classes:use this class.
You can control the list of resulting package formats by using the -``PACKAGE_CLASSES`` variable defined in your ``conf/local.conf`` +:term:
PACKAGE_CLASSESvariable defined in your ``conf/local.conf``
configuration file, which is located in the :term:Build Directory.
When defining the variable, you can
specify one or more package types. Since images are generated fromdocumentation/ref-manual/classes.rst +0
-0@@ -1785,7 +1785,7 @@ the same or similar package. This comparisontakes into account a
complete build of the package with all dependencies previously built.
The reason for this discrepancy is because the RPM package manager creates and processes more :term:Metadatathan the IPK package -manager. Consequently, you might consider setting ``PACKAGE_CLASSES`` to
+manager. Consequently, you might consider setting :term:PACKAGE_CLASSESto
"package_ipk" if you are building smaller systems.Before making your package manager decision, however, you should
documentation/ref-manual/classes.rst +0
-0@@ -1867,7 +1867,7 @@ variable in the ``local.conf`` file... note::
You cannot specify the ``package_tar`` class first using the
- ``PACKAGE_CLASSES`` variable. You must use ``.deb``, ``.ipk``,
or ``.rpm``
+ :term:PACKAGE_CLASSESvariable. You must use ``.deb``,
``.ipk``, or ``.rpm``
file formats for your image or SDK... _ref-classes-packagedata:
documentation/ref-manual/classes.rst +0
-0@@ -1889,7 +1889,7 @@ This class is enabled by default because it isinherited by the
========================The ``packagegroup`` class sets default values appropriate for package
-group recipes (e.g. ``PACKAGES``, ``PACKAGE_ARCH``, ``ALLOW_EMPTY``, and
+group recipes (e.g. :term:PACKAGES, :term:PACKAGE_ARCH, :term:ALLOW_EMPTY, and
so forth). It is highly recommended that all package group recipes inherit this class.documentation/ref-manual/classes.rst +0
-0@@ -2208,7 +2208,7 @@ modifying and building source code out of thework directory for a
recipe, enabling ``rm_work`` will potentially result in your changes to
the source being lost. To exclude some recipes from having their work
directories deleted by ``rm_work``, you can add the names of the recipe
-or recipes you are working on to the ``RM_WORK_EXCLUDE`` variable, which
+or recipes you are working on to the :term:RM_WORK_EXCLUDEvariable, which
can also be set in your ``local.conf`` file. Here is an example::
RM_WORK_EXCLUDE+= "busybox glibc"documentation/ref-manual/classes.rst +0
-0@@ -2323,11 +2323,11 @@ results so these tests can be skipped overbut still make the correct
values available. The ``meta/site directory`` contains test results sorted into different categories such as architecture, endianness, and
the ``libc`` used. Site information provides a list of files containing
-data relevant to the current build in the ``CONFIG_SITE`` variable that
+data relevant to the current build in the :term:CONFIG_SITEvariable that
Autotools automatically picks up.documentation/ref-manual/classes.rst +1
-2-The class also provides variables like ``SITEINFO_ENDIANNESS`` and -``SITEINFO_BITS`` that can be used elsewhere in the metadata. +The class also provides variables like :term:`SITEINFO_ENDIANNESS`and
+:term:SITEINFO_BITSthat can be used elsewhere in the metadata... _ref-classes-sstate:
documentation/ref-manual/classes.rst +0
-0@@ -2378,7 +2378,7 @@ stages:.. note::
Additionally, a recipe can customize the files further by
- declaring a processing function in the
``SYSROOT_PREPROCESS_FUNCS``
+ declaring a processing function in the
:term:SYSROOT_PREPROCESS_FUNCS
variable.A shared state (sstate) object is built from these files and the
documentation/ref-manual/classes.rst +0
-0@@ -2420,11 +2420,11 @@ stages:recommended for general use, the files do allow some issues such
as user creation and module indexes to be addressed.- Because recipes can have other dependencies outside of
``DEPENDS``
+ Because recipes can have other dependencies outside of
:term:DEPENDS
(e.g. ``do_unpack[depends] += "tar-native:do_populate_sysroot"``),
the sysroot creation function ``extend_recipe_sysroot`` is also added
as a pre-function for those tasks whose dependencies are not throughdocumentation/ref-manual/classes.rst +1
-1- ``DEPENDS`` but operate similarly. + :term:`DEPENDS` but operate similarly.When installing dependencies into the sysroot, the code traverses the
dependency graph and processes dependencies in exactly the same waydocumentation/ref-manual/classes.rst +0
-0@@ -2750,8 +2750,8 @@ initialization script on behalf of thepackage. The OpenEmbedded build
system takes care of details such as making sure the script is stopped
before a package is removed and started when the package is installed.-Three variables control this class: ``INITSCRIPT_PACKAGES``, -``INITSCRIPT_NAME`` and ``INITSCRIPT_PARAMS``. See the variable links
+Three variables control this class: :term:INITSCRIPT_PACKAGES, +:term:INITSCRIPT_NAMEand :term:INITSCRIPT_PARAMS. See the variable links
for details... _ref-classes-useradd:
documentation/ref-manual/classes.rst +0
-0@@ -2805,9 +2805,9 @@ additional information... note::
You do not use the ``useradd-staticids`` class directly. You either enable
- or disable the class by setting the ``USERADDEXTENSION``
variable. If you
+ or disable the class by setting the :term:USERADDEXTENSION
variable. If you
enable or disable the class in a configured system, :term:TMPDIRmight
- contain incorrect ``uid`` and ``gid`` values. Deleting the
``TMPDIR``
+ contain incorrect ``uid`` and ``gid`` values. Deleting the
:term:TMPDIR
directory will correct this condition... _ref-classes-utility-tasks:
documentation/ref-manual/faq.rst +0
-0@@ -108,10 +108,10 @@ the team can place sources there so buildscontinue to work.
but the package is being marked as machine-specific in all cases, how do
I prevent this?-**A:** Set ``SRC_URI_OVERRIDES_PACKAGE_ARCH`` = "0" in the ``.bb`` file
+**A:** Set :term:SRC_URI_OVERRIDES_PACKAGE_ARCH= "0" in the ``.bb`` file
but make sure the package is manually marked as machine-specific for the
case that needs it. The code that handles -``SRC_URI_OVERRIDES_PACKAGE_ARCH`` is in the +:term:SRC_URI_OVERRIDES_PACKAGE_ARCHis in the ``meta/classes/base.bbclass`` file.**Q:** I'm behind a firewall and need to use a proxy server. How do I do
documentation/ref-manual/faq.rst +0
-0@@ -250,7 +250,7 @@ size, you need to set various configurations::term:
IMAGE_ROOTFS_EXTRA_SPACE
variable to add additional free space to the image. The build system
adds this space to the image after it determines itsdocumentation/ref-manual/faq.rst +1
-1- ``IMAGE_ROOTFS_SIZE``. + :term:`IMAGE_ROOTFS_SIZE`.**Q:** Why don't you support directories with spaces in the pathnames?
documentation/ref-manual/faq.rst +0
-0@@ -262,11 +262,11 @@ situation changes, the team will not supportspaces in pathnames.
**Q:** How do I use an external toolchain?**A:** The toolchain configuration is very flexible and customizable. It
documentation/ref-manual/faq.rst +1
-1-is primarily controlled with the ``TCMODE`` variable. This variable +is primarily controlled with the :term:`TCMODE` variable. Thisvariable
controls which ``tcmode-*.inc`` file to include from the ``meta/conf/distro/include`` directory within the :term:Source Directory.documentation/ref-manual/faq.rst +1
-1-The default value of ``TCMODE`` is "default", which tells the +The default value of :term:`TCMODE` is "default", which tells theOpenEmbedded build system to use its internally built toolchain (i.e.
``tcmode-default.inc``). However, other patterns are accepted. In particular, "external-\*" refers to external toolchains. One example isdocumentation/ref-manual/faq.rst +0
-0@@ -325,7 +325,7 @@ Here is another technique::
BB_FETCH_PREMIRRORONLY= "1"This statement
-limits the build system to pulling source from the ``PREMIRRORS`` only.
+limits the build system to pulling source from the :term:PREMIRRORSonly.
Again, this technique is useful for reproducing builds.Here is another technique::
documentation/ref-manual/faq.rst +0
-0@@ -339,7 +339,7 @@ however, the technique can simply waste timeduring the build.
Finally, consider an example where you are behind an HTTP-only firewall.
You could make the following changes to the ``local.conf`` configurationdocumentation/ref-manual/faq.rst +1
-1-file as long as the ``PREMIRRORS`` server is current:: +file as long as the :term:`PREMIRRORS` server is current::
PREMIRRORS_prepend= "\
ftp://.*/.* http://www.yoctoproject.org/sources/ \n \documentation/ref-manual/faq.rst +0
-0@@ -349,7 +349,7 @@ file as long as the ``PREMIRRORS`` server iscurrent::
These changes would cause the build system to successfully fetch source
over HTTP and any network accesses to anything other than the -``PREMIRRORS`` would fail.
+:term:PREMIRRORSwould fail.The build system also honors the standard shell environment variables
``http_proxy``, ``ftp_proxy``, ``https_proxy``, and ``all_proxy`` todocumentation/ref-manual/features.rst +0
-0@@ -10,10 +10,10 @@ can select, and a reference on featurebackfilling.
Features provide a mechanism for working out which packages should be
included in the generated images. Distributions can select which -features they want to support through the ``DISTRO_FEATURES`` variable,
+features they want to support through the :term:DISTRO_FEATURESvariable,
which is set or appended to in a distribution's configuration file such
as ``poky.conf``, ``poky-tiny.conf``, ``poky-lsb.conf`` and so forth.
-Machine features are set in the ``MACHINE_FEATURES`` variable, which is
+Machine features are set in the :term:MACHINE_FEATURESvariable, which is
set in the machine configuration file and specifies the hardware features for a given machine.documentation/ref-manual/features.rst +0
-1@@ -267,7 +267,7 @@ these valid features is as follows: - *ssh-server-openssh:* Installs the OpenSSH SSH server, which ismore
full-featured than Dropbear. Note that if both the OpenSSH SSH server
and the Dropbear minimal SSH server are present in
- ``IMAGE_FEATURES``, then OpenSSH will take precedence and
Dropbear
+ :term:IMAGE_FEATURES, then OpenSSH will take precedence and
Dropbear
will not be installed.documentation/ref-manual/features.rst +0
-1- *tools-debug:* Installs debugging tools such as ``strace`` and@@ -323,27 +323,27 @@ Here are two examples to help illustratefeature backfilling:
- *The "pulseaudio" distro feature option*: Previously, PulseAudio support was enabled within the Qt and GStreamer frameworks. Because
of this, the feature is backfilled and thus enabled for all distrosdocumentation/ref-manual/features.rst +1
-1- through the ``DISTRO_FEATURES_BACKFILL`` variable in the + through the :term:`DISTRO_FEATURES_BACKFILL` variable in the``meta/conf/bitbake.conf`` file. However, your distro needs to disable the feature. You can disable the feature without affecting
other existing distro configurations that need PulseAudio support by
- adding "pulseaudio" to ``DISTRO_FEATURES_BACKFILL_CONSIDERED``
in
+ adding "pulseaudio" to
:term:DISTRO_FEATURES_BACKFILL_CONSIDEREDin
your distro's ``.conf`` file. Adding the feature to this variabledocumentation/ref-manual/features.rst +1
-1- when it also exists in the ``DISTRO_FEATURES_BACKFILL`` variable + when it also exists in the :term:`DISTRO_FEATURES_BACKFILL`variable
prevents the build system from adding the feature to yourdocumentation/ref-manual/features.rst +1
-1- configuration's ``DISTRO_FEATURES``, effectively disabling the + configuration's :term:`DISTRO_FEATURES`, effectively disablingthe
feature for that particular distro.- *The "rtc" machine feature option*: Previously, real time clock (RTC)
support was enabled for all target devices. Because of this, the feature is backfilled and thus enabled for all machines through thedocumentation/ref-manual/features.rst +1
-1- ``MACHINE_FEATURES_BACKFILL`` variable in the + :term:`MACHINE_FEATURES_BACKFILL` variable in the``meta/conf/bitbake.conf`` file. However, your target device does not
have this capability. You can disable RTC support for your device
without affecting other machines that need RTC support by adding the
- feature to your machine's
``MACHINE_FEATURES_BACKFILL_CONSIDERED``
+ feature to your machine's
:term:MACHINE_FEATURES_BACKFILL_CONSIDERED
list in the machine's ``.conf`` file. Adding the feature to this
- variable when it also exists in the
``MACHINE_FEATURES_BACKFILL``
+ variable when it also exists in the
:term:MACHINE_FEATURES_BACKFILL
variable prevents the build system from adding the feature to yourdocumentation/ref-manual/features.rst +1
-1- configuration's ``MACHINE_FEATURES``, effectively disabling RTC + configuration's :term:`MACHINE_FEATURES`, effectively disablingRTC
support for that particular machine.documentation/ref-manual/migration-1.3.rst +0
-0@@ -125,7 +125,7 @@ Image recipes that previously included``apps-console-core`` in
:term:IMAGE_FEATURESshould now include ``splash`` instead to enable the boot-up splash screen. Retaining ``apps-console-core`` will still include the splash screen but generates a
-warning. The ``apps-x11-core`` and ``apps-x11-games`` ``IMAGE_FEATURES``
+warning. The ``apps-x11-core`` and ``apps-x11-games`` :term:IMAGE_FEATURES
features have been removed... _migration-1.3-removed-recipes:
documentation/ref-manual/migration-1.3.rst +0
-0@@ -185,7 +185,7 @@ include :term:`PE` as part of the filename::
KERNEL_IMAGE_BASE_NAME?= "${KERNEL_IMAGETYPE}-${PE}-${PV}-${PR}-${MACHINE}-${DATETIME}"-Because the ``PE`` variable is not set by default, these binary files
+Because the :term:PEvariable is not set by default, these binary files
could result with names that include two dash characters. Here is an
example::documentation/ref-manual/migration-1.4.rst +0
-0@@ -28,7 +28,7 @@ Differences include the following: and uninstall script functions ``pkg_preinst``, ``pkg_postinst``,``pkg_prerm``, and ``pkg_postrm`` should always have a package name
override. For example, use ``RDEPENDS_${PN}`` for the main packagedocumentation/ref-manual/migration-1.4.rst +1
-1- instead of ``RDEPENDS``. BitBake uses more strict checks when it + instead of :term:`RDEPENDS`. BitBake uses more strict checkswhen it
parses recipes... _migration-1.4-build-behavior:
documentation/ref-manual/migration-1.4.rst +0
-0@@ -53,10 +53,10 @@ Differences include the following::term:
SRC_URI, the build system now uses
:term:FILESOVERRIDESinstead of
:term:OVERRIDESfor the directory names. Indocumentation/ref-manual/migration-1.4.rst +0
-2- general, the values previously in ``OVERRIDES`` are now in - ``FILESOVERRIDES`` as well. However, if you relied upon anadditional
- value you previously added to ``OVERRIDES``, you might now need
to
- add it to ``FILESOVERRIDES`` unless you are already adding it
throughdocumentation/ref-manual/migration-1.4.rst +2
-0+ general, the values previously in :term:`OVERRIDES` are now in + :term:`FILESOVERRIDES` as well. However, if you relied upon anadditional
+ value you previously added to :term:OVERRIDES, you might now
need to
+ add it to :term:FILESOVERRIDESunless you are already adding
it through
the :term:MACHINEOVERRIDESor
:term:DISTROOVERRIDESvariables, as
appropriate. For more related changes, see thedocumentation/ref-manual/migration-1.4.rst +0
-0@@ -105,7 +105,7 @@ VariablesThe following variables have changed:
-- ``SANITY_TESTED_DISTROS``: This variable now uses a distribution +- :term:
SANITY_TESTED_DISTROS: This variable now uses a distribution
ID, which is composed of the host distributor ID followed by the release. Previously,
:term:SANITY_TESTED_DISTROSwasdocumentation/ref-manual/migration-1.4.rst +0
-0@@ -114,7 +114,7 @@ The following variables have changed:you are not specifically setting this variable, or if you are specifically setting it to "".
-- ``SRC_URI``: The ``${``\ :term:
PN\ ``}``, +- :term:SRC_URI: The ``${``\ :term:PN\ ``}``, ``${``\ :term:PF\ ``}``,
``${``\ :term:P\ ``}``, and ``FILE_DIRNAME`` directories have been dropped from the default value of thedocumentation/ref-manual/migration-1.5.rst +0
-0@@ -68,7 +68,7 @@ The following changes have been made that relateto BitBake:
- ``${``\ :term:P\ ``}`` and
``${``\ :term:PF\ ``}`` are no longer added to
:term:PROVIDESby default in ``bitbake.conf``.documentation/ref-manual/migration-1.5.rst +1
-1- These version-specific ``PROVIDES`` items were seldom used. + These version-specific :term:`PROVIDES` items were seldom used.Attempting to use them could result in two versions being built simultaneously rather than just one version due to the way BitBake
resolves dependencies.documentation/ref-manual/migration-1.5.rst +0
-0@@ -84,9 +84,9 @@ The following changes have been made to thepackage QA checks:
:term:WARN_QAvalues in your configuration, check that they contain all of the issues that you wish to be reported.
Previous Yocto Project versions contained a bug that meant that any
- item not mentioned in ``ERROR_QA`` or ``WARN_QA`` would be
treated as
+ item not mentioned in :term:ERROR_QAor :term:WARN_QAwould
be treated as
a warning. Consequently, several important items were not already in
- the default value of ``WARN_QA``. All of the possible QA checks
are
+ the default value of :term:WARN_QA. All of the possible QA
checks are
now documented in the ":ref:insane.bbclass <ref-classes-insane>"
section.documentation/ref-manual/migration-1.5.rst +0
-0@@ -97,7 +97,7 @@ The following changes have been made to thepackage QA checks:
- If you are using the ``buildhistory`` class, the check for the package
version going backwards is now controlled using a standard QA check.
- Thus, if you have customized your ``ERROR_QA`` or ``WARN_QA``
values
+ Thus, if you have customized your :term:ERROR_QAor
:term:WARN_QAvalues
and still wish to have this check performed, you should add "version-going-backwards" to your value for one or the other variables depending on how you wish it to be handled. See thedocumentation/ref-manual/migration-1.5.rst +0
-1@@ -129,7 +129,7 @@ The following directory changes exist: - When buildhistory is enabled, its output is now written underthe
:term:Build Directoryrather than :term:TMPDIR. Doing so makes it easier to delete
- ``TMPDIR`` and preserve the build history. Additionally, data
for
+ :term:TMPDIRand preserve the build history. Additionally,
data for
produced SDKs is now split by :term:IMAGE_NAME.- The ``pkgdata`` directory produced as part of the packaging process
documentation/ref-manual/migration-1.5.rst +0
-0@@ -157,20 +157,20 @@ major issue in the way the values are used.The following changes have been made that relate to :term:
IMAGE_FEATURES:-- The value of ``IMAGE_FEATURES`` is now validated to ensure invalid
+- The value of :term:IMAGE_FEATURESis now validated to ensure invalid
feature items are not added. Some users mistakenly add package names
to this variable instead of using
:term:IMAGE_INSTALLin order to have the
package added to the image, which does not work. This change is
- intended to catch those kinds of situations. Valid
``IMAGE_FEATURES``
+ intended to catch those kinds of situations. Valid
:term:IMAGE_FEATURES
are drawn from ``PACKAGE_GROUP`` definitions, :term:COMPLEMENTARY_GLOBand a new
- "validitems" varflag on ``IMAGE_FEATURES``. The "validitems"
varflag
+ "validitems" varflag on :term:IMAGE_FEATURES. The "validitems"
varflag
change allows additional features to be added if they are not provided using the previous two mechanisms.-- The previously deprecated "apps-console-core" ``IMAGE_FEATURES`` item
- is no longer supported. Add "splash" to ``IMAGE_FEATURES`` if
you
+- The previously deprecated "apps-console-core" :term:IMAGE_FEATURESitem
+ is no longer supported. Add "splash" to :term:IMAGE_FEATURES
if you
wish to have the splash screen enabled, since this is all that apps-console-core was doing.documentation/ref-manual/migration-1.5.rst +0
-0@@ -285,7 +285,7 @@ Following are changes to ``udev``:``udev-extraconf`` to your image.
- ``udev`` no longer brings in ``pciutils-ids`` or ``usbutils-ids``
- through ``RRECOMMENDS``. These are not needed by ``udev`` itself
and
+ through :term:RRECOMMENDS. These are not needed by ``udev``
itself and
removing them saves around 350KB... _migration-1.5-removed-renamed-recipes:
documentation/ref-manual/migration-1.6.rst +0
-0@@ -61,7 +61,7 @@ If you do not specify a branch, BitBake looks inthe default "master" branch.
Alternatively, if you need to bypass this check (e.g. if you are fetching a revision corresponding to a tag that is not on any branch),
documentation/ref-manual/migration-1.6.rst +1
-1-you can add ";nobranch=1" to the end of the URL within ``SRC_URI``. +you can add ";nobranch=1" to the end of the URL within:term:
SRC_URI... _migration-1.6-bitbake-deps:
documentation/ref-manual/migration-1.6.rst +0
-0@@ -134,9 +134,9 @@ OpenEmbedded build system variables, see the":doc:
/ref-manual/variables" Chap:term:
TMPDIRcan no longer be on an NFS mount. NFS does not offer full POSIX locking and inode consistency and can causedocumentation/ref-manual/migration-1.6.rst +1
-2-unexpected issues if used to store ``TMPDIR``. +unexpected issues if used to store :term:`TMPDIR`. -The check for this occurs on startup. If ``TMPDIR`` is detected onan
+The check for this occurs on startup. If :term:TMPDIRis detected on an
NFS mount, an error occurs... _migration-1.6-variable-changes-PRINC:
documentation/ref-manual/migration-1.6.rst +0
-0@@ -274,7 +274,7 @@ In addition to ``core-image-basic`` being renamed,Licensing
----------The top-level ``LICENSE`` file has been changed to better describe the
+The top-level :term:LICENSEfile has been changed to better describe the
license of the various components of :term:OpenEmbedded-Core (OE-Core). However,
the licensing itself remains unchanged.documentation/ref-manual/migration-1.6.rst +0
-0@@ -284,7 +284,7 @@ recipes point to this file within``${COREBASE}/LICENSE``) and thus the accompanying checksum must be changed from
3f40d7994397109285ec7b81fdeb3b58to4d92cd373abda3937c2bc47fbc49d690. A better alternative is to have -``LIC_FILES_CHKSUM`` point to a file describing the license that is +:term:LIC_FILES_CHKSUMpoint to a file describing the license that is
distributed with the source that the recipe is building, if possible,
rather than pointing to ``${COREBASE}/LICENSE``.documentation/ref-manual/migration-1.6.rst +0
-0@@ -297,7 +297,7 @@ The "-fpermissive" option has been removed fromthe default
:term:CFLAGSvalue. You need to take action on individual recipes that fail when building with this option. You need to
either patch the recipes to fix the issues reported by the compiler, ordocumentation/ref-manual/migration-1.6.rst +1
-1-you need to add "-fpermissive" to ``CFLAGS`` in the recipes. +you need to add "-fpermissive" to :term:`CFLAGS` in the recipes... _migration-1.6-custom-images:
documentation/ref-manual/migration-1.7.rst +0
-0@@ -140,9 +140,9 @@ part of the variable name. This change not onlysimplifies usage but
also allows the values of these variables to be appropriately incorporated into task signatures and thus trigger the appropriate tasks
to re-execute when changed. You should replace any references to -``module_autoload_*`` with ``KERNEL_MODULE_AUTOLOAD``, and add any +``module_autoload_*`` with :term:KERNEL_MODULE_AUTOLOAD, and add any
modules for which ``module_conf_*`` is specified to -``KERNEL_MODULE_PROBECONF``. +:term:KERNEL_MODULE_PROBECONF... _migration-1.7-qa-check-changes:
documentation/ref-manual/migration-1.8.rst +0
-0@@ -153,8 +153,8 @@ The following QA Check and Validation Changeshave occurred:
instead of ``${D}``.documentation/ref-manual/migration-1.8.rst +0
-3- :term:`S` now needs to be set to a valid value within a - recipe. If ``S`` is not set in the recipe, the directory is not - automatically created. If ``S`` does not point to a directorythat
+ recipe. If :term:Sis not set in the recipe, the directory is
not
+ automatically created. If :term:Sdoes not point to a
directory that
exists at the time the :ref:ref-tasks-unpacktask finishes, a warning will be shown.documentation/ref-manual/migration-2.0.rst +0
-0@@ -25,7 +25,7 @@ and the porting guide athttps://gcc.gnu.org/gcc-5/porting_to.html.
Alternatively, you can switch back to GCC 4.9 or 4.8 by setting -``GCCVERSION`` in your configuration, as follows::
+:term:GCCVERSIONin your configuration, as follows::GCCVERSION = "4.9%"
documentation/ref-manual/migration-2.0.rst +0
-1@@ -244,7 +244,7 @@ The following QA checks have been added: - Added an "invalid-packageconfig" check for any options specifiedin
:term:PACKAGECONFIGthat do not match anydocumentation/ref-manual/migration-2.0.rst +1
-1- ``PACKAGECONFIG`` option defined for the recipe. + :term:`PACKAGECONFIG` option defined for the recipe... _migration-2.0-miscellaneous:
documentation/ref-manual/migration-2.1.rst +0
-0@@ -28,8 +28,8 @@ characters. This practice is now a requirement asBitBake's datastore
now assumes lower-case characters in order to give a slight performance
boost during parsing. In practical terms, this requirement means that
anything that ends up in :term:OVERRIDESmust nowdocumentation/ref-manual/migration-2.1.rst +2
-2-appear in lower-case characters (e.g. values for ``MACHINE``, -``TARGET_ARCH``, ``DISTRO``, and also recipe names if +appear in lower-case characters (e.g. values for :term:`MACHINE`, +:term:`TARGET_ARCH`, :term:`DISTRO`, and also recipe names if``_pn-``\ recipename overrides are to be effective).
Quoted 2 lines
..
_migration-2.1-expand-parameter-to-getvar-and-getvarflag-now-mandatory:
Quoted 2,582 lines
documentation/ref-manual/migration-2.1.rst +0
-0@@ -68,7 +68,7 @@ was a historical accident that has required manyclasses (e.g.
to work with sensible build systems. When upgrading to the release, you
must edit any recipe that relies upon this old default by either setting
``EXTRA_OEMAKE`` back to "-e MAKEFLAGS=" or by explicitly setting anydocumentation/ref-manual/migration-2.1.rst +1
-1-required variable value overrides using ``EXTRA_OEMAKE``, which is +required variable value overrides using :term:`EXTRA_OEMAKE`, whichis
typically only needed when aMakefilesets a default value for a variable that is inappropriate for cross-compilation using the "=" operator rather than the "?=" operator.documentation/ref-manual/migration-2.1.rst +0
-0@@ -376,7 +376,7 @@ These additional changes exist:run-postinsts
With the Yocto Project 2.1 release, these packages are
- only removed if "read-only-rootfs" is in ``IMAGE_FEATURES``,
since
+ only removed if "read-only-rootfs" is in :term:IMAGE_FEATURES,
since
they might still be needed for a read-write image even in the absence
of a package manager (e.g. if users need to be added, modified, or
removed at runtime).documentation/ref-manual/migration-2.2.rst +0
-0@@ -239,7 +239,7 @@ to catch recipes that are building softwarewithout using the
OpenEmbedded :term:LDFLAGS. This change could result in seeing some "NoGNU_HASHin the elf binary" QA issues when building such
recipes. You need to fix these recipes so that they use the expected
-``LDFLAGS``. Depending on how the software is built, the build system
+:term:LDFLAGS. Depending on how the software is built, the build system
used by the software (e.g. aMakefile) might need to be patched. However, sometimes making this fix is as simple as adding the following
to the recipe::documentation/ref-manual/migration-2.2.rst +0
-0@@ -280,7 +280,7 @@ The following changes took place for BitBake::term:
SRC_URIparameters to specify these. This change is more in-line with how the other fetchers work for source
control systems. Recipes that fetch from Perforce will need to be
- updated to use ``SRCREV`` in place of specifying the source
revision
+ updated to use :term:SRCREVin place of specifying the source
revision
within ``SRC_URI``.- Some of BitBake's internal code structures for accessing the recipe
documentation/ref-manual/migration-2.2.rst +0
-0@@ -297,7 +297,7 @@ The following changes took place for BitBake:to cause any problems for most users. However, the setscene verification function as pointed to by ``BB_SETSCENE_VERIFY_FUNCTION`` needed to change signature.
- Consequently, a new variable named
``BB_SETSCENE_VERIFY_FUNCTION2``
+ Consequently, a new variable named
:term:BB_SETSCENE_VERIFY_FUNCTION2
has been added allowing multiple versions of BitBake to work with
suitably written metadata, which includes OpenEmbedded-Core and Poky.
Anyone with custom BitBake task scheduler code might also need todocumentation/ref-manual/migration-2.3.rst +0
-0@@ -35,7 +35,7 @@ Consider the following:As an example, see the ``dbus`` recipe. You will see that this recipe
has a ``pkg_postinst`` that calls ``systemctl`` if "systemd" is in
:term:DISTRO_FEATURES. In the example,documentation/ref-manual/migration-2.3.rst +1
-1- ``systemd-systemctl-native`` is added to ``PACKAGE_WRITE_DEPS``, + ``systemd-systemctl-native`` is added to:term:
PACKAGE_WRITE_DEPS,
which is also conditional on "systemd" being in
``DISTRO_FEATURES``.documentation/ref-manual/migration-2.3.rst +0
-1- Examine Recipes that Use ``SSTATEPOSTINSTFUNCS``: You need to@@ -136,7 +136,7 @@ The following changes to scripts took place:removed because the script was found to be deleting files it should
not have, which lead to broken build trees. Rather than trying to
delete portions of :term:TMPDIRand getting it wrong,
- it is recommended that you delete ``TMPDIR`` and have it
restored
+ it is recommended that you delete :term:TMPDIRand have it
restored
from shared state (sstate) on subsequent builds.- ``wipe-sysroot``: The ``wipe-sysroot`` script has been removed as
documentation/ref-manual/migration-2.3.rst +0
-0@@ -200,10 +200,10 @@ The following changes took place for BitBake:section in the BitBake
User Manual for additional information.-- ``BB_SETSCENE_VERIFY_FUNCTION`` and ``BB_SETSCENE_VERIFY_FUNCTION2``
+- ``BB_SETSCENE_VERIFY_FUNCTION`` and :term:BB_SETSCENE_VERIFY_FUNCTION2
Removed: Because the mechanism they were part of is no longer necessary with recipe-specific sysroots, the
- ``BB_SETSCENE_VERIFY_FUNCTION`` and
``BB_SETSCENE_VERIFY_FUNCTION2``
+ ``BB_SETSCENE_VERIFY_FUNCTION`` and
:term:BB_SETSCENE_VERIFY_FUNCTION2
variables have been removed... _migration-2.3-absolute-symlinks:
documentation/ref-manual/migration-2.3.rst +0
-0@@ -426,10 +426,10 @@ The following miscellaneous changes haveoccurred:
- If the :term:
DISTRO_VERSIONvalue contains the value of the :term:DATEvariable, which is thedocumentation/ref-manual/migration-2.3.rst +1
-1- default between Poky releases, the ``DATE`` value is explicitly + default between Poky releases, the :term:`DATE` value isexplicitly
excluded from ``/etc/issue`` and ``/etc/issue.net [15]``, which is
displayed at the login prompt, in order to avoid conflicts with
- Multilib enabled. Regardless, the ``DATE`` value is inaccurate
if the
+ Multilib enabled. Regardless, the :term:DATEvalue is
inaccurate if the
``base-files`` recipe is restored from shared state (sstate) rather
than rebuilt.documentation/ref-manual/migration-2.3.rst +0
-0@@ -451,7 +451,7 @@ The following miscellaneous changes haveoccurred:
tools.- The ``USE_LDCONFIG`` variable has been replaced with the "ldconfig"
documentation/ref-manual/migration-2.3.rst +1
-1- ``DISTRO_FEATURES`` feature. Distributions that previously set:: + :term:`DISTRO_FEATURES` feature. Distributions that previouslyset::
USE_LDCONFIG= "0"documentation/ref-manual/migration-2.3.rst +0
-0@@ -494,12 +494,12 @@ The following miscellaneous changes haveoccurred:
information.documentation/ref-manual/migration-2.3.rst +1
-2- All native and nativesdk recipes now use a separate - ``DISTRO_FEATURES`` value instead of sharing the value used by + :term:`DISTRO_FEATURES` value instead of sharing the value usedby
recipes for the target, in order to avoid unnecessary rebuilds.documentation/ref-manual/migration-2.3.rst +1
-1- The ``DISTRO_FEATURES`` for ``native`` recipes is + The :term:`DISTRO_FEATURES` for ``native`` recipes is:term:
DISTRO_FEATURES_NATIVEadded todocumentation/ref-manual/migration-2.3.rst +1
-1- an intersection of ``DISTRO_FEATURES`` and + an intersection of :term:`DISTRO_FEATURES` and:term:
DISTRO_FEATURES_FILTER_NATIVE.For nativesdk recipes, the corresponding variables are
documentation/ref-manual/migration-2.4.rst +0
-1@@ -63,7 +63,7 @@ occurred: - The ``ionice`` program is now packaged in a separate"util-linux-ionice" package. The main ``util-linux`` package has a
documentation/ref-manual/migration-2.4.rst +1
-1- recommended runtime dependency (i.e. ``RRECOMMENDS``) on the + recommended runtime dependency (i.e. :term:`RRECOMMENDS`) onthe
``util-linux-ionice`` package.documentation/ref-manual/migration-2.4.rst +0
-1- ``initscripts``: The ``sushell`` program is now packaged in a@@ -71,7 +71,7 @@ occurred:systems to pull ``sushell`` in when ``selinux`` is enabled. The change also eliminates needing to pull in the entire ``initscripts``
package. The main ``initscripts`` package has a runtime dependency
- (i.e. ``RDEPENDS``) on the ``sushell`` package when "selinux" is
in
+ (i.e. :term:RDEPENDS) on the ``sushell`` package when
"selinux" is in
``DISTRO_FEATURES``.documentation/ref-manual/migration-2.4.rst +0
-1- ``glib-2.0``: The ``glib-2.0`` package now has a recommendeddocumentation/ref-manual/migration-2.5.rst +0
-0@@ -281,7 +281,7 @@ The following are additional changes:``IMAGE_FSTYPES``.
documentation/ref-manual/migration-2.5.rst +0
-2- Recipes with an unconditional dependency on ``libpam`` are only - buildable with ``pam`` in ``DISTRO_FEATURES``. If the dependencyis
+ buildable with ``pam`` in :term:DISTRO_FEATURES. If the
dependency is
truly optional then it is recommended that the dependency be conditional upon ``pam`` being in ``DISTRO_FEATURES``.documentation/ref-manual/migration-2.6.rst +0
-0@@ -156,11 +156,11 @@ Image/Kernel Artifact Naming ChangesThe following changes have been made:
documentation/ref-manual/migration-2.6.rst +2
-3- Name variables (e.g. :term:`IMAGE_NAME`) use a new - ``IMAGE_VERSION_SUFFIX`` variable instead of - :term:`DATETIME`. Using ``IMAGE_VERSION_SUFFIX`` + :term:`IMAGE_VERSION_SUFFIX` variable instead of + :term:`DATETIME`. Using :term:`IMAGE_VERSION_SUFFIX`allows easier and more direct changes.
- The ``IMAGE_VERSION_SUFFIX`` variable is set in the
``bitbake.conf``
+ The :term:IMAGE_VERSION_SUFFIXvariable is set in the
``bitbake.conf``
configuration file as follows::
IMAGE_VERSION_SUFFIX= "-${DATETIME}"documentation/ref-manual/migration-2.6.rst +0
-0@@ -212,19 +212,19 @@ The following changes have been made:The :term:
SERIAL_CONSOLEvariable has been
functionally replaced by the
:term:SERIAL_CONSOLESvariable for some time.documentation/ref-manual/migration-2.6.rst +1
-1-With the Yocto Project 2.6 release, ``SERIAL_CONSOLE`` has been +With the Yocto Project 2.6 release, :term:`SERIAL_CONSOLE` has beenofficially deprecated.
-``SERIAL_CONSOLE`` will continue to work as before for the 2.6 release.
+:term:SERIAL_CONSOLEwill continue to work as before for the 2.6 release.
However, for the sake of future compatibility, it is recommended thatdocumentation/ref-manual/migration-2.6.rst +2
-2-you replace all instances of ``SERIAL_CONSOLE`` with -``SERIAL_CONSOLES``. +you replace all instances of :term:`SERIAL_CONSOLE` with +:term:`SERIAL_CONSOLES`... note::
documentation/ref-manual/migration-2.6.rst +1
-1- The only difference in usage is that ``SERIAL_CONSOLES`` + The only difference in usage is that :term:`SERIAL_CONSOLES`expects entries to be separated using semicolons as compared to
documentation/ref-manual/migration-2.6.rst +1
-1- ``SERIAL_CONSOLE``, which expects spaces. + :term:`SERIAL_CONSOLE`, which expects spaces... _migration-2.6-poky-sets-unknown-configure-option-to-qa-error:
documentation/ref-manual/migration-2.6.rst +0
-0@@ -387,14 +387,14 @@ QEMU (i.e. "qemu-usermode" is indefault).
If you wish to disable Python profile-guided optimization regardless of
documentation/ref-manual/migration-2.6.rst +1
-1-the value of ``MACHINE_FEATURES``, then ensure that +the value of :term:`MACHINE_FEATURES`, then ensure that:term:
PACKAGECONFIGfor the ``python3`` recipe
does not contain "pgo". You could accomplish the latter using the following at the configuration level::PACKAGECONFIG_remove_pn-python3 = "pgo"
documentation/ref-manual/migration-2.6.rst +1
-1-Alternatively, you can set ``PACKAGECONFIG`` using an append file +Alternatively, you can set :term:`PACKAGECONFIG` using an appendfile
for the ``python3`` recipe... _migration-2.6-miscellaneous-changes:
documentation/ref-manual/migration-2.7.rst +0
-0@@ -91,7 +91,7 @@ This section provides information about packagingchanges.
package_name\ ``-src``). If you are currently using ``dbg-pkgs`` in
:term:IMAGE_FEATURESto bring in debug
symbols and you still need the sources, you must now also add
- ``src-pkgs`` to ``IMAGE_FEATURES``. Source packages remain in
the
+ ``src-pkgs`` to :term:IMAGE_FEATURES. Source packages remain
in the
target portion of the SDK by default, unless you have set your own
value for :term:SDKIMAGE_FEATURESthat
does not include ``src-pkgs``.documentation/ref-manual/migration-3.1.rst +0
-2@@ -260,7 +260,7 @@ Miscellaneous changes --------------------- - The undocumented ``SRC_DISTRIBUTE_LICENSES`` variable has nowbeen
- removed in favour of a new ``AVAILABLE_LICENSES`` variable which
is
+ removed in favour of a new :term:AVAILABLE_LICENSESvariable
which is
dynamically set based upon license files found in ``${COMMON_LICENSE_DIR}`` and ``${LICENSE_PATH}``.documentation/ref-manual/migration-3.2.rst +0
-0@@ -62,10 +62,10 @@ There is a possible complication where someexisting recipe may break, for
example, a recipe was found to be writing to ``${B}/install`` for ``make install`` in ``do_install`` and since ``${B}`` is listed as not to be tracked,
there were errors trying to ``chown root`` for files in this location. Another
-example was the ``tcl`` recipe where the source directory ``S`` is set to a
+example was the ``tcl`` recipe where the source directory :term:Sis set to a
subdirectory of the source tree but files were written out to the directory
structure above that subdirectory. For these types of cases in your own recipes,
-extend ``PSEUDO_IGNORE_PATHS`` to cover additional paths that pseudo should not
+extend :term:PSEUDO_IGNORE_PATHSto cover additional paths that pseudo should not
be monitoring.In addition, pseudo's behaviour on mismatches has now been changed
- ratherdocumentation/ref-manual/migration-3.2.rst +0
-0@@ -207,7 +207,7 @@ files into a subdirectory and reference thatinstead.
deploy class now cleans ``DEPLOYDIR`` before ``do_deploy``
-----------------------------------------------------------``do_deploy`` as implemented in the :ref:
deploy <ref-classes-deploy>class now cleans up ${:term:DEPLOYDIR} before running, just as ``do_install`` cleans up ${:term:D} before running. This reduces the risk of ``DEPLOYDIR`` being accidentally contaminated by files from previous runs, possibly even with different config, in case of incremental builds. +``do_deploy`` as implemented in the :ref:deploy <ref-classes-deploy>class now cleans up ${:term:DEPLOYDIR} before running, just as ``do_install`` cleans up ${:term:D} before running. This reduces the risk of :term:DEPLOYDIRbeing accidentally contaminated by files from previous runs, possibly even with different config, in case of incremental builds.Most recipes and classes that inherit the ``deploy`` class or interact with ``do_deploy`` are unlikely to be affected by this unless they add ``prefuncs`` to ``do_deploy`` *which also* put files into ``${DEPLOYDIR}`` - these should be refactored to use ``do_deploy_prepend`` instead.
documentation/ref-manual/qa-checks.rst +0
-0@@ -88,7 +88,7 @@ Errors and WarningsA file-level dependency has been identified from the specified package on the specified files, but there is no explicit corresponding entry in :term:
RDEPENDS. If
- particular files are required at runtime then ``RDEPENDS``
should be
+ particular files are required at runtime then :term:RDEPENDS
should be
declared in the recipe to ensure the packages providing them are built.documentation/ref-manual/qa-checks.rst +0
-0@@ -104,7 +104,7 @@ Errors and Warnings:term:
RDEPENDSvalue being added at the packaging stage rather than up front, which is usually automatic based on the
contents of the package. In most cases, you should change the recipedocumentation/ref-manual/qa-checks.rst +1
-1- to add an explicit ``RDEPENDS`` for the dependency. + to add an explicit :term:`RDEPENDS` for the dependency... _qa-check-dev-so:
documentation/ref-manual/qa-checks.rst +0
-0@@ -152,7 +152,7 @@ Errors and Warningsnot explicitly add the ``.debug`` directory to the ``-dbg`` package.
If this is the case, add the ``.debug`` directory explicitly to ``FILES_${PN}-dbg``. See :term:FILESfor additionaldocumentation/ref-manual/qa-checks.rst +1
-1- information on ``FILES``. + information on :term:`FILES`... _qa-check-arch:
documentation/ref-manual/qa-checks.rst +0
-0@@ -235,9 +235,9 @@ Errors and WarningsThis indicates that binaries produced when building the recipe have
not been linked with the :term:LDFLAGSoptions
- provided by the build system. Check to be sure that the
``LDFLAGS``
+ provided by the build system. Check to be sure that the
:term:LDFLAGS
variable is being passed to the linker command. A common workarounddocumentation/ref-manual/qa-checks.rst +1
-1- for this situation is to pass in ``LDFLAGS`` using + for this situation is to pass in :term:`LDFLAGS` using:term:
TARGET_CC_ARCHwithin the recipe as
follows::documentation/ref-manual/qa-checks.rst +0
-0@@ -403,7 +403,7 @@ Errors and WarningsIf your recipe name does not match this, or you add packages to :term:
PACKAGESthat do not conform to the convention, then you will receive this error. Rename your recipe. Or,documentation/ref-manual/qa-checks.rst +1
-1- if you have added a non-conforming package name to ``PACKAGES``, + if you have added a non-conforming package name to:term:
PACKAGES,
change the package name appropriately.documentation/ref-manual/qa-checks.rst +0
-0@@ -431,13 +431,13 @@ Errors and WarningsThe specified recipe has a name (:term:
PN) value that appears in :term:OVERRIDES. If a recipe is named
- such that its ``PN`` value matches something already in
``OVERRIDES``documentation/ref-manual/qa-checks.rst +1
-1- (e.g. ``PN`` happens to be the same as :term:`MACHINE` + such that its :term:`PN` value matches something already in:term:
OVERRIDES
+ (e.g. :term:PNhappens to be the same as :term:MACHINE
or :term:DISTRO), it can have unexpected consequences. For example, assignments such as ``FILES_${PN} = "xyz"`` effectively turn into ``FILES = "xyz"``.
- Rename your recipe (or if ``PN`` is being set explicitly, change
thedocumentation/ref-manual/qa-checks.rst +1
-1- ``PN`` value) so that the conflict does not occur. See + Rename your recipe (or if :term:`PN` is being set explicitly,change the
+ :term:PNvalue) so that the conflict does not occur. See
:term:FILESfor additional information.documentation/ref-manual/qa-checks.rst +0
-0@@ -464,7 +464,7 @@ Errors and WarningsThis check looks for instances of setting ``DEPENDS_${PN}`` which is erroneous (:term:
DEPENDSis a recipe-wide variable and thus
it is not correct to specify it for a particular package, nor will suchdocumentation/ref-manual/qa-checks.rst +1
-1- an assignment actually work.) Set ``DEPENDS`` instead. + an assignment actually work.) Set :term:`DEPENDS` instead... _qa-check-already-stripped:
documentation/ref-manual/qa-checks.rst +0
-0@@ -499,7 +499,7 @@ Errors and WarningsPackage names must appear only once in the
:term:PACKAGESvariable. You might receive this
- error if you are attempting to add a package to ``PACKAGES``
that is
+ error if you are attempting to add a package to :term:PACKAGES
that is
already in the variable's value.documentation/ref-manual/qa-checks.rst +0
-0@@ -523,7 +523,7 @@ Errors and Warningsin an image later on in the build process. You need to do one of the
following:- - Add the files to ``FILES`` for the package you want them to
appear
+ - Add the files to :term:FILESfor the package you want them
to appear
in (e.g. ``FILES_${``\ :term:PN\ ``}`` for the main package).documentation/ref-manual/structure.rst +0
-0@@ -251,9 +251,9 @@ variables are hard-coded for various reasons butsuch variables are
relatively rare.At a minimum, you would normally edit this file to select the target
-``MACHINE``, which package types you wish to use +:term:MACHINE, which package types you wish to use (:term:PACKAGE_CLASSES), and the location fromdocumentation/ref-manual/structure.rst +1
-1-which you want to access downloaded files (``DL_DIR``). +which you want to access downloaded files (:term:`DL_DIR`).If ``local.conf`` is not present when you start the build, the OpenEmbedded build system creates it from ``local.conf.sample`` when you
documentation/ref-manual/structure.rst +0
-0@@ -336,7 +336,7 @@ the build.This directory contains downloaded upstream source tarballs. You can
reuse the directory for multiple builds or move the directory to another
location. You can control the location of this directory through the
-``DL_DIR`` variable.
+:term:DL_DIRvariable... _structure-build-sstate-cache:
documentation/ref-manual/structure.rst +0
-0@@ -346,7 +346,7 @@ location. You can control the location of thisdirectory through the
This directory contains the shared state cache. You can reuse the directory for multiple builds or move the directory to another location.
You can control the location of this directory through the -``SSTATE_DIR`` variable.
+:term:SSTATE_DIRvariable... _structure-build-tmp:
documentation/ref-manual/structure.rst +0
-0@@ -548,7 +548,7 @@ section in the Yocto Project Overview andConcepts Manual.
------------------This directory contains general logs that are not otherwise placed using
documentation/ref-manual/structure.rst +1
-1-the package's ``WORKDIR``. Examples of logs are the output from the +the package's :term:`WORKDIR`. Examples of logs are the output fromthe
``do_check_pkg`` or ``do_distro_check`` tasks. Running a build does not
necessarily mean this directory is created.documentation/ref-manual/structure.rst +0
-0@@ -569,7 +569,7 @@ It is worth considering the structure of atypical work directory. As an
example, consider ``linux-yocto-kernel-3.0`` on the machine ``qemux86``
built within the Yocto Project. For this package, a work directory of ``tmp/work/qemux86-poky-linux/linux-yocto/3.0+git1+<.....>``, referred
-to as the ``WORKDIR``, is created. Within this directory, the source is
+to as the :term:WORKDIR, is created. Within this directory, the source is
unpacked to ``linux-qemux86-standard-build`` and then patched by Quilt.
(See the ":ref:dev-manual/common-tasks:using quilt in your workflow" section in
the Yocto Project Development Tasks Manual for more information.) Withindocumentation/ref-manual/structure.rst +0
-0@@ -577,7 +577,7 @@ the ``linux-qemux86-standard-build`` directory,standard Quilt
directories ``linux-3.0/patches`` and ``linux-3.0/.pc`` are created, and
standard Quilt commands can be used.documentation/ref-manual/structure.rst +1
-1-There are other directories generated within ``WORKDIR``. The most +There are other directories generated within :term:`WORKDIR`. Themost
important directory is ``WORKDIR/temp/``, which has log files for each
task (``log.do_*.pid``) and contains the scripts BitBake runs for each
task (``run.do_*.pid``). The ``WORKDIR/image/`` directory is where "makedocumentation/ref-manual/structure.rst +0
-0@@ -709,7 +709,7 @@ support for a new machine to the Yocto Project,look in this directory.
The contents of this directory controls any distribution-specific configurations. For the Yocto Project, the ``defaultsetup.conf`` is the
-main file here. This directory includes the versions and the ``SRCDATE``
+main file here. This directory includes the versions and the :term:SRCDATE
definitions for applications that are configured here. An example of an
alternative configuration might be ``poky-bleeding.conf``. Although this
file mainly inherits its configuration from Poky.documentation/ref-manual/tasks.rst +0
-0@@ -57,7 +57,7 @@ the current working directory set to ``${``\:term:
B\ ``}``.
The default behavior of this task is to run ``oe_runmake clean`` if a
makefile (``Makefile``, ``makefile``, or ``GNUmakefile``) is found and
:term:CLEANBROKENis not set to "1". If no suchdocumentation/ref-manual/tasks.rst +1
-1-file is found or the ``CLEANBROKEN`` variable is set to "1", the +file is found or the :term:`CLEANBROKEN` variable is set to "1",the
``do_configure`` task does nothing... _ref-tasks-configure_ptest_base:
documentation/ref-manual/tasks.rst +0
-0@@ -308,17 +308,17 @@ This recipe has two patch files located here::poky/meta/recipes-connectivity/bluez5/bluez5
-In the ``bluez5`` recipe, the ``SRC_URI`` statements point to the source
+In the ``bluez5`` recipe, the :term:SRC_URIstatements point to the source
and patch files needed to build the package... note::
- In the case for the ``bluez5_5.48.bb [16]`` recipe, the
``SRC_URI`` statements
+ In the case for the ``bluez5_5.48.bb [16]`` recipe, the
:term:SRC_URIstatements
are from an include file ``bluez5.inc``.As mentioned earlier, the build system treats files whose file types are
``.patch`` and ``.diff`` as patch files. However, you can use the -"apply=yes" parameter with the ``SRC_URI`` statement to indicate any
+"apply=yes" parameter with the :term:SRC_URIstatement to indicate any
file as a patch file::
SRC_URI= " \documentation/ref-manual/tasks.rst +0
-0@@ -329,7 +329,7 @@ file as a patch file::Conversely, if you have a directory full of patch files and you want to
exclude some so that the ``do_patch`` task does not apply them during
the patch phase, you can use the "apply=no" parameter with the -``SRC_URI`` statement::
+:term:SRC_URIstatement::
SRC_URI= " \git://path_to_repo/some_package\documentation/ref-manual/tasks.rst +0
-0@@ -430,7 +430,7 @@ variable also plays a role in where unpackedsource files ultimately
reside. For more information on how source files are unpacked, see the
":ref:overview-manual/concepts:source fetching" section in the Yocto Project Overview and Concepts Manual and also seedocumentation/ref-manual/tasks.rst +1
-1-the ``WORKDIR`` and ``S`` variable descriptions. +the :term:`WORKDIR` and :term:`S` variable descriptions.Manually Called Tasks
=====================documentation/ref-manual/terms.rst +0
-0@@ -97,11 +97,11 @@ universal, the list includes them just in case:.. note::
By default, the Build Directory contains :term:
TMPDIR, which is a
- temporary directory the build system uses for its work.
``TMPDIR`` cannot
+ temporary directory the build system uses for its work.
:term:TMPDIRcannot
be under NFS. Thus, by default, the Build Directory cannot be under
NFS. However, if you need the Build Directory to be under NFS, you can
- set this up by setting ``TMPDIR`` in your ``local.conf``
file to use a local
- drive. Doing so effectively separates ``TMPDIR`` from
:term:TOPDIR, which is the
+ set this up by setting :term:TMPDIRin your
``local.conf`` file to use a local
+ drive. Doing so effectively separates :term:TMPDIRfrom
:term:TOPDIR, which is the
Build Directory.:term:
Build Hostdocumentation/ref-manual/variables.rst +0
-0@@ -63,7 +63,7 @@ system and gives an overview of their function andcontents.
Used by the alternatives system to map duplicated commands to actual
locations. For example, if the ``bracket`` command provided by the
``busybox`` package is duplicated through another package, you must
- use the ``ALTERNATIVE_LINK_NAME`` variable to specify the
actual
+ use the :term:ALTERNATIVE_LINK_NAMEvariable to specify the
actual
location::ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
documentation/ref-manual/variables.rst +0
-0@@ -73,7 +73,7 @@ system and gives an overview of their function andcontents.
.. note::
- If ``ALTERNATIVE_LINK_NAME`` is not defined, it defaults
to ``${bindir}/name``.
+ If :term:ALTERNATIVE_LINK_NAMEis not defined, it
defaults to ``${bindir}/name``.For more information on the alternatives system, see the ":ref:
update-alternatives.bbclass <ref-classes-update-alternatives>"documentation/ref-manual/variables.rst +0
-0@@ -109,11 +109,11 @@ system and gives an overview of their functionand contents.
.. note::
- If ``ALTERNATIVE_TARGET`` is not defined, it inherits the
value
+ If :term:ALTERNATIVE_TARGETis not defined, it inherits
the value
from the :term:ALTERNATIVE_LINK_NAMEvariable.- If ``ALTERNATIVE_LINK_NAME`` and ``ALTERNATIVE_TARGET``
are the
- same, the target for ``ALTERNATIVE_TARGET`` has
"``.{BPN}``"
+ If :term:ALTERNATIVE_LINK_NAMEand
:term:ALTERNATIVE_TARGETare the
+ same, the target for :term:ALTERNATIVE_TARGEThas
"``.{BPN}``"
appended to it.Finally, if the file referenced has not been renamed, the
documentation/ref-manual/variables.rst +0
-0@@ -131,8 +131,8 @@ system and gives an overview of their functionand contents.
class, this variable identifies a list of distribution features where
at least one must be enabled in the current configuration in order
for the OpenEmbedded build system to build the recipe. In other words,documentation/ref-manual/variables.rst +0
-2- if none of the features listed in ``ANY_OF_DISTRO_FEATURES`` - appear in ``DISTRO_FEATURES`` within the currentconfiguration, then
+ if none of the features listed in
:term:ANY_OF_DISTRO_FEATURES
+ appear in :term:DISTRO_FEATURESwithin the current
configuration, then
the recipe will be skipped, and if the build system attempts to build
the recipe then an error will be triggered.documentation/ref-manual/variables.rst +0
-0@@ -174,7 +174,7 @@ system and gives an overview of their functionand contents.
attempt to build. Instead, BitBake assumes these recipes have already
been built.- In OpenEmbedded-Core, ``ASSUME_PROVIDED`` mostly specifies
native
+ In OpenEmbedded-Core, :term:ASSUME_PROVIDEDmostly
specifies native
tools that should not be built. An example is ``git-native``, which
when specified, allows for the Git binary from the host to be used
rather than building ``git-native``.documentation/ref-manual/variables.rst +0
-0@@ -200,7 +200,7 @@ system and gives an overview of their functionand contents.
:term:
AUTO_LIBNAME_PKGS
When the :ref:debian <ref-classes-debian>class is inherited,
- which is the default behavior, ``AUTO_LIBNAME_PKGS``
specifies which
+ which is the default behavior, :term:AUTO_LIBNAME_PKGS
specifies which
packages should be checked for libraries and renamed according to
Debian library package naming.documentation/ref-manual/variables.rst +0
-0@@ -213,7 +213,7 @@ system and gives an overview of their functionand contents.
:ref:syslinux <ref-classes-syslinux>class checks this variable.:term:
AUTOREV
- When ``SRCREV`` is set to the value of this variable, it
specifies to
+ When :term:SRCREVis set to the value of this variable, it
specifies to
use the latest source revision in the repository. Here is an example::SRCREV = "${AUTOREV}"
documentation/ref-manual/variables.rst +0
-0@@ -224,7 +224,7 @@ system and gives an overview of their functionand contents.
have a kernel recipe that inherits the :ref:kernel <ref-classes-kernel>class and you use the previous
statement. In this example, ``${SRCPV}`` does not automatically get
- into ``PV``. Consequently, you need to change ``PV`` in your
recipe
+ into :term:PV. Consequently, you need to change :term:PV
in your recipe
so that it does contain ``${SRCPV}``.For more information see the
documentation/ref-manual/variables.rst +0
-0@@ -238,8 +238,8 @@ system and gives an overview of their functionand contents.
.. note::
- It is assumed that all changes to ``COMMON_LICENSE_DIR``
and
- ``LICENSE_PATH`` have been done before
``AVAILABLE_LICENSES``
+ It is assumed that all changes to
:term:COMMON_LICENSE_DIRand
+ :term:LICENSE_PATHhave been done before
:term:AVAILABLE_LICENSES
is defined (in :ref:ref-classes-license).:term:
AVAILTUNESdocumentation/ref-manual/variables.rst +0
-0@@ -279,7 +279,7 @@ system and gives an overview of their functionand contents.
S = "${WORKDIR}/${BP}"
- You can separate the (``S``) directory and the directory
pointed to
+ You can separate the (:term:S) directory and the directory
pointed to
by the ``B`` variable. Most Autotools-based recipes support separating these directories. The build system defaults to using
separate directories for ``gcc`` and some kernel recipes.documentation/ref-manual/variables.rst +0
-0@@ -289,7 +289,7 @@ system and gives an overview of their functionand contents.
packages are packages installed only through the :term:RRECOMMENDSvariable. You can prevent any of these "recommended" packages from being installed by listing themdocumentation/ref-manual/variables.rst +1
-1- with the ``BAD_RECOMMENDATIONS`` variable:: + with the :term:`BAD_RECOMMENDATIONS` variable::
BAD_RECOMMENDATIONS= "package_namepackage_namepackage_name..."documentation/ref-manual/variables.rst +0
-0@@ -314,12 +314,12 @@ system and gives an overview of their functionand contents.
:term:
BASE_LIB
The library directory name for the CPU or Application Binary
- Interface (ABI) tune. The ``BASE_LIB`` applies only in the
Multilib
+ Interface (ABI) tune. The :term:BASE_LIBapplies only in
the Multilib
context. See the ":ref:dev-manual/common-tasks:combining multiple versions of library files into one image" section in the Yocto Project Development Tasks Manual for information
on Multilib.- The ``BASE_LIB`` variable is defined in the machine include
files in
+ The :term:BASE_LIBvariable is defined in the machine
include files in
the :term:Source Directory. If Multilib is not
being used, the value defaults to "lib".documentation/ref-manual/variables.rst +0
-0@@ -332,7 +332,7 @@ system and gives an overview of their functionand contents.
to use to obtain the required source code. Following are considerations surrounding this variable:- - This host list is only used if ``BB_NO_NETWORK`` is either
not set
+ - This host list is only used if :term:BB_NO_NETWORKis
either not set
or set to "0".- There is limited support for wildcard matching against the beginning of
documentation/ref-manual/variables.rst +0
-0@@ -357,14 +357,14 @@ system and gives an overview of their functionand contents.
- Attempts to access networks not in the host list cause a failure.
documentation/ref-manual/variables.rst +1
-1- Using ``BB_ALLOWED_NETWORKS`` in conjunction with + Using :term:`BB_ALLOWED_NETWORKS` in conjunction with:term:
PREMIRRORSis very useful. Adding the host
- you want to use to ``PREMIRRORS`` results in the source code
being
+ you want to use to :term:PREMIRRORSresults in the source
code being
fetched from an allowed location and avoids raising an error when a
host that is not allowed is in a :term:SRC_URIstatement. This is because the fetcher does not attempt to use thedocumentation/ref-manual/variables.rst +1
-2- host listed in ``SRC_URI`` after a successful fetch from the - ``PREMIRRORS`` occurs. + host listed in :term:`SRC_URI` after a successful fetch fromthe
+ :term:PREMIRRORSoccurs.:term:
BB_DANGLINGAPPENDS_WARNONLY
Defines how BitBake handles situations where an append filedocumentation/ref-manual/variables.rst +0
-0@@ -389,7 +389,7 @@ system and gives an overview of their functionand contents.
you to control the build based on these parameters.Disk space monitoring is disabled by default. To enable monitoring,
- add the ``BB_DISKMON_DIRS`` variable to your
``conf/local.conf`` file
+ add the :term:BB_DISKMON_DIRSvariable to your
``conf/local.conf`` file
found in the :term:Build Directory. Use the following form:documentation/ref-manual/variables.rst +0
-0@@ -444,7 +444,7 @@ system and gives an overview of their functionand contents.
variable, the build system also issue a warning when the disk space
in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
of free inodes drops below 100 Kbytes. Subsequent warnings are issued
- during intervals as defined by the
``BB_DISKMON_WARNINTERVAL``
+ during intervals as defined by the
:term:BB_DISKMON_WARNINTERVAL
variable.The second example stops the build after all currently executing
documentation/ref-manual/variables.rst +0
-0@@ -461,14 +461,14 @@ system and gives an overview of their functionand contents.
intervals, define the variable in your ``conf/local.conf`` file in
the :term:Build Directory.- If you are going to use the ``BB_DISKMON_WARNINTERVAL``
variable, you
+ If you are going to use the :term:BB_DISKMON_WARNINTERVAL
variable, you
must also use the :term:BB_DISKMON_DIRS
variable and define its action as "WARN". During the build, subsequent warnings are issued each time disk space or number of free
inodes further reduces by the respective interval.- If you do not provide a ``BB_DISKMON_WARNINTERVAL`` variable
and youdocumentation/ref-manual/variables.rst +1
-1- do use ``BB_DISKMON_DIRS`` with the "WARN" action, the disk + If you do not provide a :term:`BB_DISKMON_WARNINTERVAL`variable and you
+ do use :term:BB_DISKMON_DIRSwith the "WARN" action, the
disk
monitoring interval defaults to the following::
BB_DISKMON_WARNINTERVAL= "50M,5K"documentation/ref-manual/variables.rst +0
-0@@ -521,7 +521,7 @@ system and gives an overview of their functionand contents.
``local.conf`` file in the :term:Build Directory.Once you have the tarballs containing your source files, you can
- clean up your ``DL_DIR`` directory by deleting any Git or
other
+ clean up your :term:DL_DIRdirectory by deleting any Git or
other
source control work directories.:term:
BB_NUMBER_THREADSdocumentation/ref-manual/variables.rst +0
-0@@ -529,13 +529,13 @@ system and gives an overview of their functionand contents.
time. The OpenEmbedded build system automatically configures this
variable to be equal to the number of cores on the build system. For
example, a system with a dual core processor that also uses
- hyper-threading causes the ``BB_NUMBER_THREADS`` variable to
default
+ hyper-threading causes the :term:BB_NUMBER_THREADSvariable
to default
to "4".For single socket systems (i.e. one CPU), you should not have to
override this variable to gain optimal parallelism during builds.
However, if you have very large systems that employ multiple physical
- CPUs, you might want to make sure the ``BB_NUMBER_THREADS``
variable
+ CPUs, you might want to make sure the
:term:BB_NUMBER_THREADSvariable
is not set higher than "20".For more information on speeding up builds, see the
documentation/ref-manual/variables.rst +0
-0@@ -544,7 +544,7 @@ system and gives an overview of their functionand contents.
:term:
BB_SERVER_TIMEOUT
Specifies the time (in seconds) after which to unload the BitBake
- server due to inactivity. Set ``BB_SERVER_TIMEOUT`` to
determine how
+ server due to inactivity. Set :term:BB_SERVER_TIMEOUTto
determine how
long the BitBake server stays resident between invocations.For example, the following statement in your ``local.conf`` file
documentation/ref-manual/variables.rst +0
-0@@ -562,7 +562,7 @@ system and gives an overview of their functionand contents.
system; "crosses" such as ``gcc-cross``, which is a compiler built to
run on the build machine but produces binaries that run on the target
:term:MACHINE; "nativesdk", which targets the SDKdocumentation/ref-manual/variables.rst +1
-1- machine instead of ``MACHINE``; and "mulitlibs" in the form + machine instead of :term:`MACHINE`; and "mulitlibs" in theform
"``multilib:``\multilib_name".To build a different variant of the recipe with a minimal amount of
documentation/ref-manual/variables.rst +0
-0@@ -573,13 +573,13 @@ system and gives an overview of their functionand contents.
.. note::
- Internally, the ``BBCLASSEXTEND`` mechanism generates
recipe
+ Internally, the :term:BBCLASSEXTENDmechanism generates
recipe
variants by rewriting variable values and applying overrides such
as ``_class-native``. For example, to generate a native version of
a recipe, a :term:DEPENDSon "foo" is rewritten to a ``DEPENDS`` on "foo-native".- Even when using ``BBCLASSEXTEND``, the recipe is only
parsed once.
+ Even when using :term:BBCLASSEXTEND, the recipe is only
parsed once.
Parsing once adds some limitations. For example, it is not possible to include a different file depending on the variant,
since ``include`` statements are processed when the recipe isdocumentation/ref-manual/variables.rst +0
-0@@ -605,14 +605,14 @@ system and gives an overview of their functionand contents.
- effectively letting you control the precedence for the multiple
layers. The precedence established through this variable stands
regardless of a recipe's version (:term:PVvariable). For
- example, a layer that has a recipe with a higher ``PV`` value
but for
- which the ``BBFILE_PRIORITY`` is set to have a lower
precedence still
+ example, a layer that has a recipe with a higher :term:PV
value but for
+ which the :term:BBFILE_PRIORITYis set to have a lower
precedence still
has a lower precedence.- A larger value for the ``BBFILE_PRIORITY`` variable results
in a
+ A larger value for the :term:BBFILE_PRIORITYvariable
results in a
higher precedence. For example, the value 6 has a higher precedence
- than the value 5. If not specified, the ``BBFILE_PRIORITY``
variable
- is set based on layer dependencies (see the ``LAYERDEPENDS``
variable
+ than the value 5. If not specified, the
:term:BBFILE_PRIORITYvariable
+ is set based on layer dependencies (see the
:term:LAYERDEPENDSvariable
for more information. The default priority, if unspecified for a
layer with no dependencies, is the lowest defined priority + 1 (or 1
if no priorities are defined).documentation/ref-manual/variables.rst +0
-0@@ -635,12 +635,12 @@ system and gives an overview of their functionand contents.
Activates content when identified layers are present. You identify
the layers by the collections that the layers define.- Use the ``BBFILES_DYNAMIC`` variable to avoid ``.bbappend``
files
+ Use the :term:BBFILES_DYNAMICvariable to avoid
``.bbappend`` files
whose corresponding ``.bb`` file is in a layer that attempts to
modify other layers through ``.bbappend`` but does not want to
introduce a hard dependency on those other layers.documentation/ref-manual/variables.rst +1
-1- Use the following form for ``BBFILES_DYNAMIC``: + Use the following form for :term:`BBFILES_DYNAMIC`:collection_name:filename_pattern The following example identifies two
collection names and two filename patterns::documentation/ref-manual/variables.rst +0
-0@@ -664,7 +664,7 @@ system and gives an overview of their functionand contents.
:term:BBINCLUDELOGS_LINES
If :term:BBINCLUDELOGSis set, specifies the maximum number of lines from the task log file to print when
- reporting a failed task. If you do not set
``BBINCLUDELOGS_LINES``,
+ reporting a failed task. If you do not set
:term:BBINCLUDELOGS_LINES,
the entire log is printed.:term:
BBLAYERSdocumentation/ref-manual/variables.rst +0
-0@@ -685,7 +685,7 @@ system and gives an overview of their functionand contents.
:term:BBMASK
Prevents BitBake from processing recipes and recipe append files.- You can use the ``BBMASK`` variable to "hide" these ``.bb``
and
+ You can use the :term:BBMASKvariable to "hide" these
``.bb`` and
``.bbappend`` files. BitBake ignores any recipe or recipe append
files that match any of the expressions. It is as if BitBake does not
see them at all. Consequently, matching files are not parsed ordocumentation/ref-manual/variables.rst +0
-0@@ -732,7 +732,7 @@ system and gives an overview of their functionand contents.
``conf/multiconfig`` directory (e.g. build_directory\ ``/conf/multiconfig/configA.conf``).- For information on how to use ``BBMULTICONFIG`` in an
environment
+ For information on how to use :term:BBMULTICONFIGin an
environment
that supports building targets with multiple configurations, see the
":ref:dev-manual/common-tasks:building images for multiple targets using multiple configurations"
section in the Yocto Project Development Tasks Manual.documentation/ref-manual/variables.rst +0
-0@@ -744,7 +744,7 @@ system and gives an overview of their functionand contents.
.. note::If you run BitBake from a directory outside of the
- :term:Build Directory, you must be sure to set
``BBPATH``
+ :term:Build Directory, you must be sure to set
:term:BBPATH
to point to the Build Directory. Set the variable as you would any
environment variable and then run BitBake::documentation/ref-manual/variables.rst +0
-0@@ -754,7 +754,7 @@ system and gives an overview of their functionand contents.
:term:
BBSERVER
- If defined in the BitBake environment, ``BBSERVER`` points to
the
+ If defined in the BitBake environment, :term:BBSERVER
points to the
BitBake remote server.Use the following format to export the variable to the BitBake
documentation/ref-manual/variables.rst +0
-0@@ -762,9 +762,9 @@ system and gives an overview of their functionand contents.
export BBSERVER=localhost:$port
documentation/ref-manual/variables.rst +1
-1- By default, ``BBSERVER`` also appears in + By default, :term:`BBSERVER` also appears in:term:
bitbake:BB_HASHBASE_WHITELIST.
- Consequently, ``BBSERVER`` is excluded from checksum and
dependency
+ Consequently, :term:BBSERVERis excluded from checksum and
dependency
data.:term:
BINCONFIGdocumentation/ref-manual/variables.rst +0
-0@@ -791,7 +791,7 @@ system and gives an overview of their functionand contents.
.. note::
documentation/ref-manual/variables.rst +1
-1- The ``BINCONFIG_GLOB`` variable uses + The :term:`BINCONFIG_GLOB` variable uses`shell globbing
<https://tldp.org/LDP/abs/html/globbingref.html>`__,
which is recognition and expansion of wildcards during pattern
matching. Shell globbing is very similar todocumentation/ref-manual/variables.rst +0
-0@@ -806,7 +806,7 @@ system and gives an overview of their functionand contents.
:term:
BP
The base recipe name and version but without any special recipe name
- suffix (i.e. ``-native``, ``lib64-``, and so forth). ``BP``
is
+ suffix (i.e. ``-native``, ``lib64-``, and so forth).
:term:BPis
comprised of the following::${BPN}-${PV}
documentation/ref-manual/variables.rst +0
-0@@ -828,23 +828,23 @@ system and gives an overview of their functionand contents.
:term:
BUILD_ARCH
Specifies the architecture of the build host (e.g. ``i686``). The
- OpenEmbedded build system sets the value of ``BUILD_ARCH``
from the
+ OpenEmbedded build system sets the value of
:term:BUILD_ARCHfrom the
machine name reported by the ``uname`` command.:term:
BUILD_AS_ARCH
Specifies the architecture-specific assembler flags for the builddocumentation/ref-manual/variables.rst +1
-1- host. By default, the value of ``BUILD_AS_ARCH`` is empty. + host. By default, the value of :term:`BUILD_AS_ARCH` isempty.
:term:
BUILD_CC_ARCH
Specifies the architecture-specific C compiler flags for the builddocumentation/ref-manual/variables.rst +1
-1- host. By default, the value of ``BUILD_CC_ARCH`` is empty. + host. By default, the value of :term:`BUILD_CC_ARCH` isempty.
:term:
BUILD_CCLD
Specifies the linker command to be used for the build host when the C
- compiler is being used as the linker. By default,
``BUILD_CCLD``
+ compiler is being used as the linker. By default,
:term:BUILD_CCLD
points to GCC and passes as arguments the value of :term:BUILD_CC_ARCH, assumingdocumentation/ref-manual/variables.rst +1
-1- ``BUILD_CC_ARCH`` is set. + :term:`BUILD_CC_ARCH` is set.:term:
BUILD_CFLAGS
Specifies the flags to pass to the C compiler when building for thedocumentation/ref-manual/variables.rst +0
-0@@ -866,19 +866,19 @@ system and gives an overview of their functionand contents.
:term:
BUILD_FC
Specifies the Fortran compiler command for the build host. By
- default, ``BUILD_FC`` points to Gfortran and passes as
arguments the
+ default, :term:BUILD_FCpoints to Gfortran and passes as
arguments the
value of :term:BUILD_CC_ARCH, assumingdocumentation/ref-manual/variables.rst +1
-1- ``BUILD_CC_ARCH`` is set. + :term:`BUILD_CC_ARCH` is set.:term:
BUILD_LD
Specifies the linker command for the build host. By default,
- ``BUILD_LD`` points to the GNU linker (ld) and passes as
arguments
+ :term:BUILD_LDpoints to the GNU linker (ld) and passes as
arguments
the value of :term:BUILD_LD_ARCH, assumingdocumentation/ref-manual/variables.rst +1
-1- ``BUILD_LD_ARCH`` is set. + :term:`BUILD_LD_ARCH` is set.:term:
BUILD_LD_ARCH
Specifies architecture-specific linker flags for the build host. Bydocumentation/ref-manual/variables.rst +1
-1- default, the value of ``BUILD_LD_ARCH`` is empty. + default, the value of :term:`BUILD_LD_ARCH` is empty.:term:
BUILD_LDFLAGS
Specifies the flags to pass to the linker when building for the builddocumentation/ref-manual/variables.rst +0
-0@@ -903,13 +903,13 @@ system and gives an overview of their functionand contents.
:term:
BUILD_PREFIX
The toolchain binary prefix used for native recipes. The OpenEmbeddeddocumentation/ref-manual/variables.rst +1
-1- build system uses the ``BUILD_PREFIX`` value to set the + build system uses the :term:`BUILD_PREFIX` value to set the:term:
TARGET_PREFIXwhen building for
``native`` recipes.:term:
BUILD_STRIP
Specifies the command to be used to strip debugging symbols from
- binaries produced for the build host. By default,
``BUILD_STRIP``
+ binaries produced for the build host. By default,
:term:BUILD_STRIP
points to
``${``\ :term:BUILD_PREFIX\ ``}strip``.documentation/ref-manual/variables.rst +0
-0@@ -922,7 +922,7 @@ system and gives an overview of their functionand contents.
on :term:BUILD_ARCH,
:term:BUILD_VENDOR, and
:term:BUILD_OS. You do not need to set thedocumentation/ref-manual/variables.rst +1
-1- ``BUILD_SYS`` variable yourself. + :term:`BUILD_SYS` variable yourself.:term:
BUILD_VENDOR
Specifies the vendor name to use when building for the build host.documentation/ref-manual/variables.rst +0
-0@@ -933,7 +933,7 @@ system and gives an overview of their functionand contents.
You can define this directory indirectly through the :ref:structure-core-scriptscript by passing in a Build Directory path when you run the script. If you run the script and do
- not provide a Build Directory path, the ``BUILDDIR`` defaults
to
+ not provide a Build Directory path, the :term:BUILDDIR
defaults to
``build`` in the current directory.:term:
BUILDHISTORY_COMMITdocumentation/ref-manual/variables.rst +0
-0@@ -954,12 +954,12 @@ system and gives an overview of their functionand contents.
:term:BUILDHISTORY_COMMIT_AUTHOR
When inheriting the :ref:buildhistory <ref-classes-buildhistory>
class, this variable specifies the author to use for each Git commit.
- In order for the ``BUILDHISTORY_COMMIT_AUTHOR`` variable to
work, the
+ In order for the :term:BUILDHISTORY_COMMIT_AUTHORvariable
to work, the
:term:BUILDHISTORY_COMMITvariable must
be set to "1".Git requires that the value you provide for the
- ``BUILDHISTORY_COMMIT_AUTHOR`` variable takes the form of
"name
+ :term:BUILDHISTORY_COMMIT_AUTHORvariable takes the form of
"name
email@host". Providing an email address or host that is not valid
does not produce an error.documentation/ref-manual/variables.rst +0
-0@@ -1025,7 +1025,7 @@ system and gives an overview of their functionand contents.
When inheriting the :ref:buildhistory <ref-classes-buildhistory>
class, this variable optionally specifies a remote repository to
which build history pushes Git changes. In order fordocumentation/ref-manual/variables.rst +1
-1- ``BUILDHISTORY_PUSH_REPO`` to work, + :term:`BUILDHISTORY_PUSH_REPO` to work,:term:
BUILDHISTORY_COMMITmust be set to
"1".documentation/ref-manual/variables.rst +0
-0@@ -1066,7 +1066,7 @@ system and gives an overview of their functionand contents.
Points to the location of the directory that holds build statistics
when you use and enable the
:ref:buildstats <ref-classes-buildstats>class. Thedocumentation/ref-manual/variables.rst +1
-1- ``BUILDSTATS_BASE`` directory defaults to + :term:`BUILDSTATS_BASE` directory defaults to``${``\ :term:
TMPDIR\ ``}/buildstats/``.:term:
BUSYBOX_SPLIT_SUIDdocumentation/ref-manual/variables.rst +0
-0@@ -1075,7 +1075,7 @@ system and gives an overview of their functionand contents.
``setuid root``, and one for the remaining features (i.e. those that
do not require ``setuid root``).- The ``BUSYBOX_SPLIT_SUID`` variable defaults to "1", which
results in
+ The :term:BUSYBOX_SPLIT_SUIDvariable defaults to "1",
which results in
splitting the output executable file. Set the variable to "0" to get
a single output executable file.documentation/ref-manual/variables.rst +0
-0@@ -1092,7 +1092,7 @@ system and gives an overview of their functionand contents.
exported to an environment variable and thus made visible to the
software being built during the compilation step.- Default initialization for ``CFLAGS`` varies depending on
what is
+ Default initialization for :term:CFLAGSvaries depending on
what is
being built:documentation/ref-manual/variables.rst +0
-1- :term:`TARGET_CFLAGS` when building for the@@ -1131,12 +1131,12 @@ system and gives an overview of theirfunction and contents.
FOO_class-native = "native"
FOO = "other"documentation/ref-manual/variables.rst +1
-1- The underlying mechanism behind ``CLASSOVERRIDE`` is simply + The underlying mechanism behind :term:`CLASSOVERRIDE` issimply
that it is included in the default value of
:term:OVERRIDES.:term:
CLEANBROKEN
- If set to "1" within a recipe, ``CLEANBROKEN`` specifies that
the
+ If set to "1" within a recipe, :term:CLEANBROKENspecifies
that the
``make clean`` command does not work for the software being built.
Consequently, the OpenEmbedded build system will not try to run
``make clean`` during the :ref:ref-tasks-configuredocumentation/ref-manual/variables.rst +0
-0@@ -1185,7 +1185,7 @@ system and gives an overview of their functionand contents.
.. note::
- The ``COMPLEMENTARY_GLOB`` variable uses Unix filename
pattern matching
+ The :term:COMPLEMENTARY_GLOBvariable uses Unix filename
pattern matching
(`fnmatch
<https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
which is similar to the Unix style pathname pattern expansion
(glob <https://docs.python.org/3/library/glob.html>__).documentation/ref-manual/variables.rst +0
-0@@ -1193,7 +1193,7 @@ system and gives an overview of their functionand contents.
The resulting list of complementary packages is associated with an
item that can be added to
:term:IMAGE_FEATURES. An example usage of
- this is the "dev-pkgs" item that when added to
``IMAGE_FEATURES``
+ this is the "dev-pkgs" item that when added to
:term:IMAGE_FEATURES
will install -dev packages (containing headers and other development
files) for every package in the image.documentation/ref-manual/variables.rst +0
-0@@ -1215,7 +1215,7 @@ system and gives an overview of their functionand contents.
:term:
CONF_VERSION
Tracks the version of the local configuration file (i.e.
- ``local.conf``). The value for ``CONF_VERSION`` increments
each time
+ ``local.conf``). The value for :term:CONF_VERSION
increments each time
``build/conf/`` compatibility changes.:term:
CONFFILESdocumentation/ref-manual/variables.rst +0
-0@@ -1225,28 +1225,28 @@ system and gives an overview of theirfunction and contents.
files you have changed after the original installation and that you
now want to remain unchanged are overwritten. In other words, editable files might exist in the package that you do not want reset
- as part of the package update process. You can use the
``CONFFILES``
+ as part of the package update process. You can use the
:term:CONFFILES
variable to list the files in the package that you wish to prevent
the PMS from overwriting during this update process.- To use the ``CONFFILES`` variable, provide a package name
override
+ To use the :term:CONFFILESvariable, provide a package name
override
that identifies the resulting package. Then, provide a space-separated list of files. Here is an example::CONFFILES_${PN} += "${sysconfdir}/file1 \
${sysconfdir}/file2 ${sysconfdir}/file3"- There is a relationship between the ``CONFFILES`` and
``FILES``
- variables. The files listed within ``CONFFILES`` must be a
subset of
- the files listed within ``FILES``. Because the configuration
files
- you provide with ``CONFFILES`` are simply being identified so
that
+ There is a relationship between the :term:CONFFILESand
:term:FILES
+ variables. The files listed within :term:CONFFILESmust be
a subset of
+ the files listed within :term:FILES. Because the
configuration files
+ you provide with :term:CONFFILESare simply being
identified so that
the PMS will not overwrite them, it makes sense that the files must
- already be included as part of the package through the
``FILES``
+ already be included as part of the package through the
:term:FILES
variable... note::
- When specifying paths as part of the ``CONFFILES``
variable, it is
+ When specifying paths as part of the :term:CONFFILES
variable, it is
good practice to use appropriate path variables. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
rather than ``/usr/bin``. You can find a list of these variables atdocumentation/ref-manual/variables.rst +0
-0@@ -1259,7 +1259,7 @@ system and gives an overview of their functionand contents.
variable as an environment variable. By default, the variable is set
to null ("").- The ``CONFIG_INITRAMFS_SOURCE`` can be either a single cpio
archive
+ The :term:CONFIG_INITRAMFS_SOURCEcan be either a single
cpio archive
with a ``.cpio`` suffix or a space-separated list of directories and
files for building the initramfs image. A cpio archive should contain
a filesystem archive to be used as an initramfs image. Directoriesdocumentation/ref-manual/variables.rst +0
-0@@ -1287,8 +1287,8 @@ system and gives an overview of their functionand contents.
:ref:features_check <ref-classes-features_check>class, this variable identifies distribution features that would be
in conflict should the recipe be built. In other words, if the
- ``CONFLICT_DISTRO_FEATURES`` variable lists a feature that
also
- appears in ``DISTRO_FEATURES`` within the current
configuration, then
+ :term:CONFLICT_DISTRO_FEATURESvariable lists a feature
that also
+ appears in :term:DISTRO_FEATURESwithin the current
configuration, then
the recipe will be skipped, and if the build system attempts to build
the recipe then an error will be triggered.documentation/ref-manual/variables.rst +0
-0@@ -1297,16 +1297,16 @@ system and gives an overview of theirfunction and contents.
archived by the :ref:archiver <ref-classes-archiver>class. In
other words, if a license in a recipe's :term:LICENSEvalue is in the value of
- ``COPYLEFT_LICENSE_EXCLUDE``, then its source is not archived
by the
+ :term:COPYLEFT_LICENSE_EXCLUDE, then its source is not
archived by the
class... note::
- The ``COPYLEFT_LICENSE_EXCLUDE`` variable takes precedence
over the
+ The :term:COPYLEFT_LICENSE_EXCLUDEvariable takes
precedence over the
:term:COPYLEFT_LICENSE_INCLUDEvariable.The default value, which is "CLOSED Proprietary", for
documentation/ref-manual/variables.rst +1
-1- ``COPYLEFT_LICENSE_EXCLUDE`` is set by the + :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the:ref:
copyleft_filter <ref-classes-copyleft_filter>class, which
is inherited by the ``archiver`` class.documentation/ref-manual/variables.rst +0
-0@@ -1314,7 +1314,7 @@ system and gives an overview of their functionand contents.
A space-separated list of licenses to include in the source archived
by the :ref:archiver <ref-classes-archiver>class. In other words, if a license in a recipe's :term:LICENSE
- value is in the value of ``COPYLEFT_LICENSE_INCLUDE``, then
its
+ value is in the value of :term:COPYLEFT_LICENSE_INCLUDE,
then its
source is archived by the class.The default value is set by the
documentation/ref-manual/variables.rst +0
-0@@ -1325,28 +1325,28 @@ system and gives an overview of theirfunction and contents. :term:
COPYLEFT_PN_EXCLUDE
A list of recipes to exclude in the source archived by the :ref:archiver <ref-classes-archiver>class. The
- ``COPYLEFT_PN_EXCLUDE`` variable overrides the license
inclusion and
+ :term:COPYLEFT_PN_EXCLUDEvariable overrides the license
inclusion and
exclusion caused through the :term:COPYLEFT_LICENSE_INCLUDEand :term:COPYLEFT_LICENSE_EXCLUDE
variables, respectively.The default value, which is "" indicating to not explicitly exclude
- any recipes by name, for ``COPYLEFT_PN_EXCLUDE`` is set by
the
+ any recipes by name, for :term:COPYLEFT_PN_EXCLUDEis set
by the
:ref:copyleft_filter <ref-classes-copyleft_filter>class, which
is inherited by the ``archiver`` class.:term:
COPYLEFT_PN_INCLUDE
A list of recipes to include in the source archived by the :ref:archiver <ref-classes-archiver>class. The
- ``COPYLEFT_PN_INCLUDE`` variable overrides the license
inclusion and
+ :term:COPYLEFT_PN_INCLUDEvariable overrides the license
inclusion and
exclusion caused through the :term:COPYLEFT_LICENSE_INCLUDEand :term:COPYLEFT_LICENSE_EXCLUDE
variables, respectively.The default value, which is "" indicating to not explicitly include
- any recipes by name, for ``COPYLEFT_PN_INCLUDE`` is set by
the
+ any recipes by name, for :term:COPYLEFT_PN_INCLUDEis set
by the
:ref:copyleft_filter <ref-classes-copyleft_filter>class, which
is inherited by the ``archiver`` class.documentation/ref-manual/variables.rst +0
-0@@ -1356,7 +1356,7 @@ system and gives an overview of their functionand contents.
Recipe types are ``target``, ``native``, ``nativesdk``, ``cross``,
``crosssdk``, and ``cross-canadian``.- The default value, which is "target*", for
``COPYLEFT_RECIPE_TYPES``
+ The default value, which is "target*", for
:term:COPYLEFT_RECIPE_TYPES
is set by the :ref:copyleft_filter <ref-classes-copyleft_filter>
class, which is inherited by the ``archiver`` class.documentation/ref-manual/variables.rst +0
-0@@ -1370,7 +1370,7 @@ system and gives an overview of their functionand contents.
.. note::
- The ``COPY_LIC_DIRS`` does not offer a path for adding
licenses for
+ The :term:COPY_LIC_DIRSdoes not offer a path for adding
licenses for
newly installed packages to an image, which might be most suitable for
read-only filesystems that cannot be upgraded. See the :term:LICENSE_CREATE_PACKAGEvariable for additional information.documentation/ref-manual/variables.rst +0
-0@@ -1386,7 +1386,7 @@ system and gives an overview of their functionand contents.
.. note::
- The ``COPY_LIC_MANIFEST`` does not offer a path for adding
licenses for
+ The :term:COPY_LIC_MANIFESTdoes not offer a path for
adding licenses for
newly installed packages to an image, which might be most suitable for
read-only filesystems that cannot be upgraded. See the :term:LICENSE_CREATE_PACKAGEvariable for additional information.documentation/ref-manual/variables.rst +0
-0@@ -1406,24 +1406,24 @@ system and gives an overview of theirfunction and contents.
Specifies the parent directory of the OpenEmbedded-Core Metadata
layer (i.e. ``meta``).- It is an important distinction that ``COREBASE`` points to
the parent
+ It is an important distinction that :term:COREBASEpoints
to the parent
of this layer and not the layer itself. Consider an example where you
have cloned the Poky Git repository and retained the ``poky`` name
- for your local copy of the repository. In this case,
``COREBASE``
+ for your local copy of the repository. In this case,
:term:COREBASE
points to the ``poky`` folder because it is the parent directory of
the ``poky/meta`` layer.:term:
COREBASE_FILES
Lists files from the :term:COREBASEdirectory that should be copied other than the layers listed in the
- ``bblayers.conf`` file. The ``COREBASE_FILES`` variable
allows
+ ``bblayers.conf`` file. The :term:COREBASE_FILESvariable
allows
to copy metadata from the OpenEmbedded build system into the extensible SDK.documentation/ref-manual/variables.rst +1
-1- Explicitly listing files in ``COREBASE`` is needed because it + Explicitly listing files in :term:`COREBASE` is neededbecause it
typically contains build directories and other files that should not
normally be copied into the extensible SDK. Consequently, the value
- of ``COREBASE_FILES`` is used in order to only copy the files
that
+ of :term:COREBASE_FILESis used in order to only copy the
files that
are actually needed.:term:
CPPdocumentation/ref-manual/variables.rst +0
-0@@ -1435,7 +1435,7 @@ system and gives an overview of their functionand contents.
variable and thus made visible to the software being built during the
compilation step.- Default initialization for ``CPPFLAGS`` varies depending on
what is
+ Default initialization for :term:CPPFLAGSvaries depending
on what is
being built:documentation/ref-manual/variables.rst +0
-1- :term:`TARGET_CPPFLAGS` when building for@@ -1449,12 +1449,12 @@ system and gives an overview of theirfunction and contents.
:term:
CROSS_COMPILE
The toolchain binary prefix for the target tools. Thedocumentation/ref-manual/variables.rst +1
-1- ``CROSS_COMPILE`` variable is the same as the + :term:`CROSS_COMPILE` variable is the same as the:term:
TARGET_PREFIXvariable... note::
documentation/ref-manual/variables.rst +1
-1- The OpenEmbedded build system sets the ``CROSS_COMPILE`` + The OpenEmbedded build system sets the:term:
CROSS_COMPILE
variable only in certain contexts (e.g. when building for kernel
and kernel module recipes).documentation/ref-manual/variables.rst +0
-0@@ -1470,7 +1470,7 @@ system and gives an overview of their functionand contents.
exported to an environment variable and thus made visible to the
software being built during the compilation step.- Default initialization for ``CXXFLAGS`` varies depending on
what is
+ Default initialization for :term:CXXFLAGSvaries depending
on what is
being built:documentation/ref-manual/variables.rst +0
-1- :term:`TARGET_CXXFLAGS` when building for@@ -1505,7 +1505,7 @@ system and gives an overview of their functionand contents.
:term:
DEBIAN_NOAUTONAME
When the :ref:debian <ref-classes-debian>class is inherited,
- which is the default behavior, ``DEBIAN_NOAUTONAME``
specifies a
+ which is the default behavior, :term:DEBIAN_NOAUTONAME
specifies a
particular package should not be renamed according to Debian library
package naming. You must use the package name as an override when you
set this variable. Here is an example from the ``fontconfig`` recipe::documentation/ref-manual/variables.rst +0
-0@@ -1514,7 +1514,7 @@ system and gives an overview of their functionand contents.
:term:
DEBIANNAME
When the :ref:debian <ref-classes-debian>class is inherited,
- which is the default behavior, ``DEBIANNAME`` allows you to
override
+ which is the default behavior, :term:DEBIANNAMEallows you
to override
the library name for an individual package. Overriding the library
name in these cases is rare. You must use the package name as an
override when you set this variable. Here is an example from thedocumentation/ref-manual/variables.rst +0
-0@@ -1542,14 +1542,14 @@ system and gives an overview of theirfunction and contents.
.. note::
- The bias provided by ``DEFAULT_PREFERENCE`` is weak and is
overridden
+ The bias provided by :term:DEFAULT_PREFERENCEis weak
and is overridden
by :term:BBFILE_PRIORITYif that variable is different between two
layers that contain different versions of the same recipe.:term:
DEFAULTTUNE
The default CPU and Application Binary Interface (ABI) tunings (i.e.
the "tune") used by the OpenEmbedded build system. Thedocumentation/ref-manual/variables.rst +1
-1- ``DEFAULTTUNE`` helps define + :term:`DEFAULTTUNE` helps define:term:
TUNE_FEATURES.The default tune is either implicitly or explicitly set by the
documentation/ref-manual/variables.rst +0
-0@@ -1574,17 +1574,17 @@ system and gives an overview of theirfunction and contents. :ref:
ref-tasks-configuretask for ``foo`` runs. This mechanism is implemented by having ``do_configure`` depend on
the :ref:ref-tasks-populate_sysroottask ofdocumentation/ref-manual/variables.rst +1
-1- each recipe listed in ``DEPENDS``, through a + each recipe listed in :term:`DEPENDS`, through a``[``\ :ref:
deptask <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:variable flags>\ ``]``
declaration in the :ref:base <ref-classes-base>class... note::
- It seldom is necessary to reference, for example,
``STAGING_DIR_HOST``
+ It seldom is necessary to reference, for example,
:term:STAGING_DIR_HOST
explicitly. The standard classes and build-related variables are
configured to automatically use the appropriate staging sysroots.- As another example, ``DEPENDS`` can also be used to add
utilities
+ As another example, :term:DEPENDScan also be used to add
utilities
that run on the build machine during the build. For example, a recipe
that makes use of a code generator built by the recipe ``codegen``
might have the following::documentation/ref-manual/variables.rst +0
-0@@ -1597,15 +1597,15 @@ system and gives an overview of theirfunction and contents.
.. note::
- - ``DEPENDS`` is a list of recipe names. Or, to be more
precise,
+ - :term:DEPENDSis a list of recipe names. Or, to be
more precise,
it is a list of :term:PROVIDESnames, which usually match recipe names. Putting a package name such asdocumentation/ref-manual/variables.rst +1
-1- "foo-dev" in ``DEPENDS`` does not make sense. Use "foo" + "foo-dev" in :term:`DEPENDS` does not make sense. Use"foo"
instead, as this will put files from all the packages that make
up ``foo``, which includes those from ``foo-dev``, into the
sysroot.- - One recipe having another recipe in ``DEPENDS`` does
not by
+ - One recipe having another recipe in :term:DEPENDS
does not by
itself add any runtime dependencies between the packages
produced by the two recipes. However, as explained in the ":ref:overview-manual/concepts:automatically added runtime dependencies"documentation/ref-manual/variables.rst +0
-0@@ -1613,12 +1613,12 @@ system and gives an overview of theirfunction and contents.
runtime dependencies will often be added automatically, meaning
``DEPENDS`` alone is sufficient for most recipes.- - Counterintuitively, ``DEPENDS`` is often necessary even
for
+ - Counterintuitively, :term:DEPENDSis often necessary
even for
recipes that install precompiled components. For example, if
``libfoo`` is a precompiled library that links against ``libbar``, then linking against ``libfoo`` requires both
``libfoo`` and ``libbar`` to be available in the sysroot.
- Without a ``DEPENDS`` from the recipe that installs
``libfoo``
+ Without a :term:DEPENDSfrom the recipe that installs
``libfoo``
to the recipe that installs ``libbar``, other recipes might
fail to link against ``libfoo``.documentation/ref-manual/variables.rst +0
-0@@ -1658,7 +1658,7 @@ system and gives an overview of their functionand contents.
DEPLOY_DIR_DEB= "${DEPLOY_DIR}/deb"The :ref:
package_deb <ref-classes-package_deb>class uses thedocumentation/ref-manual/variables.rst +1
-1- ``DEPLOY_DIR_DEB`` variable to make sure the + :term:`DEPLOY_DIR_DEB` variable to make sure the:ref:
ref-tasks-package_write_debtask
writes Debian packages into the appropriate folder. For more information on how packaging works, see thedocumentation/ref-manual/variables.rst +0
-0@@ -1693,7 +1693,7 @@ system and gives an overview of their functionand contents.
DEPLOY_DIR_IPK= "${DEPLOY_DIR}/ipk"The :ref:
package_ipk <ref-classes-package_ipk>class uses thedocumentation/ref-manual/variables.rst +1
-1- ``DEPLOY_DIR_IPK`` variable to make sure the + :term:`DEPLOY_DIR_IPK` variable to make sure the:ref:
ref-tasks-package_write_ipktask
writes IPK packages into the appropriate folder. For more information
on how packaging works, see thedocumentation/ref-manual/variables.rst +0
-0@@ -1713,7 +1713,7 @@ system and gives an overview of their functionand contents.
DEPLOY_DIR_RPM= "${DEPLOY_DIR}/rpm"The :ref:
package_rpm <ref-classes-package_rpm>class uses thedocumentation/ref-manual/variables.rst +1
-1- ``DEPLOY_DIR_RPM`` variable to make sure the + :term:`DEPLOY_DIR_RPM` variable to make sure the:ref:
ref-tasks-package_write_rpmtask
writes RPM packages into the appropriate folder. For more information
on how packaging works, see thedocumentation/ref-manual/variables.rst +0
-0@@ -1733,7 +1733,7 @@ system and gives an overview of their functionand contents.
DEPLOY_DIR_TAR= "${DEPLOY_DIR}/tar"The :ref:
package_tar <ref-classes-package_tar>class uses thedocumentation/ref-manual/variables.rst +1
-1- ``DEPLOY_DIR_TAR`` variable to make sure the + :term:`DEPLOY_DIR_TAR` variable to make sure the:ref:
ref-tasks-package_write_tartask
writes TAR packages into the appropriate folder. For more information
on how packaging works, see thedocumentation/ref-manual/variables.rst +0
-0@@ -1742,19 +1742,19 @@ system and gives an overview of theirfunction and contents.
:term:
DEPLOYDIR
When inheriting the :ref:deploy <ref-classes-deploy>class, the
- ``DEPLOYDIR`` points to a temporary work area for deployed
files that
+ :term:DEPLOYDIRpoints to a temporary work area for
deployed files that
is set in the ``deploy`` class as follows::DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
Recipes inheriting the ``deploy`` class should copy files to be
- deployed into ``DEPLOYDIR``, and the class will take care of
copying
+ deployed into :term:DEPLOYDIR, and the class will take care
of copying
them into :term:DEPLOY_DIR_IMAGE
afterwards.:term:
DESCRIPTION
The package description used by package managers. If not set,documentation/ref-manual/variables.rst +1
-1- ``DESCRIPTION`` takes the value of the :term:`SUMMARY` + :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`variable.
:term:
DISTROdocumentation/ref-manual/variables.rst +0
-0@@ -1762,26 +1762,26 @@ system and gives an overview of theirfunction and contents.
of the distribution, see the :term:DISTRO_NAME
variable.- The ``DISTRO`` variable corresponds to a distribution
configuration
+ The :term:DISTROvariable corresponds to a distribution
configuration
file whose root name is the same as the variable's argument and whose
filename extension is ``.conf``. For example, the distribution
configuration file for the Poky distribution is named ``poky.conf``
and resides in the ``meta-poky/conf/distro`` directory of the :term:Source Directory.- Within that ``poky.conf`` file, the ``DISTRO`` variable is
set as
+ Within that ``poky.conf`` file, the :term:DISTROvariable
is set as
follows::DISTRO = "poky"
Distribution configuration files are located in a ``conf/distro``
directory within the :term:Metadatathat contains the
- distribution configuration. The value for ``DISTRO`` must not
contain
+ distribution configuration. The value for :term:DISTROmust
not contain
spaces, and is typically all lower-case... note::
- If the ``DISTRO`` variable is blank, a set of default
configurations
+ If the :term:DISTROvariable is blank, a set of default
configurations
are used, which are specified within ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.documentation/ref-manual/variables.rst +0
-0@@ -1808,11 +1808,11 @@ system and gives an overview of theirfunction and contents.
configuration file.In most cases, the presence or absence of a feature in
- ``DISTRO_FEATURES`` is translated to the appropriate option
supplied
+ :term:DISTRO_FEATURESis translated to the appropriate
option supplied
to the configure script during the :ref:ref-tasks-configuretask for recipes that optionally support the feature. For example, specifying "x11" in
- ``DISTRO_FEATURES``, causes every piece of software built for
the
+ :term:DISTRO_FEATURES, causes every piece of software built
for the
target that can optionally support X11 to have its X11 support
enabled.documentation/ref-manual/variables.rst +0
-0@@ -1821,8 +1821,8 @@ system and gives an overview of their functionand contents.
provide with this variable, see the
":ref:ref-features-distro" section.:term:
DISTRO_FEATURES_BACKFILL
- Features to be added to ``DISTRO_FEATURES`` if not also
present indocumentation/ref-manual/variables.rst +1
-1- ``DISTRO_FEATURES_BACKFILL_CONSIDERED``. + Features to be added to :term:`DISTRO_FEATURES` if not alsopresent in
+ :term:DISTRO_FEATURES_BACKFILL_CONSIDERED.This variable is set in the ``meta/conf/bitbake.conf`` file. It is
not intended to be user-configurable. It is best to just referencedocumentation/ref-manual/variables.rst +0
-0@@ -1831,8 +1831,8 @@ system and gives an overview of their functionand contents.
for more information.:term:
DISTRO_FEATURES_BACKFILL_CONSIDEREDdocumentation/ref-manual/variables.rst +0
-2- Features from ``DISTRO_FEATURES_BACKFILL`` that should not be - backfilled (i.e. added to ``DISTRO_FEATURES``) during thebuild. See
+ Features from :term:DISTRO_FEATURES_BACKFILLthat should
not be
+ backfilled (i.e. added to :term:DISTRO_FEATURES) during the
build. See
the ":ref:ref-features-backfill" section for more information.:term:
DISTRO_FEATURES_DEFAULTdocumentation/ref-manual/variables.rst +0
-0@@ -1844,14 +1844,14 @@ system and gives an overview of theirfunction and contents.
able to reuse the default
:term:DISTRO_FEATURESoptions without the
need to write out the full set. Here is an example that uses
- ``DISTRO_FEATURES_DEFAULT`` from a custom distro
configuration file::
+ :term:DISTRO_FEATURES_DEFAULTfrom a custom distro
configuration file::
DISTRO_FEATURES?= "${DISTRO_FEATURES_DEFAULT} myfeature":term:
DISTRO_FEATURES_FILTER_NATIVE
Specifies a list of features that if present in the target :term:DISTRO_FEATURESvalue should be
- included in ``DISTRO_FEATURES`` when building native recipes.
This
+ included in :term:DISTRO_FEATURESwhen building native
recipes. This
variable is used in addition to the features filtered using the
:term:DISTRO_FEATURES_NATIVE
variable.documentation/ref-manual/variables.rst +0
-0@@ -1859,7 +1859,7 @@ system and gives an overview of their functionand contents. :term:
DISTRO_FEATURES_FILTER_NATIVESDK
Specifies a list of features that if present in the target :term:DISTRO_FEATURESvalue should be
- included in ``DISTRO_FEATURES`` when building nativesdk
recipes. This
+ included in :term:DISTRO_FEATURESwhen building nativesdk
recipes. This
variable is used in addition to the features filtered using the
:term:DISTRO_FEATURES_NATIVESDK
variable.documentation/ref-manual/variables.rst +0
-0@@ -1884,14 +1884,14 @@ system and gives an overview of theirfunction and contents.
The long name of the distribution. For information on the short name
of the distribution, see the :term:DISTROvariable.documentation/ref-manual/variables.rst +1
-1- The ``DISTRO_NAME`` variable corresponds to a distribution + The :term:`DISTRO_NAME` variable corresponds to adistribution
configuration file whose root name is the same as the variable's
argument and whose filename extension is ``.conf``. For example, the
distribution configuration file for the Poky distribution is named
``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
of the :term:Source Directory.- Within that ``poky.conf`` file, the ``DISTRO_NAME`` variable
is set
+ Within that ``poky.conf`` file, the :term:DISTRO_NAME
variable is set
as follows::
DISTRO_NAME= "Poky (Yocto Project Reference Distro)"documentation/ref-manual/variables.rst +0
-0@@ -1902,7 +1902,7 @@ system and gives an overview of their functionand contents.
.. note::
documentation/ref-manual/variables.rst +1
-1- If the ``DISTRO_NAME`` variable is blank, a set of default + If the :term:`DISTRO_NAME` variable is blank, a set ofdefault
configurations are used, which are specified within ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.documentation/ref-manual/variables.rst +0
-0@@ -1914,10 +1914,10 @@ system and gives an overview of theirfunction and contents.
distribution. By default, this list includes the value of :term:DISTRO.- You can extend ``DISTROOVERRIDES`` to add extra overrides
that should
+ You can extend :term:DISTROOVERRIDESto add extra overrides
that should
apply to the distribution.- The underlying mechanism behind ``DISTROOVERRIDES`` is simply
that it
+ The underlying mechanism behind :term:DISTROOVERRIDESis
simply that it
is included in the default value of
:term:OVERRIDES.documentation/ref-manual/variables.rst +0
-0@@ -1936,13 +1936,13 @@ system and gives an overview of theirfunction and contents.
:term:
DL_DIR
The central download directory used by the build process to store
- downloads. By default, ``DL_DIR`` gets files suitable for
mirroring
+ downloads. By default, :term:DL_DIRgets files suitable for
mirroring
for everything except Git repositories. If you want tarballs of Git
repositories, use the :term:BB_GENERATE_MIRROR_TARBALLS
variable.- You can set this directory by defining the ``DL_DIR``
variable in the
+ You can set this directory by defining the :term:DL_DIR
variable in the
``conf/local.conf`` file. This directory is self-maintaining and you
should not have to touch it. By default, the directory is ``downloads`` in the :term:Build Directory.documentation/ref-manual/variables.rst +0
-0@@ -1956,7 +1956,7 @@ system and gives an overview of their functionand contents.
During a first build, the system downloads many different source code
tarballs from various upstream projects. Downloading can take a
while, particularly if your network connection is slow. Tarballs are
- all stored in the directory defined by ``DL_DIR`` and the
build
+ all stored in the directory defined by :term:DL_DIRand the
build
system looks there first to find source tarballs... note::
documentation/ref-manual/variables.rst +0
-0@@ -1985,7 +1985,7 @@ system and gives an overview of their functionand contents.
:term:EFI_PROVIDER
When building bootable images (i.e. where ``hddimg``, ``iso``, or
``wic.vmdk`` is in :term:IMAGE_FSTYPES), the
- ``EFI_PROVIDER`` variable specifies the EFI bootloader to
use. The
+ :term:EFI_PROVIDERvariable specifies the EFI bootloader to
use. The
default is "grub-efi", but "systemd-boot" can be used instead.See the :ref:
systemd-boot <ref-classes-systemd-boot>anddocumentation/ref-manual/variables.rst +0
-0@@ -2006,7 +2006,7 @@ system and gives an overview of their functionand contents.
database. By default, the value of this variable is ``${``\ :term:LOG_DIR\ ``}/error-report``.documentation/ref-manual/variables.rst +1
-1- You can set ``ERR_REPORT_DIR`` to the path you want the error + You can set :term:`ERR_REPORT_DIR` to the path you want theerror
reporting tool to store the debug files as follows in your ``local.conf`` file::documentation/ref-manual/variables.rst +0
-0@@ -2031,11 +2031,11 @@ system and gives an overview of theirfunction and contents.
libraries resolver might implicitly define some
dependencies between
packages.documentation/ref-manual/variables.rst +1
-1- The ``EXCLUDE_FROM_SHLIBS`` variable is similar to the + The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the:term:
PRIVATE_LIBSvariable, which excludes a package's particular libraries only and not the whole package.- Use the ``EXCLUDE_FROM_SHLIBS`` variable by setting it to "1"
for a
+ Use the :term:EXCLUDE_FROM_SHLIBSvariable by setting it to
"1" for a
particular package::
EXCLUDE_FROM_SHLIBS= "1"documentation/ref-manual/variables.rst +0
-0@@ -2051,18 +2051,18 @@ system and gives an overview of theirfunction and contents.
.. note::
- Recipes added to ``EXCLUDE_FROM_WORLD`` may still be built
during a
+ Recipes added to :term:EXCLUDE_FROM_WORLDmay still be
built during a
world build in order to satisfy dependencies of other recipes. Adding
- a recipe to ``EXCLUDE_FROM_WORLD`` only ensures that the
recipe is not
+ a recipe to :term:EXCLUDE_FROM_WORLDonly ensures that
the recipe is not
explicitly added to the list of build targets in a world build.:term:
EXTENDPE
Used with file and pathnames to create a prefix for a recipe'sdocumentation/ref-manual/variables.rst +0
-2- version based on the recipe's :term:`PE` value. If ``PE`` - is set and greater than zero for a recipe, ``EXTENDPE``becomes that
- value (e.g if ``PE`` is equal to "1" then ``EXTENDPE``
becomes "1").
- If a recipe's ``PE`` is not set (the default) or is equal to
zero,documentation/ref-manual/variables.rst +2
-1- ``EXTENDPE`` becomes "". + version based on the recipe's :term:`PE` value. If :term:`PE` + is set and greater than zero for a recipe, :term:`EXTENDPE`becomes that
+ value (e.g if :term:PEis equal to "1" then
:term:EXTENDPEbecomes "1").
+ If a recipe's :term:PEis not set (the default) or is equal
to zero,
+ :term:EXTENDPEbecomes "".See the :term:
STAMPvariable for an example.documentation/ref-manual/variables.rst +0
-0@@ -2078,11 +2078,11 @@ system and gives an overview of theirfunction and contents.
manager to upgrade these types of packages in lock-step.:term:
EXTERNAL_KERNEL_TOOLS
- When set, the ``EXTERNAL_KERNEL_TOOLS`` variable indicates
that these
+ When set, the :term:EXTERNAL_KERNEL_TOOLSvariable
indicates that these
tools are not in the source tree.When kernel tools are available in the tree, they are preferred over
- any externally installed tools. Setting the
``EXTERNAL_KERNEL_TOOLS``
+ any externally installed tools. Setting the
:term:EXTERNAL_KERNEL_TOOLS
variable tells the OpenEmbedded build system to prefer the installed
external tools. See the
:ref:kernel-yocto <ref-classes-kernel-yocto>class indocumentation/ref-manual/variables.rst +0
-0@@ -2117,7 +2117,7 @@ system and gives an overview of their functionand contents.
:term:
EXTRA_AUTORECONF
For recipes inheriting the :ref:autotools <ref-classes-autotools>
- class, you can use ``EXTRA_AUTORECONF`` to specify extra
options to
+ class, you can use :term:EXTRA_AUTORECONFto specify extra
options to
pass to the ``autoreconf`` command that is executed during the
:ref:ref-tasks-configuretask.documentation/ref-manual/variables.rst +0
-0@@ -2179,7 +2179,7 @@ system and gives an overview of their functionand contents.
installing into the root filesystem.Sometimes a recipe is required to build the final image but is not
- needed in the root filesystem. You can use the
``EXTRA_IMAGEDEPENDS``
+ needed in the root filesystem. You can use the
:term:EXTRA_IMAGEDEPENDS
variable to list these recipes and thus specify the dependencies. A
typical example is a required bootloader in a machine configuration.documentation/ref-manual/variables.rst +0
-0@@ -2210,12 +2210,12 @@ system and gives an overview of theirfunction and contents.
:term:EXTRA_OEMAKE
Additional GNU ``make`` options.- Because the ``EXTRA_OEMAKE`` defaults to "", you need to set
the
+ Because the :term:EXTRA_OEMAKEdefaults to "", you need to
set the
variable to specify any required GNU options.:term:
PARALLEL_MAKEand
:term:PARALLEL_MAKEINSTalso make use ofdocumentation/ref-manual/variables.rst +1
-1- ``EXTRA_OEMAKE`` to pass the required flags. + :term:`EXTRA_OEMAKE` to pass the required flags.:term:
EXTRA_OESCONS
When inheriting the :ref:scons <ref-classes-scons>class, thisdocumentation/ref-manual/variables.rst +0
-0@@ -2231,7 +2231,7 @@ system and gives an overview of their functionand contents.
group configurations to a specific recipe.The set list of commands you can configure using the
- ``EXTRA_USERS_PARAMS`` is shown in the ``extrausers`` class.
These
+ :term:EXTRA_USERS_PARAMSis shown in the ``extrausers``
class. These
commands map to the normal Unix commands of the same names::#
EXTRA_USERS_PARAMS= "\documentation/ref-manual/variables.rst +0
-0@@ -2257,19 +2257,19 @@ system and gives an overview of theirfunction and contents.
:term:FEATURE_PACKAGES
Defines one or more packages to include in an image when a specific
item is included in :term:IMAGE_FEATURES.
- When setting the value, ``FEATURE_PACKAGES`` should have the
name of
+ When setting the value, :term:FEATURE_PACKAGESshould have
the name of
the feature item as an override. Here is an example::
FEATURE_PACKAGES_widget= "package1 package2"- In this example, if "widget" were added to
``IMAGE_FEATURES``,
+ In this example, if "widget" were added to
:term:IMAGE_FEATURES,
package1 and package2 would be included in the image... note::
- Packages installed by features defined through
``FEATURE_PACKAGES``
+ Packages installed by features defined through
:term:FEATURE_PACKAGES
are often package groups. While similarly named, you should not
- confuse the ``FEATURE_PACKAGES`` variable with package
groups, which
+ confuse the :term:FEATURE_PACKAGESvariable with package
groups, which
are discussed elsewhere in the documentation.:term:
FEED_DEPLOYDIR_BASE_URIdocumentation/ref-manual/variables.rst +0
-0@@ -2294,7 +2294,7 @@ system and gives an overview of their functionand contents.
:term:PACKAGESvariable lists the packages
generated by a recipe.- To use the ``FILES`` variable, provide a package name
override that
+ To use the :term:FILESvariable, provide a package name
override that
identifies the resulting package. Then, provide a space-separated
list of files or paths that identify the files you want included as
part of the resulting package. Here is an example::documentation/ref-manual/variables.rst +0
-0@@ -2309,7 +2309,7 @@ system and gives an overview of their functionand contents.
syntax. For details on the syntax, see the
documentation by
following the previous link.- - When specifying paths as part of the ``FILES``
variable, it is
+ - When specifying paths as part of the :term:FILES
variable, it is
good practice to use appropriate path variables. For example,
use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
rather than ``/usr/bin``. You can find a list of thesedocumentation/ref-manual/variables.rst +0
-0@@ -2318,7 +2318,7 @@ system and gives an overview of their functionand contents.
find the default values of the various ``FILES_*`` variables in
this file.- If some of the files you provide with the ``FILES`` variable
are
+ If some of the files you provide with the :term:FILES
variable are
editable and you know they should not be overwritten during the
package update process by the Package Management System (PMS), you
can identify these files so that the PMS will not overwrite them. Seedocumentation/ref-manual/variables.rst +0
-0@@ -2328,7 +2328,7 @@ system and gives an overview of their functionand contents.
:term:FILES_SOLIBSDEV
Defines the file specification to match :term:SOLIBSDEV. In other words,
- ``FILES_SOLIBSDEV`` defines the full path name of the
development
+ :term:FILES_SOLIBSDEVdefines the full path name of the
development
symbolic link (symlink) for shared libraries on the target platform.The following statement from the ``bitbake.conf`` shows how it is
documentation/ref-manual/variables.rst +0
-0@@ -2341,11 +2341,11 @@ system and gives an overview of theirfunction and contents.
looking for files and patches as it processes recipes and append
files. The default directories BitBake uses when it processes recipes
are initially defined by the :term:FILESPATHdocumentation/ref-manual/variables.rst +2
-2- variable. You can extend ``FILESPATH`` variable by using - ``FILESEXTRAPATHS``. + variable. You can extend :term:`FILESPATH` variable by using + :term:`FILESEXTRAPATHS`.Best practices dictate that you accomplish this by using
- ``FILESEXTRAPATHS`` from within a ``.bbappend`` file and that
you
+ :term:FILESEXTRAPATHSfrom within a ``.bbappend`` file and
that you
prepend paths as follows::
FILESEXTRAPATHS_prepend:= "${THISDIR}/${PN}:"documentation/ref-manual/variables.rst +0
-0@@ -2356,7 +2356,7 @@ system and gives an overview of their functionand contents.
.. note::
- When extending ``FILESEXTRAPATHS``, be sure to use the
immediate
+ When extending :term:FILESEXTRAPATHS, be sure to use the
immediate
expansion (``:=``) operator. Immediate expansion makes sure that
BitBake evaluates :term:THISDIRat the time the directive is encountered rather than at some later time whendocumentation/ref-manual/variables.rst +0
-0@@ -2373,7 +2373,7 @@ system and gives an overview of their functionand contents.
FILESEXTRAPATHS_prepend:= "${THISDIR}/files:"In this example, the build system extends the
- ``FILESPATH`` variable to include a directory named ``files``
that is
+ :term:FILESPATHvariable to include a directory named
``files`` that is
in the same directory as the corresponding append file.This next example specifically adds three paths::
documentation/ref-manual/variables.rst +0
-0@@ -2396,7 +2396,7 @@ system and gives an overview of their functionand contents.
.. note::For a layer that supports a single BSP, the override could just be
documentation/ref-manual/variables.rst +1
-1- the value of ``MACHINE``. + the value of :term:`MACHINE`.By prepending paths in ``.bbappend`` files, you allow multiple append
files that reside in different layers but are used for the samedocumentation/ref-manual/variables.rst +0
-0@@ -2405,7 +2405,7 @@ system and gives an overview of their functionand contents.
:term:FILESOVERRIDES
A subset of :term:OVERRIDESused by the
OpenEmbedded build system for creatingdocumentation/ref-manual/variables.rst +1
-1- :term:`FILESPATH`. The ``FILESOVERRIDES`` variable + :term:`FILESPATH`. The :term:`FILESOVERRIDES` variableuses overrides to automatically extend the
:term:FILESPATHvariable. For an example of how
that works, see the :term:FILESPATHvariabledocumentation/ref-manual/variables.rst +0
-0@@ -2414,13 +2414,13 @@ system and gives an overview of theirQuoted 3 lines
function and contents.
":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:conditional
Quoted 593 lines
syntax (overrides)`"
section of the BitBake User Manual.documentation/ref-manual/variables.rst +1
-1- By default, the ``FILESOVERRIDES`` variable is defined as:: + By default, the :term:`FILESOVERRIDES` variable is definedas::
FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
.. note::
- Do not hand-edit the ``FILESOVERRIDES`` variable. The
values match up
+ Do not hand-edit the :term:FILESOVERRIDESvariable. The
values match up
with expected overrides and are used in an expected manner by the
build system.documentation/ref-manual/variables.rst +0
-0@@ -2429,11 +2429,11 @@ system and gives an overview of theirfunction and contents.
when searching for patches and files.During the build process, BitBake searches each directory in
- ``FILESPATH`` in the specified order when looking for files
and
+ :term:FILESPATHin the specified order when looking for
files and
patches specified by each ``file://`` URI in a recipe's :term:SRC_URIstatements.- The default value for the ``FILESPATH`` variable is defined
in the
+ The default value for the :term:FILESPATHvariable is
defined in the
``base.bbclass`` class found in ``meta/classes`` in the :term:Source Directory::documentation/ref-manual/variables.rst +0
-0@@ -2441,22 +2441,22 @@ system and gives an overview of theirfunction and contents. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
The
- ``FILESPATH`` variable is automatically extended using the
overrides
+ :term:FILESPATHvariable is automatically extended using
the overrides
from the :term:FILESOVERRIDESvariable... note::
- - Do not hand-edit the ``FILESPATH`` variable. If you
want the
+ - Do not hand-edit the :term:FILESPATHvariable. If you
want the
build system to look in directories other than the defaults,documentation/ref-manual/variables.rst +1
-1- extend the ``FILESPATH`` variable by using the + extend the :term:`FILESPATH` variable by using the:term:
FILESEXTRAPATHSvariable.- - Be aware that the default ``FILESPATH`` directories do
not map
+ - Be aware that the default :term:FILESPATHdirectories
do not map
to directories in custom layers where append files (``.bbappend``) are used. If you want the build system to find
patches or files that reside with your append files, you needdocumentation/ref-manual/variables.rst +2
-2- to extend the ``FILESPATH`` variable by using the - ``FILESEXTRAPATHS`` variable. + to extend the :term:`FILESPATH` variable by using the + :term:`FILESEXTRAPATHS` variable.You can take advantage of this searching behavior in useful ways. For
example, consider a case where there is the following directory structuredocumentation/ref-manual/variables.rst +0
-0@@ -2466,10 +2466,10 @@ system and gives an overview of theirfunction and contents.
files/MACHINEA/defconfig
files/MACHINEB/defconfigdocumentation/ref-manual/variables.rst +1
-1- Also in the example, the ``SRC_URI`` statement contains + Also in the example, the :term:`SRC_URI` statement contains"file://defconfig". Given this scenario, you can set :term:
MACHINEto "MACHINEA" and cause the build
- system to use files from ``files/MACHINEA``. Set ``MACHINE``
to
+ system to use files from ``files/MACHINEA``. Set
:term:MACHINEto
"MACHINEB" and the build system uses files from ``files/MACHINEB``.
Finally, for any machine other than "MACHINEA" and "MACHINEB", the
build system uses files from ``files/defconfig``.documentation/ref-manual/variables.rst +0
-0@@ -2494,7 +2494,7 @@ system and gives an overview of their functionand contents.
permissions setting table, you should place it in your layer or the
distro's layer.documentation/ref-manual/variables.rst +1
-1- You define the ``FILESYSTEM_PERMS_TABLES`` variable in the + You define the :term:`FILESYSTEM_PERMS_TABLES` variable inthe
``conf/local.conf`` file, which is found in the :term:Build Directory,
to point to your custom
``fs-perms.txt``. You can specify more than a single file permissionsdocumentation/ref-manual/variables.rst +0
-0@@ -2513,7 +2513,7 @@ system and gives an overview of their functionand contents.
:term:
FIT_GENERATE_KEYS
Decides whether to generate the keys for signing fitImage if they
- don't already exist. The keys are created in
``UBOOT_SIGN_KEYDIR``.
+ don't already exist. The keys are created in
:term:UBOOT_SIGN_KEYDIR.
The default value is 0.:term:
FIT_HASH_ALGdocumentation/ref-manual/variables.rst +0
-0@@ -2594,7 +2594,7 @@ system and gives an overview of their functionand contents.
:term:
GCCVERSION
Specifies the default version of the GNU C Compiler (GCC) used for
- compilation. By default, ``GCCVERSION`` is set to "8.x" in
the
+ compilation. By default, :term:GCCVERSIONis set to "8.x"
in the ``meta/conf/distro/include/tcmode-default.inc`` include file::GCCVERSION ?= "8.%"
documentation/ref-manual/variables.rst +0
-0@@ -2618,7 +2618,7 @@ system and gives an overview of their functionand contents.
If you specifically remove the locale ``en_US.UTF-8``, you must set
:term:IMAGE_LINGUASappropriately.- You can set ``GLIBC_GENERATE_LOCALES`` in your ``local.conf``
file.
+ You can set :term:GLIBC_GENERATE_LOCALESin your
``local.conf`` file.
By default, all locales are generated.
::documentation/ref-manual/variables.rst +0
-0@@ -2660,7 +2660,7 @@ system and gives an overview of their functionand contents.
configuration. Use a semi-colon character (``;``) to separate multiple options.documentation/ref-manual/variables.rst +1
-1- The ``GRUB_OPTS`` variable is optional. See the + The :term:`GRUB_OPTS` variable is optional. See the:ref:
grub-efi <ref-classes-grub-efi>class for more information
on how this variable is used.documentation/ref-manual/variables.rst +0
-0@@ -2668,7 +2668,7 @@ system and gives an overview of their functionand contents.
Specifies the timeout before executing the default ``LABEL`` in the
GNU GRand Unified Bootloader (GRUB).documentation/ref-manual/variables.rst +1
-1- The ``GRUB_TIMEOUT`` variable is optional. See the + The :term:`GRUB_TIMEOUT` variable is optional. See the:ref:
grub-efi <ref-classes-grub-efi>class for more information
on how this variable is used.documentation/ref-manual/variables.rst +0
-0@@ -2702,7 +2702,7 @@ system and gives an overview of their functionand contents.
Specifies architecture-specific compiler flags that are passed to the
C compiler.- Default initialization for ``HOST_CC_ARCH`` varies depending
on what
+ Default initialization for :term:HOST_CC_ARCHvaries
depending on what
is being built:documentation/ref-manual/variables.rst +0
-1- :term:`TARGET_CC_ARCH` when building for the@@ -2722,7 +2722,7 @@ system and gives an overview of their functionand contents.
"linux-musleabi" values possible.:term:
HOST_PREFIX
- Specifies the prefix for the cross-compile toolchain.
``HOST_PREFIX``
+ Specifies the prefix for the cross-compile toolchain.
:term:HOST_PREFIX
is normally the same as :term:TARGET_PREFIX.:term:
HOST_SYSdocumentation/ref-manual/variables.rst +0
-0@@ -2751,7 +2751,7 @@ system and gives an overview of their functionand contents.
A space-separated list (filter) of tools on the build host that
should be allowed to be called from within build tasks. Using this
filter helps reduce the possibility of host contamination. If a tool
- specified in the value of ``HOSTTOOLS`` is not found on the
build
+ specified in the value of :term:HOSTTOOLSis not found on
the build
host, the OpenEmbedded build system produces an error and the build
is not started.documentation/ref-manual/variables.rst +0
-0@@ -2764,11 +2764,11 @@ system and gives an overview of theirfunction and contents.
filter helps reduce the possibility of host contamination. Unlike
:term:HOSTTOOLS, the OpenEmbedded build system does not produce an error if a tool specified in the value of
- ``HOSTTOOLS_NONFATAL`` is not found on the build host. Thus,
you candocumentation/ref-manual/variables.rst +1
-1- use ``HOSTTOOLS_NONFATAL`` to filter optional host tools. + :term:`HOSTTOOLS_NONFATAL` is not found on the build host.Thus, you can
+ use :term:HOSTTOOLS_NONFATALto filter optional host tools.:term:
HOST_VENDOR
- Specifies the name of the vendor. ``HOST_VENDOR`` is normally
the
+ Specifies the name of the vendor. :term:HOST_VENDORis
normally the
same as :term:TARGET_VENDOR.:term:
ICECC_DISABLEDdocumentation/ref-manual/variables.rst +0
-0@@ -2813,12 +2813,12 @@ system and gives an overview of theirfunction and contents.
network lag, available memory, and existing machine loads can all
affect build time. Consequently, unlike the :term:PARALLEL_MAKEvariable, there is no
- rule-of-thumb for setting ``ICECC_PARALLEL_MAKE`` to achieve
optimal
+ rule-of-thumb for setting :term:ICECC_PARALLEL_MAKEto
achieve optimal
performance.- If you do not set ``ICECC_PARALLEL_MAKE``, the build system
does not
+ If you do not set :term:ICECC_PARALLEL_MAKE, the build
system does not
use it (i.e. the system does not detect and assign the number ofdocumentation/ref-manual/variables.rst +1
-1- cores as is done with ``PARALLEL_MAKE``). + cores as is done with :term:`PARALLEL_MAKE`).:term:
ICECC_PATH
The location of the ``icecc`` binary. You can set this variable indocumentation/ref-manual/variables.rst +0
-0@@ -2931,7 +2931,7 @@ system and gives an overview of their functionand contents.
this variable to specify the list of classes that register the
different types of images the OpenEmbedded build system creates.- The default value for ``IMAGE_CLASSES`` is ``image_types``.
You can
+ The default value for :term:IMAGE_CLASSESis
``image_types``. You can
set this variable in your ``local.conf`` or in a distribution configuration file.documentation/ref-manual/variables.rst +0
-0@@ -2958,7 +2958,7 @@ system and gives an overview of their functionand contents.
Specifies one or more files that contain custom device tables that
are passed to the ``makedevs`` command as part of creating an image.
These files list basic device nodes that should be created under
- ``/dev`` within the image. If ``IMAGE_DEVICE_TABLES`` is not
set,
+ ``/dev`` within the image. If :term:IMAGE_DEVICE_TABLESis
not set,
``files/device_table-minimal.txt`` is used, which is located by
:term:BBPATH. For details on how you should write device table files, see ``meta/files/device_table-minimal.txt`` as andocumentation/ref-manual/variables.rst +0
-0@@ -2986,7 +2986,7 @@ system and gives an overview of their functionand contents.
:term:IMAGE_FSTYPES
Specifies the formats the OpenEmbedded build system uses during the
build when creating the root filesystem. For example, setting
- ``IMAGE_FSTYPES`` as follows causes the build system to
create root
+ :term:IMAGE_FSTYPESas follows causes the build system to
create root
filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
IMAGE_FSTYPES= "ext3 tar.bz2"documentation/ref-manual/variables.rst +0
-0@@ -2997,25 +2997,25 @@ system and gives an overview of theirfunction and contents.
.. note::- If an image recipe uses the "inherit image" line and you are
- setting ``IMAGE_FSTYPES`` inside the recipe, you must
set
+ setting :term:IMAGE_FSTYPESinside the recipe, you
must set
``IMAGE_FSTYPES`` prior to using the "inherit image" line.- Due to the way the OpenEmbedded build system processes this
variable, you cannot update its contents by using ``_append``
or ``_prepend``. You must use the ``+=`` operator to add one ordocumentation/ref-manual/variables.rst +1
-1- more options to the ``IMAGE_FSTYPES`` variable. + more options to the :term:`IMAGE_FSTYPES` variable.:term:
IMAGE_INSTALL
Used by recipes to specify the packages to install into an image
through the :ref:image <ref-classes-image>class. Use the
- ``IMAGE_INSTALL`` variable with care to avoid ordering
issues.
+ :term:IMAGE_INSTALLvariable with care to avoid ordering
issues.- Image recipes set ``IMAGE_INSTALL`` to specify the packages
to
+ Image recipes set :term:IMAGE_INSTALLto specify the
packages to
install into an image through ``image.bbclass``. Additionally,
there are "helper" classes such as the :ref:core-image <ref-classes-core-image>class which candocumentation/ref-manual/variables.rst +0
-2- take lists used with ``IMAGE_FEATURES`` and turn them into - auto-generated entries in ``IMAGE_INSTALL`` in addition toits
+ take lists used with :term:IMAGE_FEATURESand turn them
into
+ auto-generated entries in :term:IMAGE_INSTALLin addition
to its
default contents.When you use this variable, it is best to use it as follows::
documentation/ref-manual/variables.rst +0
-0@@ -3030,24 +3030,24 @@ system and gives an overview of theirfunction and contents.
- When working with a :ref:
core-image-minimal-initramfs <ref-manual/images:images>
- image, do not use the ``IMAGE_INSTALL`` variable to
specify
+ image, do not use the :term:IMAGE_INSTALLvariable to
specify
packages for installation. Instead, use the :term:PACKAGE_INSTALLvariable, which
allows the initial RAM filesystem (initramfs) recipe to use a
- fixed set of packages and not be affected by
``IMAGE_INSTALL``.
+ fixed set of packages and not be affected by
:term:IMAGE_INSTALL.
For information on creating an initramfs, see the ":ref:dev-manual/common-tasks:building an initial ram filesystem (initramfs) image"
section in the Yocto Project Development Tasks Manual.documentation/ref-manual/variables.rst +1
-1- - Using ``IMAGE_INSTALL`` with the + - Using :term:`IMAGE_INSTALL` with the:ref:
+= <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>
BitBake operator within the ``/conf/local.conf`` file
or from
within an image recipe is not recommended. Use of this operator
in these ways can cause ordering issues. Since
- ``core-image.bbclass`` sets ``IMAGE_INSTALL`` to a
default
+ ``core-image.bbclass`` sets :term:IMAGE_INSTALLto a
default
value using the
:ref:?= <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>
- operator, using a ``+=`` operation against
``IMAGE_INSTALL``
+ operator, using a ``+=`` operation against
:term:IMAGE_INSTALL
results in unexpected behavior when used within ``conf/local.conf``. Furthermore, the same operation from
within an image recipe may or may not succeed depending on thedocumentation/ref-manual/variables.rst +0
-0@@ -3058,7 +3058,7 @@ system and gives an overview of their functionand contents.
Specifies the list of locales to install into the image during the
root filesystem construction process. The OpenEmbedded build system
automatically splits locale files, which are used for localization,
- into separate packages. Setting the ``IMAGE_LINGUAS``
variable
+ into separate packages. Setting the :term:IMAGE_LINGUAS
variable
ensures that any locale packages that correspond to packages already
selected for installation into the image are also installed. Here is
an example::documentation/ref-manual/variables.rst +0
-0@@ -3122,7 +3122,7 @@ system and gives an overview of their functionand contents.
Defines a multiplier that the build system applies to the initial
image size for cases when the multiplier times the returned disk
usage value for the image is greater than the sum of
- ``IMAGE_ROOTFS_SIZE`` and ``IMAGE_ROOTFS_EXTRA_SPACE``. The
result of
+ :term:IMAGE_ROOTFS_SIZEand
:term:IMAGE_ROOTFS_EXTRA_SPACE. The result of
the multiplier applied to the initial image size creates free disk
space in the image as overhead. By default, the build process uses a
multiplier of 1.3 for this variable. This default value results indocumentation/ref-manual/variables.rst +0
-0@@ -3131,7 +3131,7 @@ system and gives an overview of their functionand contents.
post install scripts and the package management system uses disk
space inside this overhead area. Consequently, the multiplier does
not produce an image with all the theoretical free disk space. Seedocumentation/ref-manual/variables.rst +1
-1- ``IMAGE_ROOTFS_SIZE`` for information on how the build system + :term:`IMAGE_ROOTFS_SIZE` for information on how the buildsystem
determines the overall image size.The default 30% free disk space typically gives the image enough room
documentation/ref-manual/variables.rst +0
-0@@ -3143,7 +3143,7 @@ system and gives an overview of their functionand contents.
IMAGE_OVERHEAD_FACTOR= "1.5"Alternatively, you can ensure a specific amount of free disk space is
documentation/ref-manual/variables.rst +1
-1- added to the image by using the ``IMAGE_ROOTFS_EXTRA_SPACE`` + added to the image by using the:term:
IMAGE_ROOTFS_EXTRA_SPACE
variable.:term:
IMAGE_PKGTYPEdocumentation/ref-manual/variables.rst +0
-0@@ -3160,10 +3160,10 @@ system and gives an overview of theirfunction and contents.
recommended that you do not use it.The :ref:
populate_sdk_* <ref-classes-populate-sdk-*>and
- :ref:image <ref-classes-image>classes use the
``IMAGE_PKGTYPE``
+ :ref:image <ref-classes-image>classes use the
:term:IMAGE_PKGTYPE
for packaging up images and SDKs.- You should not set the ``IMAGE_PKGTYPE`` manually. Rather,
the
+ You should not set the :term:IMAGE_PKGTYPEmanually.
Rather, the
variable is set indirectly through the appropriate :ref:package_* <ref-classes-package>class using the :term:PACKAGE_CLASSESvariable. Thedocumentation/ref-manual/variables.rst +0
-0@@ -3218,7 +3218,7 @@ system and gives an overview of their functionand contents.
Defines additional free disk space created in the image in Kbytes. By
default, this variable is set to "0". This free disk space is added
to the image after the build system determines the image size asdocumentation/ref-manual/variables.rst +1
-1- described in ``IMAGE_ROOTFS_SIZE``. + described in :term:`IMAGE_ROOTFS_SIZE`.This variable is particularly useful when you want to ensure that a
specific amount of free disk space is available on a device after andocumentation/ref-manual/variables.rst +0
-0@@ -3336,16 +3336,16 @@ system and gives an overview of theirfunction and contents.
common functionality are upgraded to a new revision.A more efficient way of dealing with this situation is to set the
- ``INC_PR`` variable inside the ``include`` files that the
recipes
- share and then expand the ``INC_PR`` variable within the
recipes to
+ :term:INC_PRvariable inside the ``include`` files that the
recipes
+ share and then expand the :term:INC_PRvariable within the
recipes to
help define the recipe revision.The following provides an example that shows how to use the
- ``INC_PR`` variable given a common ``include`` file that
defines the
+ :term:INC_PRvariable given a common ``include`` file that
defines the
variable. Once the variable is defined in the ``include`` file, you
- can use the variable to set the ``PR`` values in each recipe.
You
- will notice that when you set a recipe's ``PR`` you can
provide more
- granular revisioning by appending values to the ``INC_PR``
variable::
+ can use the variable to set the :term:PRvalues in each
recipe. You
+ will notice that when you set a recipe's :term:PRyou can
provide more
+ granular revisioning by appending values to the
:term:INC_PRvariable::recipes-graphics/xorg-font/xorg-font-common.inc:INC_PR = "r2" recipes-graphics/xorg-font/encodings_1.0.4.bb:PR = "${INC_PR}.1"
documentation/ref-manual/variables.rst +0
-0@@ -3356,7 +3356,7 @@ system and gives an overview of their functionand contents.
first line of the example establishes the baseline revision to be
used for all recipes that use the ``include`` file. The remaining
lines in the example are from individual recipes and show how thedocumentation/ref-manual/variables.rst +1
-1- ``PR`` value is set. + :term:`PR` value is set.:term:
INCOMPATIBLE_LICENSE
Specifies a space-separated list of license names (as they woulddocumentation/ref-manual/variables.rst +0
-0@@ -3382,12 +3382,12 @@ system and gives an overview of theirfunction and contents.
It is possible to define a list of licenses that are allowed to be
used instead of the licenses that are excluded. To do this, define
a variable ``COMPATIBLE_LICENSES`` with the names of the licenses
- that are allowed. Then define ``INCOMPATIBLE_LICENSE``
as::
+ that are allowed. Then define :term:INCOMPATIBLE_LICENSE
as::
INCOMPATIBLE_LICENSE= "${@' '.join(sorted(set(d.getVar('AVAILABLE_LICENSES').split()) - set(d.getVar('COMPATIBLE_LICENSES').split())))}"- This will result in ``INCOMPATIBLE_LICENSE`` containing
the names of
+ This will result in :term:INCOMPATIBLE_LICENSE
containing the names of
all licenses from :term:AVAILABLE_LICENSESexcept the ones specified
in ``COMPATIBLE_LICENSES``, thus only allowing the latter licenses to
be used.documentation/ref-manual/variables.rst +0
-0@@ -3396,9 +3396,9 @@ system and gives an overview of their functionand contents.
Causes the named class or classes to be inherited globally. Anonymous
functions in the class or classes are not executed for the base
configuration and in each individual recipe. The OpenEmbedded builddocumentation/ref-manual/variables.rst +1
-1- system ignores changes to ``INHERIT`` in individual recipes. + system ignores changes to :term:`INHERIT` in individualrecipes.
documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 3401
Quoted 2 lines
documentation/ref-manual/variables.rst +1
-1- For more information on ``INHERIT``, see the + For more information on :term:`INHERIT`, see the:ref:
bitbake:bitbake-user-manual/bitbake-user-manual-metadata:\\inherit\\`Quoted 155 lines
configuration directive`"
section in the Bitbake User Manual.documentation/ref-manual/variables.rst +0
-0@@ -3430,7 +3430,7 @@ system and gives an overview of their functionand contents.
variable.To prevent the build system from splitting out debug information
- during packaging, set the ``INHIBIT_PACKAGE_DEBUG_SPLIT``
variable as
+ during packaging, set the :term:INHIBIT_PACKAGE_DEBUG_SPLIT
variable as
follows::
INHIBIT_PACKAGE_DEBUG_SPLIT= "1"documentation/ref-manual/variables.rst +0
-0@@ -3442,7 +3442,7 @@ system and gives an overview of their functionand contents.
By default, the OpenEmbedded build system strips binaries and puts
the debugging symbols into ``${``\ :term:PN\ ``}-dbg``.
- Consequently, you should not set ``INHIBIT_PACKAGE_STRIP``
when you
+ Consequently, you should not set
:term:INHIBIT_PACKAGE_STRIPwhen you
plan to debug in general.:term:
INHIBIT_SYSROOT_STRIPdocumentation/ref-manual/variables.rst +0
-0@@ -3451,7 +3451,7 @@ system and gives an overview of their functionand contents.
By default, the OpenEmbedded build system strips binaries in the
resulting sysroot. When you specifically set the
- ``INHIBIT_SYSROOT_STRIP`` variable to "1" in your recipe, you
inhibit
+ :term:INHIBIT_SYSROOT_STRIPvariable to "1" in your recipe,
you inhibit
this stripping.If you want to use this variable, include the
documentation/ref-manual/variables.rst +0
-0@@ -3461,7 +3461,7 @@ system and gives an overview of their functionand contents.
.. note::
- Use of the ``INHIBIT_SYSROOT_STRIP`` variable occurs in
rare and
+ Use of the :term:INHIBIT_SYSROOT_STRIPvariable occurs
in rare and
special circumstances. For example, suppose you are building
bare-metal firmware by using an external GCC toolchain. Furthermore,
even if the toolchain's binaries are strippable, there are other filesdocumentation/ref-manual/variables.rst +0
-0@@ -3483,7 +3483,7 @@ system and gives an overview of their functionand contents.
:term:INITRAMFS_IMAGE
Specifies the :term:PROVIDESname of an image recipe that is used to build an initial RAM filesystem (initramfs)
- image. In other words, the ``INITRAMFS_IMAGE`` variable
causes an
+ image. In other words, the :term:INITRAMFS_IMAGEvariable
causes an
additional recipe to be built as a dependency to whatever root
filesystem recipe you might be using (e.g. ``core-image-sato``). The
initramfs image recipe you provide should setdocumentation/ref-manual/variables.rst +0
-0@@ -3499,16 +3499,16 @@ system and gives an overview of theirfunction and contents.
See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb [17]`` recipe in the :term:Source Directory
for an example initramfs recipe. To select this sample recipe as
- the one built to provide the initramfs image, set
``INITRAMFS_IMAGE``
+ the one built to provide the initramfs image, set
:term:INITRAMFS_IMAGE
to "core-image-minimal-initramfs".You can also find more information by referencing the ``meta-poky/conf/local.conf.sample.extended`` configuration file in
the Source Directory, the :ref:image <ref-classes-image>class,
and the :ref:kernel <ref-classes-kernel>class to see how to usedocumentation/ref-manual/variables.rst +1
-2- the ``INITRAMFS_IMAGE`` variable. + the :term:`INITRAMFS_IMAGE` variable. - If ``INITRAMFS_IMAGE`` is empty, which is the default, thenno
+ If :term:INITRAMFS_IMAGEis empty, which is the default,
then no
initramfs image is built.For more information, you can also see the
documentation/ref-manual/variables.rst +0
-0@@ -3543,7 +3543,7 @@ system and gives an overview of their functionand contents.
Setting the variable to "1" in a configuration file causes the
OpenEmbedded build system to generate a kernel image with thedocumentation/ref-manual/variables.rst +1
-1- initramfs specified in ``INITRAMFS_IMAGE`` bundled within:: + initramfs specified in :term:`INITRAMFS_IMAGE` bundledwithin::
INITRAMFS_IMAGE_BUNDLE= "1"documentation/ref-manual/variables.rst +0
-0@@ -3555,7 +3555,7 @@ system and gives an overview of their functionand contents.
.. note::
documentation/ref-manual/variables.rst +1
-1- You must set the ``INITRAMFS_IMAGE_BUNDLE`` variable in a + You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variablein a
configuration file. You cannot set the variable in a recipe file.See the
documentation/ref-manual/variables.rst +0
-0@@ -3596,13 +3596,13 @@ system and gives an overview of theirfunction and contents.
Indicates list of filesystem images to concatenate and use as an
initial RAM disk (``initrd``).documentation/ref-manual/variables.rst +1
-1- The ``INITRD`` variable is an optional variable used with the + The :term:`INITRD` variable is an optional variable used withthe
:ref:image-live <ref-classes-image-live>class.:term:
INITRD_IMAGE
When building a "live" bootable image (i.e. when :term:IMAGE_FSTYPEScontains "live"),
- ``INITRD_IMAGE`` specifies the image recipe that should be
built to
+ :term:INITRD_IMAGEspecifies the image recipe that should
be built to
provide the initial RAM disk image. The default value is "core-image-minimal-initramfs".documentation/ref-manual/variables.rst +0
-0@@ -3636,7 +3636,7 @@ system and gives an overview of their functionand contents.
The variable's default value is "defaults", which is set in the
:ref:update-rc.d <ref-classes-update-rc.d>class.documentation/ref-manual/variables.rst +1
-1- The value in ``INITSCRIPT_PARAMS`` is passed through to the + The value in :term:`INITSCRIPT_PARAMS` is passed through toQuoted 6 lines
the
``update-rc.d`` command. For more information on valid parameters,
please see the ``update-rc.d`` manual page athttps://manpages.debian.org/buster/init-system-helpers/update-rc.d.8.en.html
Quoted 2,179 lines
documentation/ref-manual/variables.rst +0
-0@@ -3655,7 +3655,7 @@ system and gives an overview of their functionand contents.
:term:
INSTALL_TIMEZONE_FILE
By default, the ``tzdata`` recipe packages an
``/etc/timezone`` file.documentation/ref-manual/variables.rst +1
-1- Set the ``INSTALL_TIMEZONE_FILE`` variable to "0" at the + Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at theconfiguration level to disable this behavior.
:term:
IPK_FEED_URISdocumentation/ref-manual/variables.rst +0
-0@@ -3687,7 +3687,7 @@ system and gives an overview of their functionand contents.
Values for this variable are set in the kernel's recipe file and the
kernel's append file. For example, if you are using the ``linux-yocto_4.12`` kernel, the kernel recipe file is the
- ``meta/recipes-kernel/linux/linux-yocto_4.12.bb [12]`` file.
``KBRANCH``
+ ``meta/recipes-kernel/linux/linux-yocto_4.12.bb [12]`` file.
:term:KBRANCH
is set as follows in that kernel recipe file::KBRANCH ?= "standard/base"
documentation/ref-manual/variables.rst +0
-0@@ -3707,7 +3707,7 @@ system and gives an overview of their functionand contents.
KBRANCH_edgerouter= "standard/edgerouter"KBRANCH_beaglebone= "standard/beaglebone"documentation/ref-manual/variables.rst +1
-1- The ``KBRANCH`` statements + The :term:`KBRANCH` statementsidentify the kernel branch to use when building for each supported
BSP.documentation/ref-manual/variables.rst +0
-0@@ -3721,7 +3721,7 @@ system and gives an overview of their functionand contents.
would place patch files and configuration fragment files (i.e.
"out-of-tree"). However, if you want to use a ``defconfig`` file that
is part of the kernel tree (i.e. "in-tree"), you can use thedocumentation/ref-manual/variables.rst +1
-1- ``KBUILD_DEFCONFIG`` variable and append the + :term:`KBUILD_DEFCONFIG` variable and append the:term:
KMACHINEvariable to point to the
``defconfig`` file.documentation/ref-manual/variables.rst +0
-0@@ -3730,7 +3730,7 @@ system and gives an overview of their functionand contents.
KBUILD_DEFCONFIG_KMACHINE?=defconfig_file- Here is an example from a "raspberrypi2" ``KMACHINE`` build
that uses
+ Here is an example from a "raspberrypi2" :term:KMACHINE
build that uses
a ``defconfig`` file named "bcm2709_defconfig"::
KBUILD_DEFCONFIG_raspberrypi2= "bcm2709_defconfig"documentation/ref-manual/variables.rst +0
-0@@ -3740,7 +3740,7 @@ system and gives an overview of their functionand contents.
KBUILD_DEFCONFIG_pn-linux-yocto ?=defconfig_fileFor more
- information on how to use the ``KBUILD_DEFCONFIG`` variable,
see the
+ information on how to use the :term:KBUILD_DEFCONFIG
variable, see the
":ref:kernel-dev/common:using an "in-tree" \\defconfig\\file"
section in the Yocto Project Linux Kernel Development Manual.documentation/ref-manual/variables.rst +0
-0@@ -3757,27 +3757,27 @@ system and gives an overview of theirfunction and contents.
options not explicitly specified will be disabled in the kernel
config.- In case ``KCONFIG_MODE`` is not set the behaviour will depend
on where
+ In case :term:KCONFIG_MODEis not set the behaviour will
depend on where
the ``defconfig`` file is coming from. An "in-tree" ``defconfig`` file
will be handled in ``alldefconfig`` mode, a ``defconfig`` file placed
in ``${WORKDIR}`` through a meta-layer will be handled in ``allnoconfig`` mode.An "in-tree" ``defconfig`` file can be selected via the
- :term:KBUILD_DEFCONFIGvariable. ``KCONFIG_MODE`` does not
need to
+ :term:KBUILD_DEFCONFIGvariable. :term:KCONFIG_MODEdoes
not need to
be explicitly set.A ``defconfig`` file compatible with ``allnoconfig`` mode can be
generated by copying the ``.config`` file from a working Linux kernel
build, renaming it to ``defconfig`` and placing it into the Linux
- kernel ``${WORKDIR}`` through your meta-layer.
``KCONFIG_MODE`` does
+ kernel ``${WORKDIR}`` through your meta-layer.
:term:KCONFIG_MODEdoes
not need to be explicitly set.A ``defconfig`` file compatible with ``alldefconfig`` mode can be
generated using the
:ref:ref-tasks-savedefconfig
task and placed into the Linux kernel ``${WORKDIR}`` through yourdocumentation/ref-manual/variables.rst +1
-1- meta-layer. Explicitely set ``KCONFIG_MODE``:: + meta-layer. Explicitely set :term:`KCONFIG_MODE`::
KCONFIG_MODE= "alldefconfig"documentation/ref-manual/variables.rst +0
-0@@ -3789,10 +3789,10 @@ system and gives an overview of theirfunction and contents.
:term:
KERNEL_ARTIFACT_NAME
Specifies the name of all of the build artifacts. You can change the
- name of the artifacts by changing the
``KERNEL_ARTIFACT_NAME``
+ name of the artifacts by changing the
:term:KERNEL_ARTIFACT_NAME
variable.documentation/ref-manual/variables.rst +1
-1- The value of ``KERNEL_ARTIFACT_NAME``, which is set in the + The value of :term:`KERNEL_ARTIFACT_NAME`, which is set inthe
``meta/classes/kernel-artifact-names.bbclass`` file, has the following default value::documentation/ref-manual/variables.rst +0
-0@@ -3869,13 +3869,13 @@ system and gives an overview of theirfunction and contents.
system, the default Board Support Packages (BSPs) :term:Metadatais provided through the :term:KMACHINEand :term:KBRANCH
- variables. You can use the ``KERNEL_FEATURES`` variable from
within
+ variables. You can use the :term:KERNEL_FEATURESvariable
from within
the kernel recipe or kernel append file to further add metadata for
all BSPs or specific BSPs.The metadata you add through this variable includes config fragments
and features descriptions, which usually includes patches as well as
- config fragments. You typically override the
``KERNEL_FEATURES``
+ config fragments. You typically override the
:term:KERNEL_FEATURES
variable for a specific machine. In this way, you can provide validated, but optional, sets of kernel configurations and features.documentation/ref-manual/variables.rst +0
-0@@ -3935,12 +3935,12 @@ system and gives an overview of theirfunction and contents.
:term:
KERNEL_IMAGE_MAXSIZE
Specifies the maximum size of the kernel image file in kilobytes. If
- ``KERNEL_IMAGE_MAXSIZE`` is set, the size of the kernel image
file is
+ :term:KERNEL_IMAGE_MAXSIZEis set, the size of the kernel
image file is
checked against the set value during the :ref:ref-tasks-sizechecktask. The task fails if the kernel image file is larger than the setting.- ``KERNEL_IMAGE_MAXSIZE`` is useful for target devices that
have a
+ :term:KERNEL_IMAGE_MAXSIZEis useful for target devices
that have a
limited amount of space in which the kernel image must be stored.By default, this variable is not set, which means the size of the
documentation/ref-manual/variables.rst +0
-0@@ -3965,7 +3965,7 @@ system and gives an overview of their functionand contents.
build.If you want to build an alternate kernel image type in addition to that
- specified by ``KERNEL_IMAGETYPE``, use the
:term:KERNEL_ALT_IMAGETYPE
+ specified by :term:KERNEL_IMAGETYPE, use the
:term:KERNEL_ALT_IMAGETYPE
variable.:term:
KERNEL_MODULE_AUTOLOADdocumentation/ref-manual/variables.rst +0
-0@@ -3976,7 +3976,7 @@ system and gives an overview of their functionand contents.
This variable replaces the deprecated
:term:module_autoload
variable.- You can use the ``KERNEL_MODULE_AUTOLOAD`` variable anywhere
that it
+ You can use the :term:KERNEL_MODULE_AUTOLOADvariable
anywhere that it
can be recognized by the kernel recipe or by an out-of-tree kernel
module recipe (e.g. a machine configuration file, a distribution
configuration file, an append file for the recipe, or the recipedocumentation/ref-manual/variables.rst +0
-0@@ -3986,7 +3986,7 @@ system and gives an overview of their functionand contents.
KERNEL_MODULE_AUTOLOAD+= "module_name1module_name2module_name3"- Including ``KERNEL_MODULE_AUTOLOAD`` causes the OpenEmbedded
build
+ Including :term:KERNEL_MODULE_AUTOLOADcauses the
OpenEmbedded build
system to populate the ``/etc/modules-load.d/modname.conf`` file with
the list of modules to be auto-loaded on boot. The modules appear
one-per-line in the file. Here is an example of the most common usedocumentation/ref-manual/variables.rst +0
-0@@ -4015,7 +4015,7 @@ system and gives an overview of their functionand contents.
To help maximize compatibility with out-of-tree drivers used to build
modules, the OpenEmbedded build system also recognizes and uses the
:term:KERNEL_SRCvariable, which is identical to
- the ``KERNEL_PATH`` variable. Both variables are common
variables
+ the :term:KERNEL_PATHvariable. Both variables are common
variables
used by external Makefiles to point to the kernel source directory.:term:
KERNEL_SRCdocumentation/ref-manual/variables.rst +0
-0@@ -4029,7 +4029,7 @@ system and gives an overview of their functionand contents.
To help maximize compatibility with out-of-tree drivers used to build
modules, the OpenEmbedded build system also recognizes and uses the
:term:KERNEL_PATHvariable, which is identical
- to the ``KERNEL_SRC`` variable. Both variables are common
variables
+ to the :term:KERNEL_SRCvariable. Both variables are common
variables
used by external Makefiles to point to the kernel source directory.:term:
KERNEL_VERSIONdocumentation/ref-manual/variables.rst +0
-0@@ -4042,9 +4042,9 @@ system and gives an overview of their functionand contents.
:term:KERNELDEPMODDEPEND
Specifies whether the data referenced through :term:PKGDATA_DIRis needed or not.
- ``KERNELDEPMODDEPEND`` does not control whether or not that
data
+ :term:KERNELDEPMODDEPENDdoes not control whether or not
that data
exists, but simply whether or not it is used. If you do not need todocumentation/ref-manual/variables.rst +1
-1- use the data, set the ``KERNELDEPMODDEPEND`` variable in your + use the data, set the :term:`KERNELDEPMODDEPEND` variable inyour
``initramfs`` recipe. Setting the variable there when the data is not
needed avoids a potential dependency loop.documentation/ref-manual/variables.rst +0
-0@@ -4063,7 +4063,7 @@ system and gives an overview of their functionand contents.
OpenEmbedded build system understands as ``core2-32-intel-common``
goes by a different name in the Linux Yocto kernel. The kernel
understands that machine as ``intel-core2-32``. For cases like these,documentation/ref-manual/variables.rst +1
-1- the ``KMACHINE`` variable maps the kernel machine name to the + the :term:`KMACHINE` variable maps the kernel machine name tothe
OpenEmbedded build system machine name.These mappings between different names occur in the Yocto Linux
documentation/ref-manual/variables.rst +0
-0@@ -4078,7 +4078,7 @@ system and gives an overview of their functionand contents.
KBRANCH_core2-32-intel-common = "standard/base"
KERNEL_FEATURES_append_core2-32-intel-common =
"${KERNEL_FEATURES_INTEL_COMMON}"documentation/ref-manual/variables.rst +1
-1- The ``KMACHINE`` statement says + The :term:`KMACHINE` statement saysthat the kernel understands the machine name as "intel-core2-32".
However, the OpenEmbedded build system understands the machine as
"core2-32-intel-common".documentation/ref-manual/variables.rst +0
-0@@ -4091,7 +4091,7 @@ system and gives an overview of their functionand contents.
Yocto Project Linux Kernel Development Manual for more information on
kernel types.documentation/ref-manual/variables.rst +1
-1- You define the ``KTYPE`` variable in the + You define the :term:`KTYPE` variable in the:ref:
kernel-dev/advanced:bsp descriptions. The
value you use must match the value used for the
:term:LINUX_KERNEL_TYPEvalue used by thedocumentation/ref-manual/variables.rst +0
-0@@ -4144,7 +4144,7 @@ system and gives an overview of their functionand contents.
:term:
LAYERSERIES_COMPAT
Lists the versions of the :term:OpenEmbedded-Core (OE-Core)for which
- a layer is compatible. Using the ``LAYERSERIES_COMPAT``
variable
+ a layer is compatible. Using the :term:LAYERSERIES_COMPAT
variable
allows the layer maintainer to indicate which combinations of the
layer and OE-Core can be expected to work. The variable gives the
system a way to detect when a layer has not been tested with newdocumentation/ref-manual/variables.rst +0
-0@@ -4161,7 +4161,7 @@ system and gives an overview of their functionand contents.
.. note::
- Setting ``LAYERSERIES_COMPAT`` is required by the Yocto
Project
+ Setting :term:LAYERSERIES_COMPATis required by the
Yocto Project
Compatible version 2 standard.
The OpenEmbedded build system produces a warning if the variable
is not set for any given layer.documentation/ref-manual/variables.rst +0
-0@@ -4185,7 +4185,7 @@ system and gives an overview of their functionand contents.
to an environment variable and thus made visible to the software
being built during the compilation step.- Default initialization for ``LDFLAGS`` varies depending on
what is
+ Default initialization for :term:LDFLAGSvaries depending
on what is
being built:documentation/ref-manual/variables.rst +0
-1- :term:`TARGET_LDFLAGS` when building for the@@ -4260,7 +4260,7 @@ system and gives an overview of their functionand contents.
LICENSE_${PN}-doc = "GFDL-1.2":term:
LICENSE_CREATE_PACKAGE
- Setting ``LICENSE_CREATE_PACKAGE`` to "1" causes the
OpenEmbedded
+ Setting :term:LICENSE_CREATE_PACKAGEto "1" causes the
OpenEmbedded
build system to create an extra package (i.e. ``${``\ :term:PN\ ``}-lic``) for each recipe and to add those packages to thedocumentation/ref-manual/variables.rst +0
-0@@ -4305,9 +4305,9 @@ system and gives an overview of their functionand contents.
:term:
LICENSE_PATH
Path to additional licenses used during the build. By default, the
- OpenEmbedded build system uses ``COMMON_LICENSE_DIR`` to
define the
+ OpenEmbedded build system uses :term:COMMON_LICENSE_DIRto
define the
directory that holds common license text used during the build. The
- ``LICENSE_PATH`` variable allows you to extend that location
to other
+ :term:LICENSE_PATHvariable allows you to extend that
location to other
areas that have additional licenses::
LICENSE_PATH+= "path-to-additional-common-licenses"documentation/ref-manual/variables.rst +0
-0@@ -4320,9 +4320,9 @@ system and gives an overview of their functionand contents.
Yocto Project Linux Kernel Development Manual for more information on
kernel types.documentation/ref-manual/variables.rst +1
-1- If you do not specify a ``LINUX_KERNEL_TYPE``, it defaults to + If you do not specify a :term:`LINUX_KERNEL_TYPE`, itdefaults to
"standard". Together with :term:KMACHINE, the
- ``LINUX_KERNEL_TYPE`` variable defines the search arguments
used by
+ :term:LINUX_KERNEL_TYPEvariable defines the search
arguments used by
the kernel tools to find the appropriate description within the
kernel :term:Metadatawith which to build out the sources and configuration.documentation/ref-manual/variables.rst +0
-0@@ -4336,7 +4336,7 @@ system and gives an overview of their functionand contents.
LINUX_VERSION?= "3.4.24"documentation/ref-manual/variables.rst +1
-1- The ``LINUX_VERSION`` variable is used to define :term:`PV` + The :term:`LINUX_VERSION` variable is used to define:term:
PV
for the recipe::PV = "${LINUX_VERSION}+git${SRCPV}"
documentation/ref-manual/variables.rst +0
-0@@ -4366,8 +4366,8 @@ system and gives an overview of their functionand contents.
:term:
MACHINE
Specifies the target device for which the image is built. You definedocumentation/ref-manual/variables.rst +2
-2- ``MACHINE`` in the ``local.conf`` file found in the - :term:`Build Directory`. By default, ``MACHINE`` is set to + :term:`MACHINE` in the ``local.conf`` file found in the + :term:`Build Directory`. By default, :term:`MACHINE` is setto
"qemux86", which is an x86-based architecture machine to be emulated
using QEMU::documentation/ref-manual/variables.rst +0
-0@@ -4375,7 +4375,7 @@ system and gives an overview of their functionand contents.
The variable corresponds to a machine configuration file of the same
name, through which machine-specific configurations are set. Thus,documentation/ref-manual/variables.rst +1
-1- when ``MACHINE`` is set to "qemux86", the corresponding + when :term:`MACHINE` is set to "qemux86", the corresponding``qemux86.conf`` machine configuration file can be found in the :term:
Source Directoryin ``meta/conf/machine``.documentation/ref-manual/variables.rst +0
-0@@ -4401,13 +4401,13 @@ system and gives an overview of theirfunction and contents.
.. note::Adding additional Board Support Package (BSP) layers to your
documentation/ref-manual/variables.rst +1
-1- configuration adds new possible settings for ``MACHINE``. + configuration adds new possible settings for:term:
MACHINE.:term:
MACHINE_ARCH
Specifies the name of the machine-specific architecture. This variable is set automatically from :term:MACHINEor :term:TUNE_PKGARCH. You should not hand-editdocumentation/ref-manual/variables.rst +1
-1- the ``MACHINE_ARCH`` variable. + the :term:`MACHINE_ARCH` variable.:term:
MACHINE_ESSENTIAL_EXTRA_RDEPENDS
A list of required machine-specific packages to install as part ofdocumentation/ref-manual/variables.rst +0
-0@@ -4419,7 +4419,7 @@ system and gives an overview of their functionand contents.
image.This variable is similar to the
- ``MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`` variable with the
exception
+ :term:MACHINE_ESSENTIAL_EXTRA_RRECOMMENDSvariable with the
exception
that the image being built has a build dependency on the variable's
list of packages. In other words, the image will not build if a file
in this list is not found.documentation/ref-manual/variables.rst +0
-0@@ -4440,7 +4440,7 @@ system and gives an overview of their functionand contents.
on ``packagegroup-core-boot``, including the
``core-image-minimal``
image.- This variable is similar to the
``MACHINE_ESSENTIAL_EXTRA_RDEPENDS``
+ This variable is similar to the
:term:MACHINE_ESSENTIAL_EXTRA_RDEPENDS
variable with the exception that the image being built does not have
a build dependency on the variable's list of packages. In other
words, the image will still build if a package in this list is notdocumentation/ref-manual/variables.rst +0
-0@@ -4482,7 +4482,7 @@ system and gives an overview of their functionand contents.
which does not include the ``core-image-minimal`` or ``core-image-full-cmdline`` images.- The variable is similar to the ``MACHINE_EXTRA_RRECOMMENDS``
variable
+ The variable is similar to the
:term:MACHINE_EXTRA_RRECOMMENDSvariable
with the exception that the image being built has a build dependency
on the variable's list of packages. In other words, the image will
not build if a file in this list is not found.documentation/ref-manual/variables.rst +0
-0@@ -4507,7 +4507,7 @@ system and gives an overview of their functionand contents.
which does not include the ``core-image-minimal`` or ``core-image-full-cmdline`` images.- This variable is similar to the ``MACHINE_EXTRA_RDEPENDS``
variable
+ This variable is similar to the
:term:MACHINE_EXTRA_RDEPENDSvariable
with the exception that the image being built does not have a build
dependency on the variable's list of packages. In other words, the
image will build if a file in this list is not found.documentation/ref-manual/variables.rst +0
-0@@ -4536,8 +4536,8 @@ system and gives an overview of their functionand contents.
shipped, see the ":ref:ref-features-machine" section.:term:
MACHINE_FEATURES_BACKFILL
- Features to be added to ``MACHINE_FEATURES`` if not also
present indocumentation/ref-manual/variables.rst +1
-1- ``MACHINE_FEATURES_BACKFILL_CONSIDERED``. + Features to be added to :term:`MACHINE_FEATURES` if not alsopresent in
+ :term:MACHINE_FEATURES_BACKFILL_CONSIDERED.This variable is set in the ``meta/conf/bitbake.conf`` file. It is
not intended to be user-configurable. It is best to just referencedocumentation/ref-manual/variables.rst +0
-0@@ -4546,8 +4546,8 @@ system and gives an overview of their functionand contents.
section for more information.:term:
MACHINE_FEATURES_BACKFILL_CONSIDERED
- Features from ``MACHINE_FEATURES_BACKFILL`` that should not
be
- backfilled (i.e. added to ``MACHINE_FEATURES``) during the
build. See
+ Features from :term:MACHINE_FEATURES_BACKFILLthat should
not be
+ backfilled (i.e. added to :term:MACHINE_FEATURES) during
the build. See
the ":ref:ref-features-backfill" section for more information.:term:
MACHINEOVERRIDESdocumentation/ref-manual/variables.rst +0
-0@@ -4555,11 +4555,11 @@ system and gives an overview of theirfunction and contents.
machine. By default, this list includes the value of :term:MACHINE.- You can extend ``MACHINEOVERRIDES`` to add extra overrides
that
+ You can extend :term:MACHINEOVERRIDESto add extra
overrides that
should apply to a machine. For example, all machines emulated in QEMU
(e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
``meta/conf/machine/include/qemu.inc`` that prepends the followingdocumentation/ref-manual/variables.rst +1
-1- override to ``MACHINEOVERRIDES``:: + override to :term:`MACHINEOVERRIDES`::MACHINEOVERRIDES =. "qemuall:"
documentation/ref-manual/variables.rst +0
-0@@ -4573,7 +4573,7 @@ system and gives an overview of their functionand contents.
"The underlying mechanism behind
- ``MACHINEOVERRIDES`` is simply that it is included in the
default
+ :term:MACHINEOVERRIDESis simply that it is included in the
default
value of :term:OVERRIDES.:term:
MAINTAINERdocumentation/ref-manual/variables.rst +0
-0@@ -4593,10 +4593,10 @@ system and gives an overview of theirfunction and contents.
first tries the local download directory. If that location fails, the
build system tries locations defined by :term:PREMIRRORS, the upstream source, and thendocumentation/ref-manual/variables.rst +1
-1- locations specified by ``MIRRORS`` in that order. + locations specified by :term:`MIRRORS` in that order.Assuming your distribution (:term:
DISTRO) is "poky",documentation/ref-manual/variables.rst +1
-1- the default value for ``MIRRORS`` is defined in the + the default value for :term:`MIRRORS` is defined in the``conf/distro/poky.conf`` file in the ``meta-poky`` Git repository.
:term:
MLPREFIXdocumentation/ref-manual/variables.rst +0
-0@@ -4604,16 +4604,16 @@ system and gives an overview of theirfunction and contents.
special version of a recipe or package (i.e. a Multilib version). The
variable is used in places where the prefix needs to be added to or
removed from a the name (e.g. the :term:BPNvariable).documentation/ref-manual/variables.rst +1
-1- ``MLPREFIX`` gets set when a prefix has been added to ``PN``. + :term:`MLPREFIX` gets set when a prefix has been added to:term:
PN... note::
- The "ML" in ``MLPREFIX`` stands for "MultiLib". This
representation is
+ The "ML" in :term:MLPREFIXstands for "MultiLib". This
representation is
historical and comes from a time when ``nativesdk`` was a suffix
rather than a prefix on the recipe name. When ``nativesdk`` was turned
- into a prefix, it made sense to set ``MLPREFIX`` for it as
well.
+ into a prefix, it made sense to set :term:MLPREFIXfor
it as well.- To help understand when ``MLPREFIX`` might be needed,
consider when
+ To help understand when :term:MLPREFIXmight be needed,
consider when
:term:BBCLASSEXTENDis used to provide a ``nativesdk`` version of a recipe in addition to the target version.
If that recipe declares build-time dependencies on tasks in otherdocumentation/ref-manual/variables.rst +0
-0@@ -4630,9 +4630,9 @@ system and gives an overview of their functionand contents.
do_foo[depends] += "${MLPREFIX}recipe:do_foo"
module_autoload
- This variable has been replaced by the
``KERNEL_MODULE_AUTOLOAD``
+ This variable has been replaced by the
:term:KERNEL_MODULE_AUTOLOAD
variable. You should replace all occurrences of
``module_autoload``documentation/ref-manual/variables.rst +1
-1- with additions to ``KERNEL_MODULE_AUTOLOAD``, for example:: + with additions to :term:`KERNEL_MODULE_AUTOLOAD`, forexample::
module_autoload_rfcomm= "rfcomm"documentation/ref-manual/variables.rst +0
-0@@ -4716,7 +4716,7 @@ system and gives an overview of their functionand contents.
Some classes (e.g.
:ref:cross-canadian <ref-classes-cross-canadian>) modify thedocumentation/ref-manual/variables.rst +1
-1- ``MULTIMACH_TARGET_SYS`` value. + :term:`MULTIMACH_TARGET_SYS` value.See the :term:
STAMPvariable for an example. See the :term:STAGING_DIR_TARGETvariable for more information.documentation/ref-manual/variables.rst +0
-0@@ -4745,10 +4745,10 @@ system and gives an overview of theirfunction and contents.
licenses that are not in any way common. Also, new licenses are added
occasionally to avoid introducing a lot of common license files,
which are only applicable to a specific package.
- ``NO_GENERIC_LICENSE`` is used to allow copying a license
that does
+ :term:NO_GENERIC_LICENSEis used to allow copying a license
that does
not exist in common licenses.- The following example shows how to add ``NO_GENERIC_LICENSE``
to a
+ The following example shows how to add
:term:NO_GENERIC_LICENSEto a
recipe::NO_GENERIC_LICENSE[license_name] =
"license_file_in_fetched_source"documentation/ref-manual/variables.rst +0
-0@@ -4763,7 +4763,7 @@ system and gives an overview of their functionand contents.
Prevents installation of all "recommended-only" packages. Recommended-only packages are packages installed only through the
:term:RRECOMMENDSvariable). Setting the
- ``NO_RECOMMENDATIONS`` variable to "1" turns this feature
on::
+ :term:NO_RECOMMENDATIONSvariable to "1" turns this feature
on::
NO_RECOMMENDATIONS= "1"documentation/ref-manual/variables.rst +0
-0@@ -4795,7 +4795,7 @@ system and gives an overview of their functionand contents.
:term:NOAUTOPACKAGEDEBUG
Disables auto package from splitting ``.debug`` files. If a recipe
requires ``FILES_${PN}-dbg`` to be set manually, the
- ``NOAUTOPACKAGEDEBUG`` can be defined allowing you to define
the
+ :term:NOAUTOPACKAGEDEBUGcan be defined allowing you to
define the
content of the debug package. For example::NOAUTOPACKAGEDEBUG = "1"
documentation/ref-manual/variables.rst +0
-0@@ -4838,7 +4838,7 @@ system and gives an overview of their functionand contents.
value is "oe-init-build-env".If you use a custom script to set up your build environment, set the
documentation/ref-manual/variables.rst +1
-1- ``OE_INIT_ENV_SCRIPT`` variable to its name. + :term:`OE_INIT_ENV_SCRIPT` variable to its name.:term:
OE_TERMINAL
Controls how the OpenEmbedded build system spawns interactivedocumentation/ref-manual/variables.rst +0
-0@@ -4861,7 +4861,7 @@ system and gives an overview of their functionand contents.
The directory from which the top-level build environment setup script
is sourced. The Yocto Project provides a top-level build environment
setup script: :ref:structure-core-script. When you run this
- script, the ``OEROOT`` variable resolves to the directory
that
+ script, the :term:OEROOTvariable resolves to the directory
that
contains the script.For additional information on how this variable is used, see the
documentation/ref-manual/variables.rst +0
-0@@ -4881,12 +4881,12 @@ system and gives an overview of theirfunction and contents.
A colon-separated list of overrides that currently apply. Overrides
are a BitBake mechanism that allows variables to be selectively
overridden at the end of parsing. The set of overrides in
- ``OVERRIDES`` represents the "state" during building, which
includes
+ :term:OVERRIDESrepresents the "state" during building,
which includes
the current recipe being built, the machine for which it is being
built, and so forth.As an example, if the string "an-override" appears as an element in
documentation/ref-manual/variables.rst +1
-1- the colon-separated list in ``OVERRIDES``, then the following + the colon-separated list in :term:`OVERRIDES`, then thefollowing
assignment will override ``FOO`` with the value "overridden" at the
end of parsing::documentation/ref-manual/variables.rst +0
-0@@ -4897,7 +4897,7 @@ system and gives an overview of their functionand contents.
section in the BitBake User Manual for more information on the
overrides mechanism.documentation/ref-manual/variables.rst +1
-1- The default value of ``OVERRIDES`` includes the values of the + The default value of :term:`OVERRIDES` includes the values of4 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -4909,13 +4909,13 @@ system and gives an overview of their16 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -4950,7 +4950,7 @@ system and gives an overview of their function5 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- machine, you should set ``PACKAGE_ARCH`` to the value of + machine, you should set :term:`PACKAGE_ARCH` to the value of2 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -4959,11 +4959,11 @@ system and gives an overview of their19 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5003,7 +5003,7 @@ system and gives an overview of their function11 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5040,7 +5040,7 @@ system and gives an overview of their function12 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5078,7 +5078,7 @@ system and gives an overview of their function12 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5086,15 +5086,15 @@ system and gives an overview of their2 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- You can use the ``PACKAGE_FEED_ARCHS`` + You can use the :term:`PACKAGE_FEED_ARCHS`20 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5117,13 +5117,13 @@ system and gives an overview of their23 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5147,12 +5147,12 @@ system and gives an overview of their6 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- of ``PACKAGE_FEED_URIS``, + of :term:`PACKAGE_FEED_URIS`,13 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5178,7 +5178,7 @@ system and gives an overview of their function13 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5186,7 +5186,7 @@ system and gives an overview of their function14 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5207,7 +5207,7 @@ system and gives an overview of their function6 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``PACKAGE_WRITE_DEPS``. + :term:`PACKAGE_WRITE_DEPS`.2 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5215,7 +5215,7 @@ system and gives an overview of their function13 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5243,8 +5243,8 @@ system and gives an overview of their function5 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``PACKAGECONFIG_CONFARGS`` if the feature is disabled. + 2. Extra arguments that should be added to4 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5256,10 +5256,10 @@ system and gives an overview of their8 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- Consider the following ``PACKAGECONFIG`` block taken from the + Consider the following :term:`PACKAGECONFIG` block taken from5 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5269,21 +5269,21 @@ system and gives an overview of their30 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``PACKAGECONFIG``. You can either completely override the + :term:`PACKAGECONFIG`. You can either completely override3 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5308,16 +5308,16 @@ system and gives an overview of their16 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``PACKAGECONFIG_CONFARGS`` appropriately. + :term:`PACKAGECONFIG_CONFARGS` appropriately.12 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5329,10 +5329,10 @@ system and gives an overview of their4 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- goes through ``PACKAGES`` and uses the :term:`FILES` + goes through :term:`PACKAGES` and uses the :term:`FILES`3 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- package in ``PACKAGES``, it will be assigned to the earliest + package. If a file matches the :term:`FILES` variable for6 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5344,10 +5344,10 @@ system and gives an overview of their21 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5357,9 +5357,9 @@ system and gives an overview of their function6 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-2- (a soft runtime dependency) instead of ``RDEPENDS``. + (a soft runtime dependency) instead of :term:`RDEPENDS`. - For an example of how to use the ``PACKAGES_DYNAMIC``7 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5383,7 +5383,7 @@ system and gives an overview of their function9 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5394,7 +5394,7 @@ system and gives an overview of their function13 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5402,7 +5402,7 @@ system and gives an overview of their function13 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5417,14 +5417,14 @@ system and gives an overview of their22 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5461,7 +5461,7 @@ system and gives an overview of their function4 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``PE`` is the default value of the :term:`PKGE` variable. + :term:`PE` is the default value of the :term:`PKGE` variable.3 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5483,7 +5483,7 @@ system and gives an overview of their function9 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5534,45 +5534,45 @@ system and gives an overview of their4 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- The ``PKGDESTWORK`` location defaults to the following:: + The :term:`PKGDESTWORK` location defaults to the following::3 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- package metadata from ``PKGDESTWORK`` to + package metadata from :term:`PKGDESTWORK` to10 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``PKGR`` is set to :term:`PR`. + :term:`PKGR` is set to :term:`PR`.3 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``PKGV`` is set to :term:`PV`. + :term:`PKGV` is set to :term:`PV`.34 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5581,7 +5581,7 @@ system and gives an overview of their function4 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- To prevent a recipe from being built, use the ``PNBLACKLIST`` + To prevent a recipe from being built, use the3 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5615,30 +5615,30 @@ system and gives an overview of their6 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``PR`` is conventionally reset to "r0". + :term:`PR` is conventionally reset to "r0".18 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- this case, ``PR``, which is the default value of + this case, :term:`PR`, which is the default value of24 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5657,7 +5657,7 @@ system and gives an overview of their function10 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5671,9 +5671,9 @@ system and gives an overview of their function15 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5684,7 +5684,7 @@ system and gives an overview of their function14 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5716,7 +5716,7 @@ system and gives an overview of their function2 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- Sometimes the ``PREFERRED_VERSION`` variable can be set by + Sometimes the :term:`PREFERRED_VERSION` variable can be set5 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5732,7 +5732,7 @@ system and gives an overview of their function12 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5742,12 +5742,12 @@ system and gives an overview of their14 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- the default value for ``PREMIRRORS`` is defined in the + the default value for :term:`PREMIRRORS` is defined in the4 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5770,12 +5770,12 @@ system and gives an overview of their20 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5805,19 +5805,19 @@ system and gives an overview of their4 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-2- default, a recipe's own ``PN`` is implicitly already in its - ``PROVIDES`` list and therefore does not need to mention that13 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-2- ``DEPENDS``. + :term:`DEPENDS`. - Consider the following example ``PROVIDES`` statement from5 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- The ``PROVIDES`` statement + The :term:`PROVIDES` statement3 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5827,12 +5827,12 @@ system and gives an overview of their22 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5860,14 +5860,14 @@ system and gives an overview of their4 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``PRSERV_HOST`` variable is set:: + :term:`PRSERV_HOST` variable is set::11 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5889,12 +5889,12 @@ system and gives an overview of their16 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``PV`` is the default value of the :term:`PKGV` variable. + :term:`PV` is the default value of the :term:`PKGV` variable.2 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5916,7 +5916,7 @@ system and gives an overview of their function11 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5926,7 +5926,7 @@ system and gives an overview of their function3 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- the version of the dependency is ``PYTHON_PN``. + the version of the dependency is :term:`PYTHON_PN`.2 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5944,7 +5944,7 @@ system and gives an overview of their function6 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``RCONFLICTS`` variable:: + :term:`RCONFLICTS` variable::1 line not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5972,12 +5972,12 @@ system and gives an overview of their21 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -5988,26 +5988,26 @@ system and gives an overview of their41 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``RDEPENDS`` statement:: + :term:`RDEPENDS` statement::1 line not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6024,19 +6024,19 @@ system and gives an overview of their6 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- in the ``PACKAGES`` variable. The :term:`PKG` variable + The package names you use with :term:`RDEPENDS` must appear17 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``RDEPENDS`` variable:: + :term:`RDEPENDS` variable::1 line not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6052,7 +6052,7 @@ system and gives an overview of their function9 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6073,8 +6073,8 @@ system and gives an overview of their function17 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6122,7 +6122,7 @@ system and gives an overview of their function4 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- The ``ROOTFS`` variable is an optional variable used with the + The :term:`ROOTFS` variable is an optional variable used with3 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6183,11 +6183,11 @@ system and gives an overview of their7 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``RDEPENDS``). + :term:`RDEPENDS`).9 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6200,16 +6200,16 @@ system and gives an overview of their7 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-2- the ``RDEPENDS`` variable. + the :term:`RDEPENDS` variable. - The package manager will automatically install the17 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6217,7 +6217,7 @@ system and gives an overview of their function14 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6228,14 +6228,14 @@ system and gives an overview of their15 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``RRECOMMENDS`` variable:: + :term:`RRECOMMENDS` variable::1 line not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6257,7 +6257,7 @@ system and gives an overview of their function7 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- the other package to the ``RCONFLICTS`` variable. + the other package to the :term:`RCONFLICTS` variable.4 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6268,7 +6268,7 @@ system and gives an overview of their function6 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``RREPLACES`` variable:: + :term:`RREPLACES` variable::1 line not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6304,7 +6304,7 @@ system and gives an overview of their function13 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6319,7 +6319,7 @@ system and gives an overview of their function10 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6336,7 +6336,7 @@ system and gives an overview of their function15 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6347,7 +6347,7 @@ system and gives an overview of their function10 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6355,7 +6355,7 @@ system and gives an overview of their function5 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``SDK_DEPLOY`` as follows:: + :term:`SDK_DEPLOY` as follows::1 line not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6369,8 +6369,8 @@ system and gives an overview of their function13 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6409,7 +6409,7 @@ system and gives an overview of their function2 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- Enabling the ``SDK_INCLUDE_PKGDATA`` + Enabling the :term:`SDK_INCLUDE_PKGDATA`5 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6423,9 +6423,9 @@ system and gives an overview of their function4 lines not shown · raw message
documentation/ref-manual/variables.rst +2
-3- The ``SDK_INCLUDE_TOOLCHAIN`` variable defaults to "0" if - ``SDK_EXT_TYPE`` is set to "minimal", and defaults to "1" if - ``SDK_EXT_TYPE`` is set to "full". + The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if + :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1"4 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6451,7 +6451,7 @@ system and gives an overview of their function4 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- By default, ``SDK_LOCAL_CONF_BLACKLIST`` is set in the + By default, :term:`SDK_LOCAL_CONF_BLACKLIST` is set in the3 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6513,7 +6513,7 @@ system and gives an overview of their function9 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6521,7 +6521,7 @@ system and gives an overview of their function12 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6536,7 +6536,7 @@ system and gives an overview of their function10 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6550,9 +6550,9 @@ system and gives an overview of their function15 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6563,7 +6563,7 @@ system and gives an overview of their function5 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- :term:`SDK_OS`. You do not need to set the ``SDK_SYS`` + :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`2 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6587,7 +6587,7 @@ system and gives an overview of their function10 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6600,7 +6600,7 @@ system and gives an overview of their function11 lines not shown · raw message
documentation/ref-manual/variables.rst +0
-0@@ -6618,7 +6618,7 @@ system and gives an overview of their function5 lines not shown · raw message
documentation/ref-manual/variables.rst +1
-1- ``SDK_VERSION`` as follows:: + :term:`SDK_VERSION` as follows::Quoted 2 lines
1 line not shown · raw message
1,950 lines not shown · raw message
Part of this message is not shown here. View the raw message.
Quentin, Nicolas,
Quoted 7 lines · Quentin Schulz
It works without making it explicit where the term is defined and I think it's what we want. Because if the term is only defined in Bitbake, itll find it anyway so all good. And the day we decide to "duplicate" the entry in the YP docs, it'll point to the one from YP, no maintenance needed so really neat :)
Quoted 8 lines
I can make separate patches if you want but I would not like to add bitbake prefix.
I've rewritten the script now and it's a bit smarter (no need to call sphinx.ext.intersphinx module). If there's interest I can try to make it even nicer and add it to the doc repo for future use since when we'll document more variables, if they are already highlihted somewhere else, it'll stay this way unless this script is run again.
Nicolas, did you think about it? Quentin seems to be waiting for your feedback to send his v2 with the updated script.
I'd vote for keeping the script in the repository for future use as you suggest, Quentin. You may copy it to ./tools/ or ./documentation/tools/
Thanks in advance,
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 20 lines · Michael Opdenacker
Quentin, Nicolas,
Quoted 7 lines · Quentin Schulz
It works without making it explicit where the term is defined and I think it's what we want. Because if the term is only defined in Bitbake, itll find it anyway so all good. And the day we decide to "duplicate" the entry in the YP docs, it'll point to the one from YP, no maintenance needed so really neat :)
Quoted 8 lines
I can make separate patches if you want but I would not like to add bitbake prefix.
I've rewritten the script now and it's a bit smarter (no need to call sphinx.ext.intersphinx module). If there's interest I can try to make it even nicer and add it to the doc repo for future use since when we'll document more variables, if they are already highlihted somewhere else, it'll stay this way unless this script is run again.
Quoted 3 lines
Nicolas, did you think about it? Quentin seems to be waiting for your feedback to send his v2 with the updated script.
Yes, I agree with last message from Quentin. He is right, we don't need to prefix with bitbake.
Quoted 4 lines
I'd vote for keeping the script in the repository for future use as you suggest, Quentin. You may copy it to
./tools/or ./documentation/tools/
I think we tend to use ./scripts in a few other places, but it's a minor detail.
Perhaps this script can be turned into a sphinx extension eventually, and emit warnings ;)
Quoted 10 lines
Thanks in advance,
Michael.
--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Hi Quentin,
Quoted 44 lines · Nicolas Dechesne
On Wed, Jun 2, 2021 at 4:50 PM Michael Opdenacker
<[email protected]
<mailto:[email protected]>> wrote:Quentin, Nicolas,
On 5/29/21 5:15 PM, Quentin Schulz wrote:
>
> It works without making it explicit where the term is defined and I > think it's what we want. Because if the term is only defined in > Bitbake, itll find it anyway so all good. And the day we decide to > "duplicate" the entry in the YP docs, it'll point to the one from YP,
> no maintenance needed so really neat :)
>
> I can make separate patches if you want but I would not like to add > bitbake prefix.
>
> I've rewritten the script now and it's a bit smarter (no need to call
> sphinx.ext.intersphinx module). If there's interest I can try to make
> it even nicer and add it to the doc repo for future use since when > we'll document more variables, if they are already highlihted > somewhere else, it'll stay this way unless this script is run again.Nicolas, did you think about it? Quentin seems to be waiting for your feedback to send his v2 with the updated script.
Yes, I agree with last message from Quentin. He is right, we don't need to prefix with bitbake.
I'd vote for keeping the script in the repository for future use as you
suggest, Quentin. You may copy it to./tools/or ./documentation/tools/
Quoted 5 lines
I think we tend to use ./scripts in a few other places, but it's a minor detail.
Perhaps this script can be turned into a sphinx extension eventually, and emit warnings ;)
Am I right to expect a V2 from you? As far as I understood, you were proposing to update the script quoted in the commit message.
On the other hand, if you don't have time, I'll be happy to take your V1, as the patch contents are already correct...
Thanks in advance,
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hi Michael,
Quoted 50 lines · Michael Opdenacker
Hi Quentin,
Quoted 47 lines · Nicolas Dechesne
On Wed, Jun 2, 2021 at 4:50 PM Michael Opdenacker
<[email protected]
<mailto:[email protected]>> wrote:Quentin, Nicolas,
On 5/29/21 5:15 PM, Quentin Schulz wrote:
>
> It works without making it explicit where the term is defined and I > think it's what we want. Because if the term is only defined in > Bitbake, itll find it anyway so all good. And the day we decide to > "duplicate" the entry in the YP docs, it'll point to the one from YP,
> no maintenance needed so really neat :)
>
> I can make separate patches if you want but I would not like to add > bitbake prefix.
>
> I've rewritten the script now and it's a bit smarter (no need to call
> sphinx.ext.intersphinx module). If there's interest I can try to make
> it even nicer and add it to the doc repo for future use since when > we'll document more variables, if they are already highlihted > somewhere else, it'll stay this way unless this script is run again.Nicolas, did you think about it? Quentin seems to be waiting for your feedback to send his v2 with the updated script.
Yes, I agree with last message from Quentin. He is right, we don't need to prefix with bitbake.
I'd vote for keeping the script in the repository for future use as you
suggest, Quentin. You may copy it to./tools/or ./documentation/tools/I think we tend to use ./scripts in a few other places, but it's a minor detail.
Quoted 7 lines
Quoted 2 lines
Perhaps this script can be turned into a sphinx extension eventually, and emit warnings ;)
Am I right to expect a V2 from you? As far as I understood, you were proposing to update the script quoted in the commit message.
Yes I will. It was a long (and sunny) week-end in Austria, sorry for the delay :)
I was also trying to find a way to create a module for sphinx to do this on the fly when compiling and throw errors/warnings but in the few hours I spent, I didn't find anything straightforward. So for now, the manual way will do.
Just to be sure, no separate patch for bitbake and YP variables right? (not talking the :term:bitbake: stuff but more the objects.inv used to detect the missing term references; I run the script twice now :) )
Cheers,
Quentin
Hi Quentin,
Quoted 2 lines · Quentin Schulz
Yes I will. It was a long (and sunny) week-end in Austria, sorry for the delay :)
No problem, take your time! I just wanted to avoid any possible missunderstanding.
Quoted 5 lines
I was also trying to find a way to create a module for sphinx to do this on the fly when compiling and throw errors/warnings but in the few hours I spent, I didn't find anything straightforward. So for now, the manual way will do.
Thanks for trying anyway!
Quoted 4 lines
Just to be sure, no separate patch for bitbake and YP variables right? (not talking the :term:
bitbake:stuff but more the objects.inv used to detect the missing term references; I run the script twice now :) )
Right, a single patch will do, when you have time.
Thanks again,
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Quentin
Quoted 8 lines · Michael Opdenacker
Hi Quentin,
Quoted 2 lines · Quentin Schulz
Yes I will. It was a long (and sunny) week-end in Austria, sorry for the delay :)
No problem, take your time! I just wanted to avoid any possible missunderstanding.
I decided to merge your patch into "master-next".
What prompted me to do this was...
* I was about to propose a patch touching one of the lines modified by yours
* This patch was getting harder to apply because of recent changes
* It already had been reviewed and the changes matter more than their description IMHO.
Thanks again,
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hi Quentin,
Quoted 29 lines · Quentin Schulz
If a variable has a glossary entry and some rST files write about those variables, it's better to point to the glossary entry instead of just highlighting it by surrounding it with two tick quotes.
This was automated by the following python script:
"""
import re
from pathlib import Pathwith
open('objects.inv.txt', 'r')as f:
objects =f.readlines()with
open('bitbake-objects.inv.txt', 'r')as f:
objects = objects +f.readlines()
re_term= re.compile(r'variables.html#term-([A-Z_0-9]*)') terms = []for obj in objects:
match =re_term.search(obj)
if match andmatch.group(1):
terms.append(match.group(1))for rst in Path('.').rglob('*.rst'):
withopen(rst, 'r')as f:
content = "".joing(f.readlines())
for term in terms:
content = re.sub(r'``({})``(?!.*\s*[~-]+)'.format(term), r':term:\1', content)
Quoted 5 lines
with
open(rst, 'w')as f:
f.write(content)
"""Signed-off-by Quentin Schulz <[email protected]>
Looks nice. By the way, what about making a similar script that would find documented variables that are no longer supported in the current releases?
I'm curious about how many obsolete variables we're still documenting...
Just an idea when you have time... Or when I have time ;-)
Cheers,
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hi Michael,
Quoted 39 lines · Michael Opdenacker
Hi Quentin,
Quoted 30 lines · Quentin Schulz
If a variable has a glossary entry and some rST files write about those variables, it's better to point to the glossary entry instead of just highlighting it by surrounding it with two tick quotes.
This was automated by the following python script:
"""
import re
from pathlib import Pathwith
open('objects.inv.txt', 'r')as f:
objects =f.readlines()with
open('bitbake-objects.inv.txt', 'r')as f:
objects = objects +f.readlines()
re_term= re.compile(r'variables.html#term-([A-Z_0-9]*)') terms = []for obj in objects:
match =re_term.search(obj)
if match andmatch.group(1):
terms.append(match.group(1))for rst in Path('.').rglob('*.rst'):
withopen(rst, 'r')as f:
content = "".joing(f.readlines())
for term in terms:
content = re.sub(r'``({})``(?!.*\s*[~-]+)'.format(term),
r':term:\1', content)Quoted 5 lines
with
open(rst, 'w')as f:
f.write(content)
"""Signed-off-by Quentin Schulz <[email protected]>
Quoted 8 lines
Looks nice. By the way, what about making a similar script that would find documented variables that are no longer supported in the current releases?
I'm curious about how many obsolete variables we're still documenting...
Just an idea when you have time... Or when I have time ;-)
From within poky directory:
git grep -hoP '^ :term:\K\w+(?=)' documentation/ref-manual/variables.rst bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst | xargs -I{} sh -c "grep -Rq --exclude-dir=documentation --include='*.py' --include='*.conf' --include='*.bbclass' --include='*.bb' --include='*.bbappend' --include='*.inc' -w -E {}'_*(_[a-z]+[0-9a-z]*[a-z]+)*' || echo {}"
which looks for all words fulfilling the following criteria:
- should start with an entry from the glossary (e.g. :term:DEPENDS
the word shall start with DEPENDS
- may be followed by an underscore only (to match RDEPENDS_${* andd.getVar('RDEPENDS_')
- may be followed by _alllowercase-digit (to match overrides, e.g.
DEFAULTTUNE_virtclass-multilib-lib32)
The command returns the following:BB_SETSCENE_VERIFY_FUNCTION2
BBVERSIONS
Aaaaaaand I should have checked BBVERSIONS for my slides about OVERRIDES at last YP summit because it indeed does not exist anymore since... November 2016 (https://git.openembedded.org/bitbake/commit/?id=0bb188f01e396052b127e170a25246d79a6d6741).
BB_SETSCENE_VERIFY_FUNCTION2 has been removed in 3.0 (zeus) release, c.f. https://git.openembedded.org/bitbake/commit/?id=5deaa5df730a8a846f3192b4a639b7a2a72c1b71
I'll send patches to the bitbake and yocto-docs ML ASAP.
I've tested by adding :term:TEST123TEST and :term:MACH to the variables.rst file.
Then, I added the following to any file matching the include patterns of the grep command above:
MACH = "plop"
${MACH}d.getVar('MACH')MACH_plop
MACH_${plop}-plep
IMACH_${plop}-plep
All match when running the grep command only (without the -q option) except the last one in the list (to check that MACH term is not found by grep in e.g. MACHINE).
TEST123TEST is reported as not being used which is correct.
I also had the idea of trying to guess which Bitbake variables are highlighted but not documented yet. This will obviously require cherry-picking because e.g. README is matched but there's definitely nothing to add in the glossary for that :)
Cheers,
Quentin