From 252cecf3791cf8268b707c8b061bbe97a4524c86 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 2 Dec 2010 09:56:23 -0800 Subject: documentation/poky-ref-manual: English scrub performed for consistency. Signed-off-by: Scott Rifenbark --- documentation/poky-ref-manual/ref-structure.xml | 362 +++++++++++++----------- 1 file changed, 194 insertions(+), 168 deletions(-) (limited to 'documentation') diff --git a/documentation/poky-ref-manual/ref-structure.xml b/documentation/poky-ref-manual/ref-structure.xml index 296ea54eb3..74687c50a5 100644 --- a/documentation/poky-ref-manual/ref-structure.xml +++ b/documentation/poky-ref-manual/ref-structure.xml @@ -6,9 +6,9 @@ Reference: Directory Structure - Poky consists of several components and understanding what these are - and where they're located is one of the keys to using it. This section walks - through the Poky directory structure giving information about the various + Poky consists of several components. + Understanding them and knowing where they are located is key to using Poky well. + This appendix describes the Poky directory structure and gives information about the various files and directories. @@ -19,17 +19,20 @@ <filename class="directory">bitbake/</filename> - A copy of BitBake is included within Poky for ease of use, and should - usually match the current BitBake stable release from the BitBake project. - Bitbake, a metadata interpreter, reads the Poky metadata and runs the tasks - defined in the Poky metadata. Failures are usually from the metadata, not - BitBake itself, so most users don't need to worry about BitBake. The - bitbake/bin/ directory is placed - into the PATH environment variable by the poky-init-build-env script. + Poky includes a copy of BitBake for ease of use. + The copy usually matches the current stable BitBake release from the BitBake project. + BitBake, a metadata interpreter, reads the Poky metadata and runs the tasks + defined by that data. + Failures are usually from the metadata and not + from BitBake itself. + Consequently, most users do not need to worry about BitBake. + The bitbake/bin/ directory is placed + into the PATH environment variable by the + poky-init-build-env script. + - For more information on BitBake please see the BitBake project site at + For more information on BitBake, see the BitBake project site at and the BitBake on-line manual at . @@ -41,9 +44,11 @@ This directory contains user configuration files and the output generated by Poky in its standard configuration where the source tree is - combined with the output. It is also possible to place output and configuration - files in a directory separate from the Poky source, see the section seperate output directory. + combined with the output. + It is also possible to place output and configuration + files in a directory separate from the Poky source. + For information on separating output from the Poky source, see poky-init-build-env. @@ -51,8 +56,8 @@ <filename class="directory">meta/</filename> - This directory contains the core metadata, a key part of Poky. Within this - directory there are definitions of the machines, the Poky distribution + This directory contains the core metadata, which is a key part of Poky. + This directory contains the machine definitions, the Poky distribution, and the packages that make up a given system. @@ -61,9 +66,9 @@ <filename class="directory">meta-extras/</filename> - This directory is similar to meta/, - and contains some extra metadata not included in standard Poky. These are - disabled by default, and are not supported as part of Poky. + This directory is similar to meta/. + The directory contains extra metadata not included in standard Poky. + This metadata is disabled by default and is not supported as part of Poky. @@ -71,8 +76,8 @@ <filename class="directory">meta-***/</filename> - These directories are optional layers to be added to core metadata, which - are enabled by adding them to conf/bblayers.conf. + These directories are optional layers that are added to core metadata. + The layers are enabled by adding them to the conf/bblayers.conf file. @@ -80,10 +85,10 @@ <filename class="directory">scripts/</filename> - This directory contains various integration scripts which implement - extra functionality in the Poky environment, such as the QEMU - scripts. This directory is appended to the PATH environment variable by the - poky-init-build-env script. + This directory contains various integration scripts that implement + extra functionality in the Poky environment (e.g. QEMU scripts). + The poky-init-build-env script appends this + directory to the PATH environment variable. @@ -91,40 +96,42 @@ <filename class="directory">sources/</filename> - While not part of a checkout, Poky will create this directory as - part of any build. Any downloads are placed in this directory (as - specified by the DL_DIR - variable). This directory can be shared between Poky - builds to save downloading files multiple times. SCM checkouts are - also stored here as e.g. sources/svn/ - , sources/cvs/ or - sources/git/ and the - sources directory may contain archives of checkouts for various - revisions or dates. + This directory receives downloads as specified by the + DL_DIR variable. + Even though the directory is not part of a checkout, Poky creates it during a build. + You can use this directory to share downloading files between Poky builds. + This practice can save you from downloading files multiple times. + + You can override the location for this directory by setting + the DL_DIR variable in local.conf. + - - It's worth noting that BitBake creates .md5 - stamp files for downloads. It uses these to mark downloads as - complete as well as for checksum and access accounting purposes. If you add - a file manually to the directory, you need to touch the corresponding - .md5 file too. + + This directory also contains SCM checkouts (e.g. sources/svn/ + , sources/cvs/ or + sources/git/). + The sources directory can contain archives of + checkouts for various revisions or dates. - This location can be overridden by setting DL_DIR in local.conf - . This directory can be shared between builds and even between - machines via NFS, so downloads are only made once, speeding up builds. + It's worth noting that BitBake creates .md5 + stamp files for downloads. + BitBake uses these files to mark downloads as + complete as well as for checksum and access accounting purposes. + If you manually add a file to the directory, you need to touch the corresponding + .md5 file as well. -
<filename class="directory">documentation</filename> - This is the location for documentaiton about poky including this handbook. + This directory holds the source for the documentation. Each manual is contained in + a sub-folder. For example, the files for this manual reside in + poky-ref-manual.
@@ -132,46 +139,50 @@ <filename>poky-init-build-env</filename> - This script is used to setup the Poky build environment. Sourcing this file in + This script sets up the Poky build environment. + Sourcing this file in a shell makes changes to PATH and sets other core BitBake variables based on the - current working directory. You need to use this before running Poky commands. - Internally it uses scripts within the scripts/ - directory to do the bulk of the work. This script supports - specifying any directory as the build output: + current working directory. + You need to run this script before running Poky commands. + The script uses other scripts within the scripts/ + directory to do the bulk of the work. + You can use this script to specify any directory for the build's output by doing the following: - -source POKY_SRC/poky-init-build-env [BUILDDIR] - + + $ source POKY_SRC/poky-init-build-env [BUILDDIR] + - The above command can be typed from any directory, as long as POKY_SRC points to - the desired Poky source tree. The optional BUILDDIR could be any directory you'd - like Poky to generate the build output into. + You can enter the above command from any directory, as long as POKY_SRC points to + the desired Poky source tree. + The optional BUILDDIR can be any directory into which you would + like Poky to generate the build output.
- <filename class="directory">build/</filename> - The Build Directory + The Build Directory - <filename class="directory">build/</filename>
<filename>build/conf/local.conf</filename> - This file contains all the local user configuration of Poky. If there - is no local.conf present, it is created from - local.conf.sample. The local.conf - file contains documentation on the various configuration options. Any - variable set here overrides any variable set elsewhere within Poky unless - that variable is hardcoded within Poky (e.g. by using '=' instead of '?='). - Some variables are hardcoded for various reasons but these variables are + This file contains all the local user configuration of Poky. + If there is no local.conf present, it is created from + local.conf.sample. + The local.conf file contains documentation on the various configuration options. + Any variable set here overrides any variable set elsewhere within Poky unless + that variable is hard-coded within Poky (e.g. by using '=' instead of '?='). + Some variables are hard-coded for various reasons but these variables are relatively rare. - Edit this file to set the MACHINE for which you want to build, which package types you - wish to use (PACKAGE_CLASSES) or where downloaded files should go + Edit this file to set the MACHINE + for which you want to build, which package types you + wish to use (PACKAGE_CLASSES) or where you want to downloaded files (DL_DIR).
@@ -180,9 +191,10 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename>build/conf/bblayers.conf</filename> - This file defines layers walked by bitbake. If there's no - bblayers.conf present, it is created from bblayers.conf.sample - when the environment setup script is sourced. + This file defines layers, which is a directory tree, traversed (or walked) by BitBake. + If bblayers.conf + is not present, it is created from bblayers.conf.sample when the environment + setup script is sourced.
@@ -190,10 +202,12 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">build/tmp/</filename> - This is created by BitBake if it doesn't exist and is where all the Poky output - is placed. To clean Poky and start a build from scratch (other than downloads), - you can wipe this directory. The tmp/ - directory has some important sub-components detailed below. + This directory receives all the Poky output. + BitBake creates this directory if it does not exist. + To clean Poky and start a build from scratch (other than downloads), + you can remove everything in this directory or get rid of the directory completely. + The tmp/ directory has some important + sub-components detailed below. @@ -201,24 +215,24 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">build/tmp/cache/</filename> - When BitBake parses the metadata it creates a cache file of the result which can - be used when subsequently running commands. These are stored here on - a per machine basis. + When BitBake parses the metadata it creates a cache file of the result that can + be used when subsequently running commands. + These results are stored here on a per-machine basis.
<filename class="directory">build/tmp/deploy/</filename> - Any 'end result' output from Poky is placed under here. + This directory contains any 'end result' output from Poky.
<filename class="directory">build/tmp/deploy/deb/</filename> - Any .deb packages emitted by Poky are placed here, sorted into feeds for - different architecture types. + This directory receives any .deb packages produced by Poky. + The packages are sorted into feeds for different architecture types.
@@ -226,8 +240,8 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">build/tmp/deploy/rpm/</filename> - Any .rpm packages emitted by Poky are placed here, sorted into feeds for - different architecture types. + This directory receives any .rpm packages produced by Poky. + The packages re sorted into feeds for different architecture types. @@ -235,24 +249,25 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">build/tmp/deploy/images/</filename> - Complete filesystem images are placed here. If you want to flash the resulting - image from a build onto a device, look here for them. + This directory receives complete filesystem images. + If you want to flash the resulting image from a build onto a device, look here for the image.
<filename class="directory">build/tmp/deploy/ipk/</filename> - Any resulting .ipk packages emitted by Poky are placed here. + This directory receives .ipk packages produced by Poky.
<filename class="directory">build/tmp/sysroots/</filename> - Any package needing to share output with other packages does so within sysroots. - This means it contains any shared header files and any shared libraries amongst - other data. It is subdivided by architecture so multiple builds can run within + This directory contains shared header files and libraries as well as other shared + data. + Packages that need to share output with other packages do so within this directory. + The directory is subdivided by architecture so multiple builds can run within the one build directory.
@@ -261,9 +276,11 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">build/tmp/stamps/</filename> - This is used by BitBake for accounting purposes to keep track of which tasks - have been run and when. It is also subdivided by architecture. The files are - empty and the important information is the filenames and timestamps. + This directory holds information that that BitBake uses for accounting purposes + to track what tasks have run and when they have run. + The directory is sub-divided by architecture. + The files in the directory are empty of data. + However, BitBake uses the filenames and timestamps for tracking purposes. @@ -271,9 +288,9 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">build/tmp/log/</filename> - This contains some general logs if not placing in a package's - WORKDIR, such as - the log output from check_pkg or distro_check tasks. + This directory contains general logs that are not otherwise placed using the + package's WORKDIR. + Examples of logs are the output from the "check_pkg" or "distro_check" tasks. @@ -281,9 +298,8 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">build/tmp/pkgdata/</filename> - This is an intermediate place for saving packaging data, which will be used - in later packaging process. For detail please refer to - package.bbclass. + This directory contains intermediate packaging data that is used later in the packaging process. + For more information, see package.bbclass. @@ -291,9 +307,9 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">build/tmp/pstagelogs/</filename> - This directory contains manifest for task based prebuilt. Each manifest is basically - a file list for installed files from a given task, which would be useful for later - packaging or cleanup process. + This directory contains manifest for task-based pre-built. + Each manifest is basically a file list for installed files from a given task. + Manifests are useful for later packaging or cleanup processes. @@ -301,62 +317,63 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">build/tmp/work/</filename> - This directory contains various subdirectories for each architecture, and each package built by BitBake has its own work directory under the appropriate architecture subdirectory. All tasks are executed from this work directory. As an example, the source for a particular package will be unpacked, patched, configured and compiled all within its own work directory. + This directory contains architecture-specific work sub-directories for packages built by BitBake. + All tasks execute from a work directory. + For example, the source for a particular package is unpacked, patched, configured and compiled all + within its own work directory. - It is worth considering the structure of a typical work directory. An - example is the linux-rp kernel, version 2.6.20 r7 on the machine spitz - built within Poky. For this package a work directory of tmp/work/spitz-poky-linux-gnueabi/linux-rp-2.6.20-r7/ - , referred to as WORKDIR - , is created. Within this directory, the source is - unpacked to linux-2.6.20 and then patched by quilt (see Section 3.5.1). + It is worth considering the structure of a typical work directory. + As an example consider the linux-rp kernel, version 2.6.20 r7 on the machine spitz + built within Poky. + For this package a work directory of + tmp/work/spitz-poky-linux-gnueabi/linux-rp-2.6.20-r7/, + referred to as WORKDIR, is created. + Within this directory, the source is unpacked to linux-2.6.20 and then patched by quilt + (see Section 3.5.1). Within the linux-2.6.20 directory, - standard Quilt directories linux-2.6.20/patches + standard quilt directories linux-2.6.20/patches and linux-2.6.20/.pc are created, and standard quilt commands can be used. - There are other directories generated within WORKDIR. The most important - is WORKDIR/temp/ which has log files for each - task (log.do_*.pid) and the scripts BitBake runs for - each task (run.do_*.pid). The WORKDIR/image/ directory is where make - install places its output which is then split into subpackages - within WORKDIR - /packages-split/. + There are other directories generated within 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 + install" places its output that is then split into sub-packages + within WORKDIR/packages-split/.
- <filename class="directory">meta/</filename> - The Metadata + The Metadata - <filename class="directory">meta/</filename> - As mentioned previously, this is the core of Poky. It has several - important subdivisions: + As mentioned previously, metadata is the core of Poky. + Metadata has several important subdivisions:
<filename class="directory">meta/classes/</filename> - Contains the *.bbclass files. Class - files are used to abstract common code allowing it to be reused by multiple - packages. The base.bbclass file is inherited by every - package. Examples of other important classes are - autotools.bbclass that in theory allows any - Autotool-enabled package to work with Poky with minimal effort, or - kernel.bbclass that contains common code and functions - for working with the linux kernel. Functions like image generation or - packaging also have their specific class files (image.bbclass - , rootfs_*.bbclass and - package*.bbclass). + This directory contains the *.bbclass files. + Class files are used to abstract common code so it can be reused by multiple + packages. + Every package inherits the base.bbclass file. + Examples of other important classes are autotools.bbclass, which + in theory allows any Autotool-enabled package to work with Poky with minimal effort. + Another example is kernel.bbclass that contains common code and functions + for working with the Linux kernel. + Functions like image generation or packaging also have their specific class files + such as image.bbclass, rootfs_*.bbclass and + package*.bbclass.
@@ -364,13 +381,14 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/conf/</filename> - This is the core set of configuration files which start from + This directory contains the core set of configuration files that start from bitbake.conf and from which all other configuration - files are included (see the includes at the end of the file, even - local.conf is loaded from there!). While - bitbake.conf sets up the defaults, these can often be - overridden by user (local.conf), machine or - distribution configuration files. + files are included. + See the includes at the end of the file and you will note that even + local.conf is loaded from there! + While bitbake.conf sets up the defaults, you can often override + these by using the (local.conf) file, machine file or + the distribution configuration file.
@@ -378,10 +396,11 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/conf/machine/</filename> - Contains all the machine configuration files. If you set MACHINE="spitz", the - end result is Poky looking for a spitz.conf file in this directory. The includes - directory contains various data common to multiple machines. If you want to add - support for a new machine to Poky, this is the directory to look in. + This directory contains all the machine configuration files. + If you set MACHINE="spitz", Poky looks for a spitz.conf file in this + directory. + The includes directory contains various data common to multiple machines. + If you want to add support for a new machine to Poky, look in this directory. @@ -389,12 +408,12 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/conf/distro/</filename> - Any distribution specific configuration is controlled from here. OpenEmbedded - supports multiple distributions of which Poky is one. Poky only contains the - Poky distribution so poky.conf is the main file here. This includes the - versions and SRCDATES for applications which are configured here. An example of - an alternative configuration is poky-bleeding.conf although this mainly inherits - its configuration from Poky itself. + Any distribution-specific configuration is controlled from this directory. + Poky only contains the Poky distribution so poky.conf + is the main file here. + This directory includes the versions and SRCDATES for applications that are configured here. + An example of an alternative configuration is poky-bleeding.conf + although this file mainly inherits its configuration from Poky itself. @@ -402,8 +421,8 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/recipes-bsp/</filename> - Anything linking to specific hardware or hardware configuration information - are placed here, such as uboot, grub, etc. + This directory contains anything linking to specific hardware or hardware configuration information + such as "uboot" and "grub". @@ -411,7 +430,7 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/recipes-connectivity/</filename> - Libraries and applications related to communication with other devices + This directory contains libraries and applications related to communication with other devices. @@ -419,7 +438,8 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/recipes-core/</filename> - What's needed to build a basic working Linux image including commonly used dependencies + This directory contains what is needed to build a basic working Linux image + including commonly used dependencies. @@ -427,7 +447,8 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/recipes-devtools/</filename> - Tools primarily used by the build system (but can also be used on targets) + This directory contains tools that are primarily used by the build system. + The tools, however, can also be used on targets. @@ -435,8 +456,10 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/recipes-extended/</filename> - Applications which whilst not essential add features compared to the alternatives in - core. May be needed for full tool functionality or LSB compliance. + This directory contains non-essential applications that add features compared to the + alternatives in core. + You might need this directory for full tool functionality or for Linux Standard Base (LSB) + compliance. @@ -444,7 +467,7 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/recipes-gnome/</filename> - All things related to the GTK+ application framework + This directory contains all things related to the GTK+ application framework. @@ -452,7 +475,7 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/recipes-graphics/</filename> - X and other graphically related system libraries + This directory contains X and other graphically related system libraries @@ -460,7 +483,8 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/recipes-kernel/</filename> - The kernel and generic applications/libraries with strong kernel dependencies + This directory contains the kernel and generic applications and libraries that + have strong kernel dependencies. @@ -468,7 +492,7 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/recipes-multimedia/</filename> - Codecs and support utilties for audio, images and video + This directory contains codecs and support utilities for audio, images and video. @@ -476,7 +500,7 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/recipes-qt/</filename> - All things related to the QT application framework + This directory contains all things related to the QT application framework. @@ -484,7 +508,8 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/recipes-sato/</filename> - The Sato demo/reference UI/UX, its associated apps and configuration + This directory contains the Sato demo/reference UI/UX and its associated applications + and configuration data. @@ -492,9 +517,10 @@ source POKY_SRC/poky-init-build-env [BUILDDIR] <filename class="directory">meta/site/</filename> - Certain autoconf test results cannot be determined when cross compiling since it - can't run tests on a live system. This directory therefore contains a list of - cached results for various architectures which is passed to autoconf. + This directory contains a list of cached results for various architectures. + Because certain "autoconf" test results cannot be determined when cross-compiling due to + the tests not able to run on a live system, the information in this directory is + passed to "autoconf" for the various architectures. -- cgit v1.2.3