summaryrefslogtreecommitdiffstats
path: root/documentation/poky-ref-manual/ref-varlocality.xml
blob: ae8f75c2f59f6de242155b17218c1bc75a00da9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
[<!ENTITY % poky SYSTEM "../poky.ent"> %poky; ] >

<chapter id='ref-varlocality'>
    <title>Variable Context</title>

    <para>
        While most variables can be used in almost any context such as
        <filename>.conf</filename>, <filename>.bbclass</filename>,
        <filename>.inc</filename>, and <filename>.bb</filename> files,
        some variables are often associated with a particular locality or context.
        This chapter describes some common associations.
    </para>

    <section id='ref-varlocality-configuration'>
        <title>Configuration</title>

        <para>
            The following subsections provide lists of variables whose context is
            configuration: distribution, machine, and local.
        </para>

        <section id='ref-varlocality-config-distro'>
            <title>Distribution (Distro)</title>

            <para>
               This section lists variables whose context is the distribution, or distro.
               <itemizedlist>
                   <listitem><para><filename><link linkend='var-DISTRO'>DISTRO</link></filename></para></listitem>
                   <listitem><para><filename><link linkend='var-DISTRO_NAME'>DISTRO_NAME</link></filename>
                       </para></listitem>
                   <listitem><para><filename><link linkend='var-DISTRO_VERSION'>DISTRO_VERSION</link>
                       </filename></para></listitem>
                   <listitem><para><filename><link linkend='var-MAINTAINER'>MAINTAINER</link></filename>
                       </para></listitem>
                   <listitem><para><filename><link linkend='var-PACKAGE_CLASSES'>PACKAGE_CLASSES</link>
                       </filename></para></listitem>
                   <listitem><para><filename><link linkend='var-TARGET_OS'>TARGET_OS</link></filename>
                       </para></listitem>
                   <listitem><para><filename><link linkend='var-TARGET_FPU'>TARGET_FPU</link></filename>
                       </para></listitem>
                   <listitem><para><filename><link linkend='var-TCMODE'>TCMODE</link></filename>
                       </para></listitem>
                   <listitem><para><filename><link linkend='var-TCLIBC'>TCLIBC</link></filename>
                       </para></listitem>
                </itemizedlist>
            </para>
        </section>

        <section id='ref-varlocality-config-machine'>
            <title>Machine</title>

            <para>
                This section lists variables whose context is the machine.
                <itemizedlist>
                    <listitem><para><filename><link linkend='var-TARGET_ARCH'>TARGET_ARCH</link></filename>
                        </para></listitem>
                    <listitem><para><filename><link linkend='var-SERIAL_CONSOLE'>SERIAL_CONSOLE</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-PACKAGE_EXTRA_ARCHS'>PACKAGE_EXTRA_ARCHS</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-IMAGE_FSTYPES'>IMAGE_FSTYPES</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-MACHINE_EXTRA_RDEPENDS'>MACHINE_EXTRA_RDEPENDS
                        </link></filename></para></listitem>
                    <listitem><para><filename><link linkend='var-MACHINE_EXTRA_RRECOMMENDS'>MACHINE_EXTRA_RRECOMMENDS
                        </link></filename></para></listitem>
                    <listitem><para><filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'>MACHINE_ESSENTIAL_EXTRA_RDEPENDS
                        </link></filename></para></listitem>
                    <listitem><para><filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'>
                        MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</link></filename></para></listitem>
                </itemizedlist>
            </para>
        </section>

        <section id='ref-varlocality-config-local'>
            <title>Local</title>

            <para>
                This section lists variables whose context is the local configuration through the
                <filename>local.conf</filename> file.
                <itemizedlist>
                    <listitem><para><filename><link linkend='var-DISTRO'>DISTRO</link></filename>
                        </para></listitem>
                    <listitem><para><filename><link linkend='var-MACHINE'>MACHINE</link></filename>
                        </para></listitem>
                    <listitem><para><filename><link linkend='var-DL_DIR'>DL_DIR</link></filename>
                        </para></listitem>
                    <listitem><para><filename><link linkend='var-BBFILES'>BBFILES</link></filename>
                        </para></listitem>
                    <listitem><para><filename><link linkend='var-EXTRA_IMAGE_FEATURES'>EXTRA_IMAGE_FEATURES
                        </link></filename></para></listitem>
                    <listitem><para><filename><link linkend='var-PACKAGE_CLASSES'>PACKAGE_CLASSES</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-BB_NUMBER_THREADS'>BB_NUMBER_THREADS</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-BBINCLUDELOGS'>BBINCLUDELOGS</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-ENABLE_BINARY_LOCALE_GENERATION'>
                        ENABLE_BINARY_LOCALE_GENERATION</link></filename></para></listitem>
                </itemizedlist>
            </para>
        </section>
    </section>

    <section id='ref-varlocality-recipes'>
        <title>Recipes</title>

        <para>
            The following subsections provide lists of variables whose context is
            recipes: required, dependencies, path, and extra build information.
        </para>

        <section id='ref-varlocality-recipe-required'>
            <title>Required</title>

            <para>
                This section lists variables that are required for recipes.
                <itemizedlist>
                    <listitem><para><filename><link linkend='var-LICENSE'>LICENSE</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-LIC_FILES_CHKSUM'>LIC_FILES_CHKSUM</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-SRC_URI'>SRC_URI</link></filename> - used
                        in recipes that fetch local or remote files.
                        </para></listitem>
                </itemizedlist>
            </para>
        </section>

        <section id='ref-varlocality-recipe-dependencies'>
            <title>Dependencies</title>

            <para>
                This section lists variables that define recipe dependencies.
                <itemizedlist>
                    <listitem><para><filename><link linkend='var-DEPENDS'>DEPENDS</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-RDEPENDS'>RDEPENDS</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-RRECOMMENDS'>RRECOMMENDS</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-RCONFLICTS'>RCONFLICTS</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-RREPLACES'>RREPLACES</link>
                        </filename></para></listitem>
                </itemizedlist>
            </para>
        </section>

        <section id='ref-varlocality-recipe-paths'>
            <title>Paths</title>

            <para>
                This section lists variables that define recipe paths.
                <itemizedlist>
                    <listitem><para><filename><link linkend='var-WORKDIR'>WORKDIR</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-S'>S</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-FILES'>FILES</link>
                        </filename></para></listitem>
                </itemizedlist>
            </para>
        </section>

        <section id='ref-varlocality-recipe-build'>
            <title>Extra Build Information</title>

            <para>
                This section lists variables that define extra build information for recipes.
                <itemizedlist>
                    <listitem><para><filename><link linkend='var-EXTRA_OECMAKE'>EXTRA_OECMAKE</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-EXTRA_OECONF'>EXTRA_OECONF</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-EXTRA_OEMAKE'>EXTRA_OEMAKE</link>
                        </filename></para></listitem>
                    <listitem><para><filename><link linkend='var-PACKAGES'>PACKAGES</link></filename>
                        </para></listitem>
                    <listitem><para><filename><link linkend='var-DEFAULT_PREFERENCE'>DEFAULT_PREFERENCE
                        </link></filename></para></listitem>
                </itemizedlist>
            </para>
        </section>
    </section>
</chapter>
<!--
vim: expandtab tw=80 ts=4 spell spelllang=en_gb
-->