Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" |
| 2 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" |
| 3 | [<!ENTITY % poky SYSTEM "../poky.ent"> %poky; ] > |
| 4 | |
| 5 | <chapter id='ref-varlocality'> |
| 6 | <title>Variable Context</title> |
| 7 | |
| 8 | <para> |
| 9 | While you can use most variables in almost any context such as |
| 10 | <filename>.conf</filename>, <filename>.bbclass</filename>, |
| 11 | <filename>.inc</filename>, and <filename>.bb</filename> files, |
| 12 | some variables are often associated with a particular locality or context. |
| 13 | This chapter describes some common associations. |
| 14 | </para> |
| 15 | |
| 16 | <section id='ref-varlocality-configuration'> |
| 17 | <title>Configuration</title> |
| 18 | |
| 19 | <para> |
| 20 | The following subsections provide lists of variables whose context is |
| 21 | configuration: distribution, machine, and local. |
| 22 | </para> |
| 23 | |
| 24 | <section id='ref-varlocality-config-distro'> |
| 25 | <title>Distribution (Distro)</title> |
| 26 | |
| 27 | <para> |
| 28 | This section lists variables whose configuration context is the |
| 29 | distribution, or distro. |
| 30 | <itemizedlist> |
| 31 | <listitem><para><filename><link linkend='var-DISTRO'>DISTRO</link></filename></para></listitem> |
| 32 | <listitem><para><filename><link linkend='var-DISTRO_NAME'>DISTRO_NAME</link></filename> |
| 33 | </para></listitem> |
| 34 | <listitem><para><filename><link linkend='var-DISTRO_VERSION'>DISTRO_VERSION</link> |
| 35 | </filename></para></listitem> |
| 36 | <listitem><para><filename><link linkend='var-MAINTAINER'>MAINTAINER</link></filename> |
| 37 | </para></listitem> |
| 38 | <listitem><para><filename><link linkend='var-PACKAGE_CLASSES'>PACKAGE_CLASSES</link> |
| 39 | </filename></para></listitem> |
| 40 | <listitem><para><filename><link linkend='var-TARGET_OS'>TARGET_OS</link></filename> |
| 41 | </para></listitem> |
| 42 | <listitem><para><filename><link linkend='var-TARGET_FPU'>TARGET_FPU</link></filename> |
| 43 | </para></listitem> |
| 44 | <listitem><para><filename><link linkend='var-TCMODE'>TCMODE</link></filename> |
| 45 | </para></listitem> |
| 46 | <listitem><para><filename><link linkend='var-TCLIBC'>TCLIBC</link></filename> |
| 47 | </para></listitem> |
| 48 | </itemizedlist> |
| 49 | </para> |
| 50 | </section> |
| 51 | |
| 52 | <section id='ref-varlocality-config-machine'> |
| 53 | <title>Machine</title> |
| 54 | |
| 55 | <para> |
| 56 | This section lists variables whose configuration context is the |
| 57 | machine. |
| 58 | <itemizedlist> |
| 59 | <listitem><para><filename><link linkend='var-TARGET_ARCH'>TARGET_ARCH</link></filename> |
| 60 | </para></listitem> |
| 61 | <listitem><para><filename><link linkend='var-SERIAL_CONSOLES'>SERIAL_CONSOLES</link> |
| 62 | </filename></para></listitem> |
| 63 | <listitem><para><filename><link linkend='var-PACKAGE_EXTRA_ARCHS'>PACKAGE_EXTRA_ARCHS</link> |
| 64 | </filename></para></listitem> |
| 65 | <listitem><para><filename><link linkend='var-IMAGE_FSTYPES'>IMAGE_FSTYPES</link> |
| 66 | </filename></para></listitem> |
| 67 | <listitem><para><filename><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link> |
| 68 | </filename></para></listitem> |
| 69 | <listitem><para><filename><link linkend='var-MACHINE_EXTRA_RDEPENDS'>MACHINE_EXTRA_RDEPENDS |
| 70 | </link></filename></para></listitem> |
| 71 | <listitem><para><filename><link linkend='var-MACHINE_EXTRA_RRECOMMENDS'>MACHINE_EXTRA_RRECOMMENDS |
| 72 | </link></filename></para></listitem> |
| 73 | <listitem><para><filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'>MACHINE_ESSENTIAL_EXTRA_RDEPENDS |
| 74 | </link></filename></para></listitem> |
| 75 | <listitem><para><filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'> |
| 76 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</link></filename></para></listitem> |
| 77 | </itemizedlist> |
| 78 | </para> |
| 79 | </section> |
| 80 | |
| 81 | <section id='ref-varlocality-config-local'> |
| 82 | <title>Local</title> |
| 83 | |
| 84 | <para> |
| 85 | This section lists variables whose configuration context is the |
| 86 | local configuration through the <filename>local.conf</filename> |
| 87 | file. |
| 88 | <itemizedlist> |
| 89 | <listitem><para><filename><link linkend='var-DISTRO'>DISTRO</link></filename> |
| 90 | </para></listitem> |
| 91 | <listitem><para><filename><link linkend='var-MACHINE'>MACHINE</link></filename> |
| 92 | </para></listitem> |
| 93 | <listitem><para><filename><link linkend='var-DL_DIR'>DL_DIR</link></filename> |
| 94 | </para></listitem> |
| 95 | <listitem><para><filename><link linkend='var-BBFILES'>BBFILES</link></filename> |
| 96 | </para></listitem> |
| 97 | <listitem><para><filename><link linkend='var-EXTRA_IMAGE_FEATURES'>EXTRA_IMAGE_FEATURES |
| 98 | </link></filename></para></listitem> |
| 99 | <listitem><para><filename><link linkend='var-PACKAGE_CLASSES'>PACKAGE_CLASSES</link> |
| 100 | </filename></para></listitem> |
| 101 | <listitem><para><filename><link linkend='var-BB_NUMBER_THREADS'>BB_NUMBER_THREADS</link> |
| 102 | </filename></para></listitem> |
| 103 | <listitem><para><filename><link linkend='var-BBINCLUDELOGS'>BBINCLUDELOGS</link> |
| 104 | </filename></para></listitem> |
| 105 | <listitem><para><filename><link linkend='var-ENABLE_BINARY_LOCALE_GENERATION'> |
| 106 | ENABLE_BINARY_LOCALE_GENERATION</link></filename></para></listitem> |
| 107 | </itemizedlist> |
| 108 | </para> |
| 109 | </section> |
| 110 | </section> |
| 111 | |
| 112 | <section id='ref-varlocality-recipes'> |
| 113 | <title>Recipes</title> |
| 114 | |
| 115 | <para> |
| 116 | The following subsections provide lists of variables whose context is |
| 117 | recipes: required, dependencies, path, and extra build information. |
| 118 | </para> |
| 119 | |
| 120 | <section id='ref-varlocality-recipe-required'> |
| 121 | <title>Required</title> |
| 122 | |
| 123 | <para> |
| 124 | This section lists variables that are required for recipes. |
| 125 | <itemizedlist> |
| 126 | <listitem><para><filename><link linkend='var-LICENSE'>LICENSE</link> |
| 127 | </filename></para></listitem> |
| 128 | <listitem><para><filename><link linkend='var-LIC_FILES_CHKSUM'>LIC_FILES_CHKSUM</link> |
| 129 | </filename></para></listitem> |
| 130 | <listitem><para><filename><link linkend='var-SRC_URI'>SRC_URI</link></filename> - used |
| 131 | in recipes that fetch local or remote files. |
| 132 | </para></listitem> |
| 133 | </itemizedlist> |
| 134 | </para> |
| 135 | </section> |
| 136 | |
| 137 | <section id='ref-varlocality-recipe-dependencies'> |
| 138 | <title>Dependencies</title> |
| 139 | |
| 140 | <para> |
| 141 | This section lists variables that define recipe dependencies. |
| 142 | <itemizedlist> |
| 143 | <listitem><para><filename><link linkend='var-DEPENDS'>DEPENDS</link> |
| 144 | </filename></para></listitem> |
| 145 | <listitem><para><filename><link linkend='var-RDEPENDS'>RDEPENDS</link> |
| 146 | </filename></para></listitem> |
| 147 | <listitem><para><filename><link linkend='var-RRECOMMENDS'>RRECOMMENDS</link> |
| 148 | </filename></para></listitem> |
| 149 | <listitem><para><filename><link linkend='var-RCONFLICTS'>RCONFLICTS</link> |
| 150 | </filename></para></listitem> |
| 151 | <listitem><para><filename><link linkend='var-RREPLACES'>RREPLACES</link> |
| 152 | </filename></para></listitem> |
| 153 | </itemizedlist> |
| 154 | </para> |
| 155 | </section> |
| 156 | |
| 157 | <section id='ref-varlocality-recipe-paths'> |
| 158 | <title>Paths</title> |
| 159 | |
| 160 | <para> |
| 161 | This section lists variables that define recipe paths. |
| 162 | <itemizedlist> |
| 163 | <listitem><para><filename><link linkend='var-WORKDIR'>WORKDIR</link> |
| 164 | </filename></para></listitem> |
| 165 | <listitem><para><filename><link linkend='var-S'>S</link> |
| 166 | </filename></para></listitem> |
| 167 | <listitem><para><filename><link linkend='var-FILES'>FILES</link> |
| 168 | </filename></para></listitem> |
| 169 | </itemizedlist> |
| 170 | </para> |
| 171 | </section> |
| 172 | |
| 173 | <section id='ref-varlocality-recipe-build'> |
| 174 | <title>Extra Build Information</title> |
| 175 | |
| 176 | <para> |
| 177 | This section lists variables that define extra build information for recipes. |
| 178 | <itemizedlist> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 179 | <listitem><para><filename><link linkend='var-DEFAULT_PREFERENCE'>DEFAULT_PREFERENCE |
| 180 | </link></filename></para></listitem> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 181 | <listitem><para><filename><link linkend='var-EXTRA_OECMAKE'>EXTRA_OECMAKE</link> |
| 182 | </filename></para></listitem> |
| 183 | <listitem><para><filename><link linkend='var-EXTRA_OECONF'>EXTRA_OECONF</link> |
| 184 | </filename></para></listitem> |
| 185 | <listitem><para><filename><link linkend='var-EXTRA_OEMAKE'>EXTRA_OEMAKE</link> |
| 186 | </filename></para></listitem> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 187 | <listitem><para><filename><link linkend='var-PACKAGECONFIG_CONFARGS'>PACKAGECONFIG_CONFARGS</link> |
| 188 | </filename></para></listitem> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 189 | <listitem><para><filename><link linkend='var-PACKAGES'>PACKAGES</link></filename> |
| 190 | </para></listitem> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 191 | </itemizedlist> |
| 192 | </para> |
| 193 | </section> |
| 194 | </section> |
| 195 | </chapter> |
| 196 | <!-- |
| 197 | vim: expandtab tw=80 ts=4 spell spelllang=en_gb |
| 198 | --> |