Andrew Geissler | f034379 | 2020-11-18 10:42:21 -0600 | [diff] [blame] | 1 | .. SPDX-License-Identifier: CC-BY-SA-2.0-UK |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 2 | |
| 3 | ******************* |
| 4 | Yocto Project Terms |
| 5 | ******************* |
| 6 | |
| 7 | Following is a list of terms and definitions users new to the Yocto Project |
| 8 | development environment might find helpful. While some of these terms are |
| 9 | universal, the list includes them just in case: |
| 10 | |
| 11 | .. glossary:: |
| 12 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 13 | :term:`Append Files` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 14 | Files that append build information to a recipe file. Append files are |
| 15 | known as BitBake append files and ``.bbappend`` files. The OpenEmbedded |
| 16 | build system expects every append file to have a corresponding recipe |
| 17 | (``.bb``) file. Furthermore, the append file and corresponding recipe file |
| 18 | must use the same root filename. The filenames can differ only in the |
| 19 | file type suffix used (e.g. ``formfactor_0.0.bb`` and |
| 20 | ``formfactor_0.0.bbappend``). |
| 21 | |
| 22 | Information in append files extends or overrides the information in the |
| 23 | similarly-named recipe file. For an example of an append file in use, see |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 24 | the ":ref:`dev-manual/common-tasks:Using .bbappend Files in |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 25 | Your Layer`" section in the Yocto Project Development Tasks Manual. |
| 26 | |
| 27 | When you name an append file, you can use the "``%``" wildcard character |
| 28 | to allow for matching recipe names. For example, suppose you have an |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 29 | append file named as follows:: |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 30 | |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 31 | busybox_1.21.%.bbappend |
| 32 | |
| 33 | That append file |
| 34 | would match any ``busybox_1.21.``\ x\ ``.bb`` version of the recipe. So, |
| 35 | the append file would match any of the following recipe names: |
| 36 | |
| 37 | .. code-block:: shell |
| 38 | |
| 39 | busybox_1.21.1.bb |
| 40 | busybox_1.21.2.bb |
| 41 | busybox_1.21.3.bb |
| 42 | busybox_1.21.10.bb |
| 43 | busybox_1.21.25.bb |
| 44 | |
| 45 | .. note:: |
| 46 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 47 | The use of the "%" character is limited in that it only works |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 48 | directly in front of the .bbappend portion of the append file's |
| 49 | name. You cannot use the wildcard character in any other location of |
| 50 | the name. |
| 51 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 52 | :term:`BitBake` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 53 | The task executor and scheduler used by the OpenEmbedded build system to |
| 54 | build images. For more information on BitBake, see the :doc:`BitBake User |
| 55 | Manual <bitbake:index>`. |
| 56 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 57 | :term:`Board Support Package (BSP)` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 58 | A group of drivers, definitions, and other components that provide support |
| 59 | for a specific hardware configuration. For more information on BSPs, see |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 60 | the :doc:`/bsp-guide/index`. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 61 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 62 | :term:`Build Directory` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 63 | This term refers to the area used by the OpenEmbedded build system for |
| 64 | builds. The area is created when you ``source`` the setup environment |
| 65 | script that is found in the Source Directory |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 66 | (i.e. :ref:`ref-manual/structure:\`\`oe-init-build-env\`\``). The |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 67 | :term:`TOPDIR` variable points to the Build Directory. |
| 68 | |
| 69 | You have a lot of flexibility when creating the Build Directory. |
| 70 | Following are some examples that show how to create the directory. The |
| 71 | examples assume your :term:`Source Directory` is named ``poky``: |
| 72 | |
| 73 | - Create the Build Directory inside your Source Directory and let |
| 74 | the name of the Build Directory default to ``build``: |
| 75 | |
| 76 | .. code-block:: shell |
| 77 | |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 78 | $ cd poky |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 79 | $ source oe-init-build-env |
| 80 | |
| 81 | - Create the Build Directory inside your home directory and |
| 82 | specifically name it ``test-builds``: |
| 83 | |
| 84 | .. code-block:: shell |
| 85 | |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 86 | $ source poky/oe-init-build-env test-builds |
| 87 | |
| 88 | - Provide a directory path and specifically name the Build |
| 89 | Directory. Any intermediate folders in the pathname must exist. |
| 90 | This next example creates a Build Directory named |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 91 | ``YP-&POKYVERSION;`` within the existing directory ``mybuilds``: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 92 | |
| 93 | .. code-block:: shell |
| 94 | |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 95 | $ source poky/oe-init-build-env mybuilds/YP-&POKYVERSION; |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 96 | |
| 97 | .. note:: |
| 98 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 99 | By default, the Build Directory contains :term:`TMPDIR`, which is a |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 100 | temporary directory the build system uses for its work. :term:`TMPDIR` cannot |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 101 | be under NFS. Thus, by default, the Build Directory cannot be under |
| 102 | NFS. However, if you need the Build Directory to be under NFS, you can |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 103 | set this up by setting :term:`TMPDIR` in your ``local.conf`` file to use a local |
| 104 | drive. Doing so effectively separates :term:`TMPDIR` from :term:`TOPDIR`, which is the |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 105 | Build Directory. |
| 106 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 107 | :term:`Build Host` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 108 | The system used to build images in a Yocto Project Development |
| 109 | environment. The build system is sometimes referred to as the development |
| 110 | host. |
| 111 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 112 | :term:`Classes` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 113 | Files that provide for logic encapsulation and inheritance so that |
| 114 | commonly used patterns can be defined once and then easily used in |
| 115 | multiple recipes. For reference information on the Yocto Project classes, |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 116 | see the ":ref:`ref-manual/classes:Classes`" chapter. Class files end with the |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 117 | ``.bbclass`` filename extension. |
| 118 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 119 | :term:`Configuration File` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 120 | Files that hold global definitions of variables, user-defined variables, |
| 121 | and hardware configuration information. These files tell the OpenEmbedded |
| 122 | build system what to build and what to put into the image to support a |
| 123 | particular platform. |
| 124 | |
| 125 | Configuration files end with a ``.conf`` filename extension. The |
| 126 | :file:`conf/local.conf` configuration file in the :term:`Build Directory` |
| 127 | contains user-defined variables that affect every build. The |
| 128 | :file:`meta-poky/conf/distro/poky.conf` configuration file defines Yocto |
| 129 | "distro" configuration variables used only when building with this |
| 130 | policy. Machine configuration files, which are located throughout the |
| 131 | :term:`Source Directory`, define variables for specific hardware and are |
| 132 | only used when building for that target (e.g. the |
| 133 | :file:`machine/beaglebone.conf` configuration file defines variables for |
| 134 | the Texas Instruments ARM Cortex-A8 development board). |
| 135 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 136 | :term:`Container Layer` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 137 | Layers that hold other layers. An example of a container layer is |
| 138 | OpenEmbedded's `meta-openembedded |
| 139 | <https://github.com/openembedded/meta-openembedded>`_ layer. The |
| 140 | ``meta-openembedded`` layer contains many ``meta-*`` layers. |
| 141 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 142 | :term:`Cross-Development Toolchain` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 143 | In general, a cross-development toolchain is a collection of software |
| 144 | development tools and utilities that run on one architecture and allow you |
| 145 | to develop software for a different, or targeted, architecture. These |
| 146 | toolchains contain cross-compilers, linkers, and debuggers that are |
| 147 | specific to the target architecture. |
| 148 | |
| 149 | The Yocto Project supports two different cross-development toolchains: |
| 150 | |
| 151 | - A toolchain only used by and within BitBake when building an image for a |
| 152 | target architecture. |
| 153 | |
| 154 | - A relocatable toolchain used outside of BitBake by developers when |
| 155 | developing applications that will run on a targeted device. |
| 156 | |
| 157 | Creation of these toolchains is simple and automated. For information on |
| 158 | toolchain concepts as they apply to the Yocto Project, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 159 | ":ref:`overview-manual/concepts:Cross-Development |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 160 | Toolchain Generation`" section in the Yocto Project Overview and Concepts |
| 161 | Manual. You can also find more information on using the relocatable |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 162 | toolchain in the :doc:`/sdk-manual/index` manual. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 163 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 164 | :term:`Extensible Software Development Kit (eSDK)` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 165 | A custom SDK for application developers. This eSDK allows developers to |
| 166 | incorporate their library and programming changes back into the image to |
| 167 | make their code available to other application developers. |
| 168 | |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 169 | For information on the eSDK, see the :doc:`/sdk-manual/index` manual. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 170 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 171 | :term:`Image` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 172 | An image is an artifact of the BitBake build process given a collection of |
| 173 | recipes and related Metadata. Images are the binary output that run on |
| 174 | specific hardware or QEMU and are used for specific use-cases. For a list |
| 175 | of the supported image types that the Yocto Project provides, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 176 | ":ref:`ref-manual/images:Images`" chapter. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 177 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 178 | :term:`Layer` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 179 | A collection of related recipes. Layers allow you to consolidate related |
| 180 | metadata to customize your build. Layers also isolate information used |
| 181 | when building for multiple architectures. Layers are hierarchical in |
| 182 | their ability to override previous specifications. You can include any |
| 183 | number of available layers from the Yocto Project and customize the build |
| 184 | by adding your layers after them. You can search the Layer Index for |
| 185 | layers used within Yocto Project. |
| 186 | |
| 187 | For introductory information on layers, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 188 | ":ref:`overview-manual/yp-intro:The Yocto Project Layer |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 189 | Model`" section in the Yocto Project Overview and Concepts Manual. For |
| 190 | more detailed information on layers, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 191 | ":ref:`dev-manual/common-tasks:Understanding and Creating |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 192 | Layers`" section in the Yocto Project Development Tasks Manual. For a |
| 193 | discussion specifically on BSP Layers, see the ":ref:`bsp-guide/bsp:BSP |
| 194 | Layers`" section in the Yocto Project Board Support Packages (BSP) |
| 195 | Developer's Guide. |
| 196 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 197 | :term:`Metadata` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 198 | A key element of the Yocto Project is the Metadata that |
| 199 | is used to construct a Linux distribution and is contained in the |
| 200 | files that the :term:`OpenEmbedded Build System` |
| 201 | parses when building an image. In general, Metadata includes recipes, |
| 202 | configuration files, and other information that refers to the build |
| 203 | instructions themselves, as well as the data used to control what |
| 204 | things get built and the effects of the build. Metadata also includes |
| 205 | commands and data used to indicate what versions of software are |
| 206 | used, from where they are obtained, and changes or additions to the |
| 207 | software itself (patches or auxiliary files) that are used to fix |
| 208 | bugs or customize the software for use in a particular situation. |
| 209 | OpenEmbedded-Core is an important set of validated metadata. |
| 210 | |
| 211 | In the context of the kernel ("kernel Metadata"), the term refers to |
| 212 | the kernel config fragments and features contained in the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 213 | :yocto_git:`yocto-kernel-cache </yocto-kernel-cache>` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 214 | Git repository. |
| 215 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 216 | :term:`OpenEmbedded-Core (OE-Core)` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 217 | OE-Core is metadata comprised of |
| 218 | foundational recipes, classes, and associated files that are meant to |
| 219 | be common among many different OpenEmbedded-derived systems, |
| 220 | including the Yocto Project. OE-Core is a curated subset of an |
| 221 | original repository developed by the OpenEmbedded community that has |
| 222 | been pared down into a smaller, core set of continuously validated |
| 223 | recipes. The result is a tightly controlled and an quality-assured |
| 224 | core set of recipes. |
| 225 | |
| 226 | You can see the Metadata in the ``meta`` directory of the Yocto |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 227 | Project :yocto_git:`Source Repositories </poky>`. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 228 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 229 | :term:`OpenEmbedded Build System` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 230 | The build system specific to the Yocto |
| 231 | Project. The OpenEmbedded build system is based on another project |
| 232 | known as "Poky", which uses :term:`BitBake` as the task |
| 233 | executor. Throughout the Yocto Project documentation set, the |
| 234 | OpenEmbedded build system is sometimes referred to simply as "the |
| 235 | build system". If other build systems, such as a host or target build |
| 236 | system are referenced, the documentation clearly states the |
| 237 | difference. |
| 238 | |
| 239 | .. note:: |
| 240 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 241 | For some historical information about Poky, see the :term:`Poky` term. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 242 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 243 | :term:`Package` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 244 | In the context of the Yocto Project, this term refers to a |
| 245 | recipe's packaged output produced by BitBake (i.e. a "baked recipe"). |
| 246 | A package is generally the compiled binaries produced from the |
| 247 | recipe's sources. You "bake" something by running it through BitBake. |
| 248 | |
| 249 | It is worth noting that the term "package" can, in general, have |
| 250 | subtle meanings. For example, the packages referred to in the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 251 | ":ref:`ref-manual/system-requirements:required packages for the build host`" |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 252 | section are compiled binaries that, when installed, add functionality to |
| 253 | your Linux distribution. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 254 | |
| 255 | Another point worth noting is that historically within the Yocto |
| 256 | Project, recipes were referred to as packages - thus, the existence |
| 257 | of several BitBake variables that are seemingly mis-named, (e.g. |
| 258 | :term:`PR`, :term:`PV`, and |
| 259 | :term:`PE`). |
| 260 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 261 | :term:`Package Groups` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 262 | Arbitrary groups of software Recipes. You use |
| 263 | package groups to hold recipes that, when built, usually accomplish a |
| 264 | single task. For example, a package group could contain the recipes |
| 265 | for a company's proprietary or value-add software. Or, the package |
| 266 | group could contain the recipes that enable graphics. A package group |
| 267 | is really just another recipe. Because package group files are |
| 268 | recipes, they end with the ``.bb`` filename extension. |
| 269 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 270 | :term:`Poky` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 271 | Poky, which is pronounced *Pock*-ee, is a reference embedded |
| 272 | distribution and a reference test configuration. Poky provides the |
| 273 | following: |
| 274 | |
| 275 | - A base-level functional distro used to illustrate how to customize |
| 276 | a distribution. |
| 277 | |
| 278 | - A means by which to test the Yocto Project components (i.e. Poky |
| 279 | is used to validate the Yocto Project). |
| 280 | |
| 281 | - A vehicle through which you can download the Yocto Project. |
| 282 | |
| 283 | Poky is not a product level distro. Rather, it is a good starting |
| 284 | point for customization. |
| 285 | |
| 286 | .. note:: |
| 287 | |
| 288 | Poky began as an open-source project initially developed by |
| 289 | OpenedHand. OpenedHand developed Poky from the existing |
| 290 | OpenEmbedded build system to create a commercially supportable |
| 291 | build system for embedded Linux. After Intel Corporation acquired |
| 292 | OpenedHand, the poky project became the basis for the Yocto |
| 293 | Project's build system. |
| 294 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 295 | :term:`Recipe` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 296 | A set of instructions for building packages. A recipe |
| 297 | describes where you get source code, which patches to apply, how to |
| 298 | configure the source, how to compile it and so on. Recipes also |
| 299 | describe dependencies for libraries or for other recipes. Recipes |
| 300 | represent the logical unit of execution, the software to build, the |
| 301 | images to build, and use the ``.bb`` file extension. |
| 302 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 303 | :term:`Reference Kit` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 304 | A working example of a system, which includes a |
| 305 | :term:`BSP<Board Support Package (BSP)>` as well as a |
| 306 | :term:`build host<Build Host>` and other components, that can |
| 307 | work on specific hardware. |
| 308 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 309 | :term:`Source Directory` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 310 | This term refers to the directory structure |
| 311 | created as a result of creating a local copy of the ``poky`` Git |
| 312 | repository ``git://git.yoctoproject.org/poky`` or expanding a |
| 313 | released ``poky`` tarball. |
| 314 | |
| 315 | .. note:: |
| 316 | |
| 317 | Creating a local copy of the |
| 318 | poky |
| 319 | Git repository is the recommended method for setting up your |
| 320 | Source Directory. |
| 321 | |
| 322 | Sometimes you might hear the term "poky directory" used to refer to |
| 323 | this directory structure. |
| 324 | |
| 325 | .. note:: |
| 326 | |
| 327 | The OpenEmbedded build system does not support file or directory |
| 328 | names that contain spaces. Be sure that the Source Directory you |
| 329 | use does not contain these types of names. |
| 330 | |
| 331 | The Source Directory contains BitBake, Documentation, Metadata and |
| 332 | other files that all support the Yocto Project. Consequently, you |
| 333 | must have the Source Directory in place on your development system in |
| 334 | order to do any development using the Yocto Project. |
| 335 | |
| 336 | When you create a local copy of the Git repository, you can name the |
| 337 | repository anything you like. Throughout much of the documentation, |
| 338 | "poky" is used as the name of the top-level folder of the local copy |
| 339 | of the poky Git repository. So, for example, cloning the ``poky`` Git |
| 340 | repository results in a local Git repository whose top-level folder |
| 341 | is also named "poky". |
| 342 | |
| 343 | While it is not recommended that you use tarball expansion to set up |
| 344 | the Source Directory, if you do, the top-level directory name of the |
| 345 | Source Directory is derived from the Yocto Project release tarball. |
| 346 | For example, downloading and unpacking |
Andrew Geissler | c3d88e4 | 2020-10-02 09:45:00 -0500 | [diff] [blame] | 347 | :yocto_dl:`/releases/yocto/&DISTRO_REL_TAG;/&YOCTO_POKY;.tar.bz2` |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 348 | results in a Source Directory whose root folder is named |
| 349 | ``&YOCTO_POKY;``. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 350 | |
| 351 | It is important to understand the differences between the Source |
| 352 | Directory created by unpacking a released tarball as compared to |
| 353 | cloning ``git://git.yoctoproject.org/poky``. When you unpack a |
| 354 | tarball, you have an exact copy of the files based on the time of |
| 355 | release - a fixed release point. Any changes you make to your local |
| 356 | files in the Source Directory are on top of the release and will |
| 357 | remain local only. On the other hand, when you clone the ``poky`` Git |
| 358 | repository, you have an active development repository with access to |
| 359 | the upstream repository's branches and tags. In this case, any local |
| 360 | changes you make to the local Source Directory can be later applied |
| 361 | to active development branches of the upstream ``poky`` Git |
| 362 | repository. |
| 363 | |
| 364 | For more information on concepts related to Git repositories, |
| 365 | branches, and tags, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 366 | ":ref:`overview-manual/development-environment:repositories, tags, and branches`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 367 | section in the Yocto Project Overview and Concepts Manual. |
| 368 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 369 | :term:`Task` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 370 | A unit of execution for BitBake (e.g. |
| 371 | :ref:`ref-tasks-compile`, |
| 372 | :ref:`ref-tasks-fetch`, |
| 373 | :ref:`ref-tasks-patch`, and so forth). |
| 374 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 375 | :term:`Toaster` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 376 | A web interface to the Yocto Project's :term:`OpenEmbedded Build System`. |
| 377 | The interface enables you to |
| 378 | configure and run your builds. Information about builds is collected |
| 379 | and stored in a database. For information on Toaster, see the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 380 | :doc:`/toaster-manual/index`. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 381 | |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 382 | :term:`Upstream` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 383 | A reference to source code or repositories that are not |
| 384 | local to the development system but located in a master area that is |
| 385 | controlled by the maintainer of the source code. For example, in |
| 386 | order for a developer to work on a particular piece of code, they |
| 387 | need to first get a copy of it from an "upstream" source. |