blob: 05e1b95ec66497959c18b6a5b29e49bd42b6cced [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001<!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<!-- Dummy chapter -->
6<chapter id='ref-variables-glos'>
7
8<title>Variables Glossary</title>
9
10<para>
11 This chapter lists common variables used by BitBake and gives an overview
12 of their function and contents.
13</para>
14
15<note>
16 Following are some points regarding the variables listed in this glossary:
17 <itemizedlist>
18 <listitem><para>The variables listed in this glossary
19 are specific to BitBake.
20 Consequently, the descriptions are limited to that context.
21 </para></listitem>
22 <listitem><para>Also, variables exist in other systems that use BitBake
23 (e.g. The Yocto Project and OpenEmbedded) that have names identical
24 to those found in this glossary.
25 For such cases, the variables in those systems extend the
26 functionality of the variable as it is described here in
27 this glossary.
28 </para></listitem>
29 <listitem><para>Finally, there are variables mentioned in this
30 glossary that do not appear in the BitBake glossary.
31 These other variables are variables used in systems that use
32 BitBake.
33 </para></listitem>
34 </itemizedlist>
35</note>
36
37<glossary id='ref-variables-glossary'>
38
39 <para>
40 <link linkend='var-ASSUME_PROVIDED'>A</link>
41 <link linkend='var-B'>B</link>
42 <link linkend='var-CACHE'>C</link>
43 <link linkend='var-DEFAULT_PREFERENCE'>D</link>
44 <link linkend='var-EXCLUDE_FROM_WORLD'>E</link>
45 <link linkend='var-FAKEROOT'>F</link>
46 <link linkend='var-GITDIR'>G</link>
47 <link linkend='var-HGDIR'>H</link>
48<!-- <link linkend='var-ICECC_DISABLED'>I</link> -->
49<!-- <link linkend='var-glossary-j'>J</link> -->
50<!-- <link linkend='var-KARCH'>K</link> -->
51 <link linkend='var-LAYERDEPENDS'>L</link>
52 <link linkend='var-MIRRORS'>M</link>
53<!-- <link linkend='var-glossary-n'>N</link> -->
54 <link linkend='var-OVERRIDES'>O</link>
55 <link linkend='var-PACKAGES'>P</link>
56<!-- <link linkend='var-QMAKE_PROFILES'>Q</link> -->
57 <link linkend='var-RDEPENDS'>R</link>
58 <link linkend='var-SECTION'>S</link>
59 <link linkend='var-T'>T</link>
60<!-- <link linkend='var-UBOOT_CONFIG'>U</link> -->
61<!-- <link linkend='var-glossary-v'>V</link> -->
62<!-- <link linkend='var-WARN_QA'>W</link> -->
63<!-- <link linkend='var-glossary-x'>X</link> -->
64<!-- <link linkend='var-glossary-y'>Y</link> -->
65<!-- <link linkend='var-glossary-z'>Z</link>-->
66 </para>
67
68 <glossdiv id='var-glossary-a'><title>A</title>
69
70 <glossentry id='var-ASSUME_PROVIDED'><glossterm>ASSUME_PROVIDED</glossterm>
71 <glossdef>
72 <para>
73 Lists recipe names
74 (<link linkend='var-PN'><filename>PN</filename></link>
75 values) BitBake does not attempt to build.
76 Instead, BitBake assumes these recipes have already been
77 built.
78 </para>
79
80 <para>
81 In OpenEmbedded Core, <filename>ASSUME_PROVIDED</filename>
82 mostly specifies native tools that should not be built.
83 An example is <filename>git-native</filename>, which
84 when specified allows for the Git binary from the host to
85 be used rather than building
86 <filename>git-native</filename>.
87 </para>
88 </glossdef>
89 </glossentry>
90
91 </glossdiv>
92
93
94 <glossdiv id='var-glossary-b'><title>B</title>
95
96 <glossentry id='var-B'><glossterm>B</glossterm>
97 <glossdef>
98 <para>
99 The directory in which BitBake executes functions
100 during a recipe's build process.
101 </para>
102 </glossdef>
103 </glossentry>
104
105 <glossentry id='var-BB_ALLOWED_NETWORKS'><glossterm>BB_ALLOWED_NETWORKS</glossterm>
106 <glossdef>
107 <para>
108 Specifies a space-delimited list of hosts that the fetcher
109 is allowed to use to obtain the required source code.
110 Following are considerations surrounding this variable:
111 <itemizedlist>
112 <listitem><para>
113 This host list is only used if
114 <link linkend='var-BB_NO_NETWORK'><filename>BB_NO_NETWORK</filename></link>
115 is either not set or set to "0".
116 </para></listitem>
117 <listitem><para>
118 Limited support for wildcard matching against the
119 beginning of host names exists.
120 For example, the following setting matches
121 <filename>git.gnu.org</filename>,
122 <filename>ftp.gnu.org</filename>, and
123 <filename>foo.git.gnu.org</filename>.
124 <literallayout class='monospaced'>
125 BB_ALLOWED_NETWORKS = "*.gnu.org"
126 </literallayout>
127 </para></listitem>
128 <listitem><para>
129 Mirrors not in the host list are skipped and
130 logged in debug.
131 </para></listitem>
132 <listitem><para>
133 Attempts to access networks not in the host list
134 cause a failure.
135 </para></listitem>
136 </itemizedlist>
137 Using <filename>BB_ALLOWED_NETWORKS</filename> in
138 conjunction with
139 <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
140 is very useful.
141 Adding the host you want to use to
142 <filename>PREMIRRORS</filename> results in the source code
143 being fetched from an allowed location and avoids raising
144 an error when a host that is not allowed is in a
145 <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
146 statement.
147 This is because the fetcher does not attempt to use the
148 host listed in <filename>SRC_URI</filename> after a
149 successful fetch from the
150 <filename>PREMIRRORS</filename> occurs.
151 </para>
152 </glossdef>
153 </glossentry>
154
155 <glossentry id='var-BB_CONSOLELOG'><glossterm>BB_CONSOLELOG</glossterm>
156 <glossdef>
157 <para>
158 Specifies the path to a log file into which BitBake's user
159 interface writes output during the build.
160 </para>
161 </glossdef>
162 </glossentry>
163
164 <glossentry id='var-BB_CURRENTTASK'><glossterm>BB_CURRENTTASK</glossterm>
165 <glossdef>
166 <para>
167 Contains the name of the currently running task.
168 The name does not include the
169 <filename>do_</filename> prefix.
170 </para>
171 </glossdef>
172 </glossentry>
173
174 <glossentry id='var-BB_DANGLINGAPPENDS_WARNONLY'><glossterm>BB_DANGLINGAPPENDS_WARNONLY</glossterm>
175 <glossdef>
176 <para>
177 Defines how BitBake handles situations where an append
178 file (<filename>.bbappend</filename>) has no
179 corresponding recipe file (<filename>.bb</filename>).
180 This condition often occurs when layers get out of sync
181 (e.g. <filename>oe-core</filename> bumps a
182 recipe version and the old recipe no longer exists and the
183 other layer has not been updated to the new version
184 of the recipe yet).
185 </para>
186
187 <para>
188 The default fatal behavior is safest because it is
189 the sane reaction given something is out of sync.
190 It is important to realize when your changes are no longer
191 being applied.
192 </para>
193 </glossdef>
194 </glossentry>
195
196 <glossentry id='var-BB_DEFAULT_TASK'><glossterm>BB_DEFAULT_TASK</glossterm>
197 <glossdef>
198 <para>
199 The default task to use when none is specified (e.g.
200 with the <filename>-c</filename> command line option).
201 The task name specified should not include the
202 <filename>do_</filename> prefix.
203 </para>
204 </glossdef>
205 </glossentry>
206
207 <glossentry id='var-BB_DISKMON_DIRS'><glossterm>BB_DISKMON_DIRS</glossterm>
208 <glossdef>
209 <para>
210 Monitors disk space and available inodes during the build
211 and allows you to control the build based on these
212 parameters.
213 </para>
214
215 <para>
216 Disk space monitoring is disabled by default.
217 When setting this variable, use the following form:
218 <literallayout class='monospaced'>
219 BB_DISKMON_DIRS = "&lt;action&gt;,&lt;dir&gt;,&lt;threshold&gt; [...]"
220
221 where:
222
223 &lt;action&gt; is:
224 ABORT: Immediately abort the build when
225 a threshold is broken.
226 STOPTASKS: Stop the build after the currently
227 executing tasks have finished when
228 a threshold is broken.
229 WARN: Issue a warning but continue the
230 build when a threshold is broken.
231 Subsequent warnings are issued as
232 defined by the
233 <link linkend='var-BB_DISKMON_WARNINTERVAL'>BB_DISKMON_WARNINTERVAL</link> variable,
234 which must be defined.
235
236 &lt;dir&gt; is:
237 Any directory you choose. You can specify one or
238 more directories to monitor by separating the
239 groupings with a space. If two directories are
240 on the same device, only the first directory
241 is monitored.
242
243 &lt;threshold&gt; is:
244 Either the minimum available disk space,
245 the minimum number of free inodes, or
246 both. You must specify at least one. To
247 omit one or the other, simply omit the value.
248 Specify the threshold using G, M, K for Gbytes,
249 Mbytes, and Kbytes, respectively. If you do
250 not specify G, M, or K, Kbytes is assumed by
251 default. Do not use GB, MB, or KB.
252 </literallayout>
253 </para>
254
255 <para>
256 Here are some examples:
257 <literallayout class='monospaced'>
258 BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
259 BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
260 BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
261 </literallayout>
262 The first example works only if you also set
263 the <link linkend='var-BB_DISKMON_WARNINTERVAL'><filename>BB_DISKMON_WARNINTERVAL</filename></link> variable.
264 This example causes the build system to immediately
265 abort when either the disk space in <filename>${TMPDIR}</filename> drops
266 below 1 Gbyte or the available free inodes drops below
267 100 Kbytes.
268 Because two directories are provided with the variable, the
269 build system also issues a
270 warning when the disk space in the
271 <filename>${SSTATE_DIR}</filename> directory drops
272 below 1 Gbyte or the number of free inodes drops
273 below 100 Kbytes.
274 Subsequent warnings are issued during intervals as
275 defined by the <filename>BB_DISKMON_WARNINTERVAL</filename>
276 variable.
277 </para>
278
279 <para>
280 The second example stops the build after all currently
281 executing tasks complete when the minimum disk space
282 in the <filename>${TMPDIR}</filename>
283 directory drops below 1 Gbyte.
284 No disk monitoring occurs for the free inodes in this case.
285 </para>
286
287 <para>
288 The final example immediately aborts the build when the
289 number of free inodes in the <filename>${TMPDIR}</filename> directory
290 drops below 100 Kbytes.
291 No disk space monitoring for the directory itself occurs
292 in this case.
293 </para>
294 </glossdef>
295 </glossentry>
296
297 <glossentry id='var-BB_DISKMON_WARNINTERVAL'><glossterm>BB_DISKMON_WARNINTERVAL</glossterm>
298 <glossdef>
299 <para>
300 Defines the disk space and free inode warning intervals.
301 </para>
302
303 <para>
304 If you are going to use the
305 <filename>BB_DISKMON_WARNINTERVAL</filename> variable, you must
306 also use the
307 <link linkend='var-BB_DISKMON_DIRS'><filename>BB_DISKMON_DIRS</filename></link> variable
308 and define its action as "WARN".
309 During the build, subsequent warnings are issued each time
310 disk space or number of free inodes further reduces by
311 the respective interval.
312 </para>
313
314 <para>
315 If you do not provide a <filename>BB_DISKMON_WARNINTERVAL</filename>
316 variable and you do use <filename>BB_DISKMON_DIRS</filename> with
317 the "WARN" action, the disk monitoring interval defaults to
318 the following:
319 <literallayout class='monospaced'>
320 BB_DISKMON_WARNINTERVAL = "50M,5K"
321 </literallayout>
322 </para>
323
324 <para>
325 When specifying the variable in your configuration file,
326 use the following form:
327 <literallayout class='monospaced'>
328 BB_DISKMON_WARNINTERVAL = "&lt;disk_space_interval&gt;,&lt;disk_inode_interval&gt;"
329
330 where:
331
332 &lt;disk_space_interval&gt; is:
333 An interval of memory expressed in either
334 G, M, or K for Gbytes, Mbytes, or Kbytes,
335 respectively. You cannot use GB, MB, or KB.
336
337 &lt;disk_inode_interval&gt; is:
338 An interval of free inodes expressed in either
339 G, M, or K for Gbytes, Mbytes, or Kbytes,
340 respectively. You cannot use GB, MB, or KB.
341 </literallayout>
342 </para>
343
344 <para>
345 Here is an example:
346 <literallayout class='monospaced'>
347 BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
348 BB_DISKMON_WARNINTERVAL = "50M,5K"
349 </literallayout>
350 These variables cause BitBake to
351 issue subsequent warnings each time the available
352 disk space further reduces by 50 Mbytes or the number
353 of free inodes further reduces by 5 Kbytes in the
354 <filename>${SSTATE_DIR}</filename> directory.
355 Subsequent warnings based on the interval occur each time
356 a respective interval is reached beyond the initial warning
357 (i.e. 1 Gbytes and 100 Kbytes).
358 </para>
359 </glossdef>
360 </glossentry>
361
362 <glossentry id='var-BB_ENV_WHITELIST'><glossterm>BB_ENV_WHITELIST</glossterm>
363 <glossdef>
364 <para>
365 Specifies the internal whitelist of variables to allow
366 through from the external environment into BitBake's
367 datastore.
368 If the value of this variable is not specified
369 (which is the default), the following list is used:
370 <link linkend='var-BBPATH'><filename>BBPATH</filename></link>,
371 <link linkend='var-BB_PRESERVE_ENV'><filename>BB_PRESERVE_ENV</filename></link>,
372 <link linkend='var-BB_ENV_WHITELIST'><filename>BB_ENV_WHITELIST</filename></link>,
373 and
374 <link linkend='var-BB_ENV_EXTRAWHITE'><filename>BB_ENV_EXTRAWHITE</filename></link>.
375 <note>
376 You must set this variable in the external environment
377 in order for it to work.
378 </note>
379 </para>
380 </glossdef>
381 </glossentry>
382
383 <glossentry id='var-BB_ENV_EXTRAWHITE'><glossterm>BB_ENV_EXTRAWHITE</glossterm>
384 <glossdef>
385 <para>
386 Specifies an additional set of variables to allow through
387 (whitelist) from the external environment into BitBake's
388 datastore.
389 This list of variables are on top of the internal list
390 set in
391 <link linkend='var-BB_ENV_WHITELIST'><filename>BB_ENV_WHITELIST</filename></link>.
392 <note>
393 You must set this variable in the external
394 environment in order for it to work.
395 </note>
396 </para>
397 </glossdef>
398 </glossentry>
399
400 <glossentry id='var-BB_FETCH_PREMIRRORONLY'><glossterm>BB_FETCH_PREMIRRORONLY</glossterm>
401 <glossdef>
402 <para>
403 When set to "1", causes BitBake's fetcher module to only
404 search
405 <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
406 for files.
407 BitBake will not search the main
408 <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
409 or
410 <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>.
411 </para>
412 </glossdef>
413 </glossentry>
414
415 <glossentry id='var-BB_FILENAME'><glossterm>BB_FILENAME</glossterm>
416 <glossdef>
417 <para>
418 Contains the filename of the recipe that owns the currently
419 running task.
420 For example, if the <filename>do_fetch</filename> task that
421 resides in the <filename>my-recipe.bb</filename> is
422 executing, the <filename>BB_FILENAME</filename> variable
423 contains "/foo/path/my-recipe.bb".
424 </para>
425 </glossdef>
426 </glossentry>
427
428 <glossentry id='var-BB_GENERATE_MIRROR_TARBALLS'><glossterm>BB_GENERATE_MIRROR_TARBALLS</glossterm>
429 <glossdef>
430 <para>
431 Causes tarballs of the Git repositories, including the
432 Git metadata, to be placed in the
433 <link linkend='var-DL_DIR'><filename>DL_DIR</filename></link>
434 directory.
435 Anyone wishing to create a source mirror would want to
436 enable this variable.
437 </para>
438
439 <para>
440 For performance reasons, creating and placing tarballs of
441 the Git repositories is not the default action by BitBake.
442 <literallayout class='monospaced'>
443 BB_GENERATE_MIRROR_TARBALLS = "1"
444 </literallayout>
445 </para>
446 </glossdef>
447 </glossentry>
448
449 <glossentry id='var-BB_HASHCONFIG_WHITELIST'><glossterm>BB_HASHCONFIG_WHITELIST</glossterm>
450 <glossdef>
451 <para>
452 Lists variables that are excluded from base configuration
453 checksum, which is used to determine if the cache can
454 be reused.
455 </para>
456
457 <para>
458 One of the ways BitBake determines whether to re-parse the
459 main metadata is through checksums of the variables in the
460 datastore of the base configuration data.
461 There are variables that you typically want to exclude when
462 checking whether or not to re-parse and thus rebuild the
463 cache.
464 As an example, you would usually exclude
465 <filename>TIME</filename> and <filename>DATE</filename>
466 because these variables are always changing.
467 If you did not exclude them, BitBake would never reuse the
468 cache.
469 </para>
470 </glossdef>
471 </glossentry>
472
473 <glossentry id='var-BB_HASHBASE_WHITELIST'><glossterm>BB_HASHBASE_WHITELIST</glossterm>
474 <glossdef>
475 <para>
476 Lists variables that are excluded from checksum and
477 dependency data.
478 Variables that are excluded can therefore change without
479 affecting the checksum mechanism.
480 A common example would be the variable for the path of
481 the build.
482 BitBake's output should not (and usually does not) depend
483 on the directory in which it was built.
484 </para>
485 </glossdef>
486 </glossentry>
487
488 <glossentry id='var-BB_HASHCHECK_FUNCTION'><glossterm>BB_HASHCHECK_FUNCTION</glossterm>
489 <glossdef>
490 <para>
491 Specifies the name of the function to call during the
492 "setscene" part of the task's execution in order to
493 validate the list of task hashes.
494 The function returns the list of setscene tasks that should
495 be executed.
496 </para>
497
498 <para>
499 At this point in the execution of the code, the objective
500 is to quickly verify if a given setscene function is likely
501 to work or not.
502 It's easier to check the list of setscene functions in
503 one pass than to call many individual tasks.
504 The returned list need not be completely accurate.
505 A given setscene task can still later fail.
506 However, the more accurate the data returned, the more
507 efficient the build will be.
508 </para>
509 </glossdef>
510 </glossentry>
511
512 <glossentry id='var-BB_INVALIDCONF'><glossterm>BB_INVALIDCONF</glossterm>
513 <glossdef>
514 <para>
515 Used in combination with the
516 <filename>ConfigParsed</filename> event to trigger
517 re-parsing the base metadata (i.e. all the
518 recipes).
519 The <filename>ConfigParsed</filename> event can set the
520 variable to trigger the re-parse.
521 You must be careful to avoid recursive loops with this
522 functionality.
523 </para>
524 </glossdef>
525 </glossentry>
526
527 <glossentry id='var-BB_LOGFMT'><glossterm>BB_LOGFMT</glossterm>
528 <glossdef>
529 <para>
530 Specifies the name of the log files saved into
531 <filename>${</filename><link linkend='var-T'><filename>T</filename></link><filename>}</filename>.
532 By default, the <filename>BB_LOGFMT</filename> variable
533 is undefined and the log file names get created using the
534 following form:
535 <literallayout class='monospaced'>
536 log.{task}.{pid}
537 </literallayout>
538 If you want to force log files to take a specific name,
539 you can set this variable in a configuration file.
540 </para>
541 </glossdef>
542 </glossentry>
543
544 <glossentry id='var-BB_NICE_LEVEL'><glossterm>BB_NICE_LEVEL</glossterm>
545 <glossdef>
546 <para>
547 Allows BitBake to run at a specific priority
548 (i.e. nice level).
549 System permissions usually mean that BitBake can reduce its
550 priority but not raise it again.
551 See
552 <link linkend='var-BB_TASK_NICE_LEVEL'><filename>BB_TASK_NICE_LEVEL</filename></link>
553 for additional information.
554 </para>
555 </glossdef>
556 </glossentry>
557
558 <glossentry id='var-BB_NO_NETWORK'><glossterm>BB_NO_NETWORK</glossterm>
559 <glossdef>
560 <para>
561 Disables network access in the BitBake fetcher modules.
562 With this access disabled, any command that attempts to
563 access the network becomes an error.
564 </para>
565
566 <para>
567 Disabling network access is useful for testing source
568 mirrors, running builds when not connected to the Internet,
569 and when operating in certain kinds of firewall
570 environments.
571 </para>
572 </glossdef>
573 </glossentry>
574
575 <glossentry id='var-BB_NUMBER_THREADS'><glossterm>BB_NUMBER_THREADS</glossterm>
576 <glossdef>
577 <para>
578 The maximum number of tasks BitBake should run in parallel
579 at any one time.
580 If your host development system supports multiple cores,
581 a good rule of thumb is to set this variable to twice the
582 number of cores.
583 </para>
584 </glossdef>
585 </glossentry>
586
587 <glossentry id='var-BB_NUMBER_PARSE_THREADS'><glossterm>BB_NUMBER_PARSE_THREADS</glossterm>
588 <glossdef>
589 <para>
590 Sets the number of threads BitBake uses when parsing.
591 By default, the number of threads is equal to the number
592 of cores on the system.
593 </para>
594 </glossdef>
595 </glossentry>
596
597 <glossentry id='var-BB_ORIGENV'><glossterm>BB_ORIGENV</glossterm>
598 <glossdef>
599 <para>
600 Contains a copy of the original external environment in
601 which BitBake was run.
602 The copy is taken before any whitelisted variable values
603 are filtered into BitBake's datastore.
604 <note>
605 The contents of this variable is a datastore object
606 that can be queried using the normal datastore
607 operations.
608 </note>
609 </para>
610 </glossdef>
611 </glossentry>
612
613 <glossentry id='var-BB_PRESERVE_ENV'><glossterm>BB_PRESERVE_ENV</glossterm>
614 <glossdef>
615 <para>
616 Disables whitelisting and instead allows all variables
617 through from the external environment into BitBake's
618 datastore.
619 <note>
620 You must set this variable in the external
621 environment in order for it to work.
622 </note>
623 </para>
624 </glossdef>
625 </glossentry>
626
627 <glossentry id='var-BB_RUNFMT'><glossterm>BB_RUNFMT</glossterm>
628 <glossdef>
629 <para>
630 Specifies the name of the executable script files
631 (i.e. run files) saved into
632 <filename>${</filename><link linkend='var-T'><filename>T</filename></link><filename>}</filename>.
633 By default, the <filename>BB_RUNFMT</filename> variable
634 is undefined and the run file names get created using the
635 following form:
636 <literallayout class='monospaced'>
637 run.{task}.{pid}
638 </literallayout>
639 If you want to force run files to take a specific name,
640 you can set this variable in a configuration file.
641 </para>
642 </glossdef>
643 </glossentry>
644
645 <glossentry id='var-BB_RUNTASK'><glossterm>BB_RUNTASK</glossterm>
646 <glossdef>
647 <para>
648 Contains the name of the currently executing task.
649 The value does not include the "do_" prefix.
650 For example, if the currently executing task is
651 <filename>do_config</filename>, the value is
652 "config".
653 </para>
654 </glossdef>
655 </glossentry>
656
657 <glossentry id='var-BB_SCHEDULER'><glossterm>BB_SCHEDULER</glossterm>
658 <glossdef>
659 <para>
660 Selects the name of the scheduler to use for the
661 scheduling of BitBake tasks.
662 Three options exist:
663 <itemizedlist>
664 <listitem><para><emphasis>basic</emphasis> -
665 The basic framework from which everything derives.
666 Using this option causes tasks to be ordered
667 numerically as they are parsed.
668 </para></listitem>
669 <listitem><para><emphasis>speed</emphasis> -
670 Executes tasks first that have more tasks
671 depending on them.
672 The "speed" option is the default.
673 </para></listitem>
674 <listitem><para><emphasis>completion</emphasis> -
675 Causes the scheduler to try to complete a given
676 recipe once its build has started.
677 </para></listitem>
678 </itemizedlist>
679 </para>
680 </glossdef>
681 </glossentry>
682
683 <glossentry id='var-BB_SCHEDULERS'><glossterm>BB_SCHEDULERS</glossterm>
684 <glossdef>
685 <para>
686 Defines custom schedulers to import.
687 Custom schedulers need to be derived from the
688 <filename>RunQueueScheduler</filename> class.
689 </para>
690
691 <para>
692 For information how to select a scheduler, see the
693 <link linkend='var-BB_SCHEDULER'><filename>BB_SCHEDULER</filename></link>
694 variable.
695 </para>
696 </glossdef>
697 </glossentry>
698
699 <glossentry id='var-BB_SETSCENE_DEPVALID'><glossterm>BB_SETSCENE_DEPVALID</glossterm>
700 <glossdef>
701 <para>
702 Specifies a function BitBake calls that determines
703 whether BitBake requires a setscene dependency to be met.
704 </para>
705
706 <para>
707 When running a setscene task, BitBake needs to
708 know which dependencies of that setscene task also need
709 to be run.
710 Whether dependencies also need to be run is highly
711 dependent on the metadata.
712 The function specified by this variable returns a
713 "True" or "False" depending on whether the dependency needs
714 to be met.
715 </para>
716 </glossdef>
717 </glossentry>
718
719 <glossentry id='var-BB_SETSCENE_VERIFY_FUNCTION'><glossterm>BB_SETSCENE_VERIFY_FUNCTION</glossterm>
720 <glossdef>
721 <para>
722 Specifies a function to call that verifies the list of
723 planned task execution before the main task execution
724 happens.
725 The function is called once BitBake has a list of setscene
726 tasks that have run and either succeeded or failed.
727 </para>
728
729 <para>
730 The function allows for a task list check to see if they
731 make sense.
732 Even if BitBake was planning to skip a task, the
733 returned value of the function can force BitBake to run
734 the task, which is necessary under certain metadata
735 defined circumstances.
736 </para>
737 </glossdef>
738 </glossentry>
739
740 <glossentry id='var-BB_SIGNATURE_EXCLUDE_FLAGS'><glossterm>BB_SIGNATURE_EXCLUDE_FLAGS</glossterm>
741 <glossdef>
742 <para>
743 Lists variable flags (varflags)
744 that can be safely excluded from checksum
745 and dependency data for keys in the datastore.
746 When generating checksum or dependency data for keys in the
747 datastore, the flags set against that key are normally
748 included in the checksum.
749 </para>
750
751 <para>
752 For more information on varflags, see the
753 "<link linkend='variable-flags'>Variable Flags</link>"
754 section.
755 </para>
756 </glossdef>
757 </glossentry>
758
759 <glossentry id='var-BB_SIGNATURE_HANDLER'><glossterm>BB_SIGNATURE_HANDLER</glossterm>
760 <glossdef>
761 <para>
762 Defines the name of the signature handler BitBake uses.
763 The signature handler defines the way stamp files are
764 created and handled, if and how the signature is
765 incorporated into the stamps, and how the signature
766 itself is generated.
767 </para>
768
769 <para>
770 A new signature handler can be added by injecting a class
771 derived from the
772 <filename>SignatureGenerator</filename> class into the
773 global namespace.
774 </para>
775 </glossdef>
776 </glossentry>
777
778 <glossentry id='var-BB_SRCREV_POLICY'><glossterm>BB_SRCREV_POLICY</glossterm>
779 <glossdef>
780 <para>
781 Defines the behavior of the fetcher when it interacts with
782 source control systems and dynamic source revisions.
783 The <filename>BB_SRCREV_POLICY</filename> variable is
784 useful when working without a network.
785 </para>
786
787 <para>
788 The variable can be set using one of two policies:
789 <itemizedlist>
790 <listitem><para><emphasis>cache</emphasis> -
791 Retains the value the system obtained previously
792 rather than querying the source control system
793 each time.
794 </para></listitem>
795 <listitem><para><emphasis>clear</emphasis> -
796 Queries the source controls system every time.
797 With this policy, there is no cache.
798 The "clear" policy is the default.
799 </para></listitem>
800 </itemizedlist>
801 </para>
802 </glossdef>
803 </glossentry>
804
805 <glossentry id='var-BB_STAMP_POLICY'><glossterm>BB_STAMP_POLICY</glossterm>
806 <glossdef>
807 <para>
808 Defines the mode used for how timestamps of stamp files
809 are compared.
810 You can set the variable to one of the following modes:
811 <itemizedlist>
812 <listitem><para><emphasis>perfile</emphasis> -
813 Timestamp comparisons are only made
814 between timestamps of a specific recipe.
815 This is the default mode.
816 </para></listitem>
817 <listitem><para><emphasis>full</emphasis> -
818 Timestamp comparisons are made for all
819 dependencies.
820 </para></listitem>
821 <listitem><para><emphasis>whitelist</emphasis> -
822 Identical to "full" mode except timestamp
823 comparisons are made for recipes listed in the
824 <link linkend='var-BB_STAMP_WHITELIST'><filename>BB_STAMP_WHITELIST</filename></link>
825 variable.
826 </para></listitem>
827 </itemizedlist>
828 <note>
829 Stamp policies are largely obsolete with the
830 introduction of setscene tasks.
831 </note>
832 </para>
833 </glossdef>
834 </glossentry>
835
836 <glossentry id='var-BB_STAMP_WHITELIST'><glossterm>BB_STAMP_WHITELIST</glossterm>
837 <glossdef>
838 <para>
839 Lists files whose stamp file timestamps are compared when
840 the stamp policy mode is set to "whitelist".
841 For information on stamp policies, see the
842 <link linkend='var-BB_STAMP_POLICY'><filename>BB_STAMP_POLICY</filename></link>
843 variable.
844 </para>
845 </glossdef>
846 </glossentry>
847
848 <glossentry id='var-BB_STRICT_CHECKSUM'><glossterm>BB_STRICT_CHECKSUM</glossterm>
849 <glossdef>
850 <para>
851 Sets a more strict checksum mechanism for non-local URLs.
852 Setting this variable to a value causes BitBake
853 to report an error if it encounters a non-local URL
854 that does not have at least one checksum specified.
855 </para>
856 </glossdef>
857 </glossentry>
858
859 <glossentry id='var-BB_TASK_NICE_LEVEL'><glossterm>BB_TASK_NICE_LEVEL</glossterm>
860 <glossdef>
861 <para>
862 Allows specific tasks to change their priority
863 (i.e. nice level).
864 </para>
865
866 <para>
867 You can use this variable in combination with task
868 overrides to raise or lower priorities of specific tasks.
869 For example, on the
870 <ulink url='http://www.yoctoproject.org'>Yocto Project</ulink>
871 autobuilder, QEMU emulation in images is given a higher
872 priority as compared to build tasks to ensure that images
873 do not suffer timeouts on loaded systems.
874 </para>
875 </glossdef>
876 </glossentry>
877
878 <glossentry id='var-BB_TASKHASH'><glossterm>BB_TASKHASH</glossterm>
879 <glossdef>
880 <para>
881 Within an executing task, this variable holds the hash
882 of the task as returned by the currently enabled
883 signature generator.
884 </para>
885 </glossdef>
886 </glossentry>
887
888 <glossentry id='var-BB_VERBOSE_LOGS'><glossterm>BB_VERBOSE_LOGS</glossterm>
889 <glossdef>
890 <para>
891 Controls how verbose BitBake is during builds.
892 If set, shell scripts echo commands and shell script output
893 appears on standard out (stdout).
894 </para>
895 </glossdef>
896 </glossentry>
897
898 <glossentry id='var-BB_WORKERCONTEXT'><glossterm>BB_WORKERCONTEXT</glossterm>
899 <glossdef>
900 <para>
901 Specifies if the current context is executing a task.
902 BitBake sets this variable to "1" when a task is
903 being executed.
904 The value is not set when the task is in server context
905 during parsing or event handling.
906 </para>
907 </glossdef>
908 </glossentry>
909
910
911 <glossentry id='var-BBCLASSEXTEND'><glossterm>BBCLASSEXTEND</glossterm>
912 <glossdef>
913 <para>
914 Allows you to extend a recipe so that it builds variants
915 of the software.
916 Some examples of these variants for recipes from the
917 OpenEmbedded Core metadata are "natives" such as
918 <filename>quilt-native</filename>, which is a copy of
919 Quilt built to run on the build system; "crosses" such
920 as <filename>gcc-cross</filename>, which is a compiler
921 built to run on the build machine but produces binaries
922 that run on the target <filename>MACHINE</filename>;
923 "nativesdk", which targets the SDK machine instead of
924 <filename>MACHINE</filename>; and "mulitlibs" in the form
925 "<filename>multilib:</filename><replaceable>multilib_name</replaceable>".
926 </para>
927
928 <para>
929 To build a different variant of the recipe with a minimal
930 amount of code, it usually is as simple as adding the
931 variable to your recipe.
932 Here are two examples.
933 The "native" variants are from the OpenEmbedded Core
934 metadata:
935 <literallayout class='monospaced'>
936 BBCLASSEXTEND =+ "native nativesdk"
937 BBCLASSEXTEND =+ "multilib:<replaceable>multilib_name</replaceable>"
938 </literallayout>
939 </para>
940 </glossdef>
941 </glossentry>
942
943 <glossentry id='var-BBDEBUG'><glossterm>BBDEBUG</glossterm>
944 <glossdef>
945 <para>
946 Sets the BitBake debug output level to a specific value
947 as incremented by the <filename>-d</filename> command line
948 option.
949 <note>
950 You must set this variable in the external environment
951 in order for it to work.
952 </note>
953 </para>
954 </glossdef>
955 </glossentry>
956
957 <glossentry id='var-BBFILE_COLLECTIONS'><glossterm>BBFILE_COLLECTIONS</glossterm>
958 <glossdef>
959 <para>Lists the names of configured layers.
960 These names are used to find the other <filename>BBFILE_*</filename>
961 variables.
962 Typically, each layer appends its name to this variable in its
963 <filename>conf/layer.conf</filename> file.
964 </para>
965 </glossdef>
966 </glossentry>
967
968 <glossentry id='var-BBFILE_PATTERN'><glossterm>BBFILE_PATTERN</glossterm>
969 <glossdef>
970 <para>Variable that expands to match files from
971 <link linkend='var-BBFILES'><filename>BBFILES</filename></link>
972 in a particular layer.
973 This variable is used in the <filename>conf/layer.conf</filename> file and must
974 be suffixed with the name of the specific layer (e.g.
975 <filename>BBFILE_PATTERN_emenlow</filename>).</para>
976 </glossdef>
977 </glossentry>
978
979 <glossentry id='var-BBFILE_PRIORITY'><glossterm>BBFILE_PRIORITY</glossterm>
980 <glossdef>
981 <para>Assigns the priority for recipe files in each layer.</para>
982 <para>This variable is useful in situations where the same recipe appears in
983 more than one layer.
984 Setting this variable allows you to prioritize a
985 layer against other layers that contain the same recipe - effectively
986 letting you control the precedence for the multiple layers.
987 The precedence established through this variable stands regardless of a
988 recipe's version
989 (<link linkend='var-PV'><filename>PV</filename></link> variable).
990 For example, a layer that has a recipe with a higher <filename>PV</filename> value but for
991 which the <filename>BBFILE_PRIORITY</filename> is set to have a lower precedence still has a
992 lower precedence.</para>
993 <para>A larger value for the <filename>BBFILE_PRIORITY</filename> variable results in a higher
994 precedence.
995 For example, the value 6 has a higher precedence than the value 5.
996 If not specified, the <filename>BBFILE_PRIORITY</filename> variable is set based on layer
997 dependencies (see the
998 <filename><link linkend='var-LAYERDEPENDS'>LAYERDEPENDS</link></filename> variable for
999 more information.
1000 The default priority, if unspecified
1001 for a layer with no dependencies, is the lowest defined priority + 1
1002 (or 1 if no priorities are defined).</para>
1003 <tip>
1004 You can use the command <filename>bitbake-layers show-layers</filename> to list
1005 all configured layers along with their priorities.
1006 </tip>
1007 </glossdef>
1008 </glossentry>
1009
1010 <glossentry id='var-BBFILES'><glossterm>BBFILES</glossterm>
1011 <glossdef>
1012 <para>List of recipe files BitBake uses to build software.</para>
1013 </glossdef>
1014 </glossentry>
1015
1016 <glossentry id='var-BBINCLUDED'><glossterm>BBINCLUDED</glossterm>
1017 <glossdef>
1018 <para>
1019 Contains a space-separated list of all of all files that
1020 BitBake's parser included during parsing of the current
1021 file.
1022 </para>
1023 </glossdef>
1024 </glossentry>
1025
1026 <glossentry id='var-BBINCLUDELOGS'><glossterm>BBINCLUDELOGS</glossterm>
1027 <glossdef>
1028 <para>
1029 If set to a value, enables printing the task log when
1030 reporting a failed task.
1031 </para>
1032 </glossdef>
1033 </glossentry>
1034
1035 <glossentry id='var-BBINCLUDELOGS_LINES'><glossterm>BBINCLUDELOGS_LINES</glossterm>
1036 <glossdef>
1037 <para>
1038 If
1039 <link linkend='var-BBINCLUDELOGS'><filename>BBINCLUDELOGS</filename></link>
1040 is set, specifies the maximum number of lines from the
1041 task log file to print when reporting a failed task.
1042 If you do not set <filename>BBINCLUDELOGS_LINES</filename>,
1043 the entire log is printed.
1044 </para>
1045 </glossdef>
1046 </glossentry>
1047
1048 <glossentry id='var-BBLAYERS'><glossterm>BBLAYERS</glossterm>
1049 <glossdef>
1050 <para>Lists the layers to enable during the build.
1051 This variable is defined in the <filename>bblayers.conf</filename> configuration
1052 file in the build directory.
1053 Here is an example:
1054 <literallayout class='monospaced'>
1055 BBLAYERS = " \
1056 /home/scottrif/poky/meta \
1057 /home/scottrif/poky/meta-yocto \
1058 /home/scottrif/poky/meta-yocto-bsp \
1059 /home/scottrif/poky/meta-mykernel \
1060 "
1061
1062 </literallayout>
1063 This example enables four layers, one of which is a custom, user-defined layer
1064 named <filename>meta-mykernel</filename>.
1065 </para>
1066 </glossdef>
1067 </glossentry>
1068
1069 <glossentry id='var-BBLAYERS_FETCH_DIR'><glossterm>BBLAYERS_FETCH_DIR</glossterm>
1070 <glossdef>
1071 <para>
1072 Sets the base location where layers are stored.
1073 By default, this location is set to
1074 <filename>${COREBASE}</filename>.
1075 This setting is used in conjunction with
1076 <filename>bitbake-layers layerindex-fetch</filename> and
1077 tells <filename>bitbake-layers</filename> where to place
1078 the fetched layers.
1079 </para>
1080 </glossdef>
1081 </glossentry>
1082
1083 <glossentry id='var-BBMASK'><glossterm>BBMASK</glossterm>
1084 <glossdef>
1085 <para>
1086 Prevents BitBake from processing recipes and recipe
1087 append files.
1088 </para>
1089
1090 <para>
1091 You can use the <filename>BBMASK</filename> variable
1092 to "hide" these <filename>.bb</filename> and
1093 <filename>.bbappend</filename> files.
1094 BitBake ignores any recipe or recipe append files that
1095 match the expression.
1096 It is as if BitBake does not see them at all.
1097 Consequently, matching files are not parsed or otherwise
1098 used by BitBake.</para>
1099 <para>
1100 The value you provide is passed to Python's regular
1101 expression compiler.
1102 The expression is compared against the full paths to
1103 the files.
1104 For complete syntax information, see Python's
1105 documentation at
1106 <ulink url='http://docs.python.org/release/2.3/lib/re-syntax.html'></ulink>.
1107 </para>
1108
1109 <para>
1110 The following example uses a complete regular expression
1111 to tell BitBake to ignore all recipe and recipe append
1112 files in the <filename>meta-ti/recipes-misc/</filename>
1113 directory:
1114 <literallayout class='monospaced'>
1115 BBMASK = "meta-ti/recipes-misc/"
1116 </literallayout>
1117 If you want to mask out multiple directories or recipes,
1118 use the vertical bar to separate the regular expression
1119 fragments.
1120 This next example masks out multiple directories and
1121 individual recipes:
1122 <literallayout class='monospaced'>
1123 BBMASK = "meta-ti/recipes-misc/|meta-ti/recipes-ti/packagegroup/"
1124 BBMASK .= "|.*meta-oe/recipes-support/"
1125 BBMASK .= "|.*openldap"
1126 BBMASK .= "|.*opencv"
1127 BBMASK .= "|.*lzma"
1128 </literallayout>
1129 Notice how the vertical bar is used to append the fragments.
1130 <note>
1131 When specifying a directory name, use the trailing
1132 slash character to ensure you match just that directory
1133 name.
1134 </note>
1135 </para>
1136 </glossdef>
1137 </glossentry>
1138
1139 <glossentry id='var-BBPATH'><glossterm>BBPATH</glossterm>
1140 <glossdef>
1141 <para>
1142 Used by BitBake to locate class
1143 (<filename>.bbclass</filename>) and configuration
1144 (<filename>.conf</filename>) files.
1145 This variable is analogous to the
1146 <filename>PATH</filename> variable.
1147 </para>
1148
1149 <para>
1150 If you run BitBake from a directory outside of the
1151 build directory,
1152 you must be sure to set
1153 <filename>BBPATH</filename> to point to the
1154 build directory.
1155 Set the variable as you would any environment variable
1156 and then run BitBake:
1157 <literallayout class='monospaced'>
1158 $ BBPATH="<replaceable>build_directory</replaceable>"
1159 $ export BBPATH
1160 $ bitbake <replaceable>target</replaceable>
1161 </literallayout>
1162 </para>
1163 </glossdef>
1164 </glossentry>
1165
1166 <glossentry id='var-BBSERVER'><glossterm>BBSERVER</glossterm>
1167 <glossdef>
1168 <para>
1169 Points to the server that runs memory-resident BitBake.
1170 The variable is only used when you employ memory-resident
1171 BitBake.
1172 </para>
1173 </glossdef>
1174 </glossentry>
1175
1176 <glossentry id='var-BBVERSIONS'><glossterm>BBVERSIONS</glossterm>
1177 <glossdef>
1178 <para>
1179 Allows a single recipe to build multiple versions of a
1180 project from a single recipe file.
1181 You also able to specify conditional metadata
1182 using the
1183 <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
1184 mechanism for a single version or for an optionally named
1185 range of versions.
1186 </para>
1187
1188 <para>
1189 For more information on <filename>BBVERSIONS</filename>,
1190 see the
1191 "<link linkend='variants-class-extension-mechanism'>Variants - Class Extension Mechanism</link>"
1192 section.
1193 </para>
1194 </glossdef>
1195 </glossentry>
1196
1197 <glossentry id='var-BITBAKE_UI'><glossterm>BITBAKE_UI</glossterm>
1198 <glossdef>
1199 <para>
1200 Used to specify the UI module to use when running BitBake.
1201 Using this variable is equivalent to using the
1202 <filename>-u</filename> command-line option.
1203 <note>
1204 You must set this variable in the external environment
1205 in order for it to work.
1206 </note>
1207 </para>
1208 </glossdef>
1209 </glossentry>
1210
1211 <glossentry id='var-BUILDNAME'><glossterm>BUILDNAME</glossterm>
1212 <glossdef>
1213 <para>
1214 A name assigned to the build.
1215 The name defaults to a datetime stamp of when the build was
1216 started but can be defined by the metadata.
1217 </para>
1218 </glossdef>
1219 </glossentry>
1220
1221 <glossentry id='var-BZRDIR'><glossterm>BZRDIR</glossterm>
1222 <glossdef>
1223 <para>
1224 The directory in which files checked out of a Bazaar
1225 system are stored.
1226 </para>
1227 </glossdef>
1228 </glossentry>
1229
1230 </glossdiv>
1231
1232 <glossdiv id='var-glossary-c'><title>C</title>
1233
1234 <glossentry id='var-CACHE'><glossterm>CACHE</glossterm>
1235 <glossdef>
1236 <para>
1237 Specifies the directory BitBake uses to store a cache
1238 of the metadata so it does not need to be parsed every
1239 time BitBake is started.
1240 </para>
1241 </glossdef>
1242 </glossentry>
1243
1244 <glossentry id='var-CVSDIR'><glossterm>CVSDIR</glossterm>
1245 <glossdef>
1246 <para>
1247 The directory in which files checked out under the
1248 CVS system are stored.
1249 </para>
1250 </glossdef>
1251 </glossentry>
1252
1253 </glossdiv>
1254
1255 <glossdiv id='var-glossary-d'><title>D</title>
1256
1257 <glossentry id='var-DEFAULT_PREFERENCE'><glossterm>DEFAULT_PREFERENCE</glossterm>
1258 <glossdef>
1259 <para>
1260 Specifies a weak bias for recipe selection priority.
1261 </para>
1262 <para>
1263 The most common usage of this is variable is to set
1264 it to "-1" within a recipe for a development version of a
1265 piece of software.
1266 Using the variable in this way causes the stable version
1267 of the recipe to build by default in the absence of
1268 <filename><link linkend='var-PREFERRED_VERSION'>PREFERRED_VERSION</link></filename>
1269 being used to build the development version.
1270 </para>
1271 <note>
1272 The bias provided by <filename>DEFAULT_PREFERENCE</filename>
1273 is weak and is overridden by
1274 <filename><link linkend='var-BBFILE_PRIORITY'>BBFILE_PRIORITY</link></filename>
1275 if that variable is different between two layers
1276 that contain different versions of the same recipe.
1277 </note>
1278 </glossdef>
1279 </glossentry>
1280
1281 <glossentry id='var-DEPENDS'><glossterm>DEPENDS</glossterm>
1282 <glossdef>
1283 <para>
1284 Lists a recipe's build-time dependencies
1285 (i.e. other recipe files).
1286 </para>
1287
1288 <para>
1289 Consider this simple example for two recipes named "a" and
1290 "b" that produce similarly named packages.
1291 In this example, the <filename>DEPENDS</filename>
1292 statement appears in the "a" recipe:
1293 <literallayout class='monospaced'>
1294 DEPENDS = "b"
1295 </literallayout>
1296 Here, the dependency is such that the
1297 <filename>do_configure</filename> task for recipe "a"
1298 depends on the <filename>do_populate_sysroot</filename>
1299 task of recipe "b".
1300 This means anything that recipe "b" puts into sysroot
1301 is available when recipe "a" is configuring itself.
1302 </para>
1303
1304 <para>
1305 For information on runtime dependencies, see the
1306 <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
1307 variable.
1308 </para>
1309 </glossdef>
1310 </glossentry>
1311
1312 <glossentry id='var-DESCRIPTION'><glossterm>DESCRIPTION</glossterm>
1313 <glossdef>
1314 <para>
1315 A long description for the recipe.
1316 </para>
1317 </glossdef>
1318 </glossentry>
1319
1320 <glossentry id='var-DL_DIR'><glossterm>DL_DIR</glossterm>
1321 <glossdef>
1322 <para>
1323 The central download directory used by the build process to
1324 store downloads.
1325 By default, <filename>DL_DIR</filename> gets files
1326 suitable for mirroring for everything except Git
1327 repositories.
1328 If you want tarballs of Git repositories, use the
1329 <link linkend='var-BB_GENERATE_MIRROR_TARBALLS'><filename>BB_GENERATE_MIRROR_TARBALLS</filename></link>
1330 variable.
1331 </para>
1332 </glossdef>
1333
1334 </glossentry>
1335 </glossdiv>
1336
1337 <glossdiv id='var-glossary-e'><title>E</title>
1338
1339 <glossentry id='var-EXCLUDE_FROM_WORLD'><glossterm>EXCLUDE_FROM_WORLD</glossterm>
1340 <glossdef>
1341 <para>
1342 Directs BitBake to exclude a recipe from world builds (i.e.
1343 <filename>bitbake world</filename>).
1344 During world builds, BitBake locates, parses and builds all
1345 recipes found in every layer exposed in the
1346 <filename>bblayers.conf</filename> configuration file.
1347 </para>
1348
1349 <para>
1350 To exclude a recipe from a world build using this variable,
1351 set the variable to "1" in the recipe.
1352 </para>
1353
1354 <note>
1355 Recipes added to <filename>EXCLUDE_FROM_WORLD</filename>
1356 may still be built during a world build in order to satisfy
1357 dependencies of other recipes.
1358 Adding a recipe to <filename>EXCLUDE_FROM_WORLD</filename>
1359 only ensures that the recipe is not explicitly added
1360 to the list of build targets in a world build.
1361 </note>
1362 </glossdef>
1363 </glossentry>
1364
1365 </glossdiv>
1366
1367 <glossdiv id='var-glossary-f'><title>F</title>
1368
1369 <glossentry id='var-FAKEROOT'><glossterm>FAKEROOT</glossterm>
1370 <glossdef>
1371 <para>
1372 Contains the command to use when running a shell script
1373 in a fakeroot environment.
1374 The <filename>FAKEROOT</filename> variable is obsolete
1375 and has been replaced by the other
1376 <filename>FAKEROOT*</filename> variables.
1377 See these entries in the glossary for more information.
1378 </para>
1379 </glossdef>
1380 </glossentry>
1381
1382 <glossentry id='var-FAKEROOTBASEENV'><glossterm>FAKEROOTBASEENV</glossterm>
1383 <glossdef>
1384 <para>
1385 Lists environment variables to set when executing
1386 the command defined by
1387 <link linkend='var-FAKEROOTCMD'><filename>FAKEROOTCMD</filename></link>
1388 that starts the bitbake-worker process
1389 in the fakeroot environment.
1390 </para>
1391 </glossdef>
1392 </glossentry>
1393
1394 <glossentry id='var-FAKEROOTCMD'><glossterm>FAKEROOTCMD</glossterm>
1395 <glossdef>
1396 <para>
1397 Contains the command that starts the bitbake-worker
1398 process in the fakeroot environment.
1399 </para>
1400 </glossdef>
1401 </glossentry>
1402
1403 <glossentry id='var-FAKEROOTDIRS'><glossterm>FAKEROOTDIRS</glossterm>
1404 <glossdef>
1405 <para>
1406 Lists directories to create before running a task in
1407 the fakeroot environment.
1408 </para>
1409 </glossdef>
1410 </glossentry>
1411
1412 <glossentry id='var-FAKEROOTENV'><glossterm>FAKEROOTENV</glossterm>
1413 <glossdef>
1414 <para>
1415 Lists environment variables to set when running a task
1416 in the fakeroot environment.
1417 For additional information on environment variables and
1418 the fakeroot environment, see the
1419 <link linkend='var-FAKEROOTBASEENV'><filename>FAKEROOTBASEENV</filename></link>
1420 variable.
1421 </para>
1422 </glossdef>
1423 </glossentry>
1424
1425 <glossentry id='var-FAKEROOTNOENV'><glossterm>FAKEROOTNOENV</glossterm>
1426 <glossdef>
1427 <para>
1428 Lists environment variables to set when running a task
1429 that is not in the fakeroot environment.
1430 For additional information on environment variables and
1431 the fakeroot environment, see the
1432 <link linkend='var-FAKEROOTENV'><filename>FAKEROOTENV</filename></link>
1433 variable.
1434 </para>
1435 </glossdef>
1436 </glossentry>
1437
1438 <glossentry id='var-FETCHCMD'><glossterm>FETCHCMD</glossterm>
1439 <glossdef>
1440 <para>
1441 Defines the command the BitBake fetcher module
1442 executes when running fetch operations.
1443 You need to use an override suffix when you use the
1444 variable (e.g. <filename>FETCHCMD_git</filename>
1445 or <filename>FETCHCMD_svn</filename>).
1446 </para>
1447 </glossdef>
1448 </glossentry>
1449
1450 <glossentry id='var-FILE'><glossterm>FILE</glossterm>
1451 <glossdef>
1452 <para>
1453 Points at the current file.
1454 BitBake sets this variable during the parsing process
1455 to identify the file being parsed.
1456 BitBake also sets this variable when a recipe is being
1457 executed to identify the recipe file.
1458 </para>
1459 </glossdef>
1460 </glossentry>
1461
1462 <glossentry id='var-FILESDIR'><glossterm>FILESDIR</glossterm>
1463 <glossdef>
1464 <para>
1465 Specifies directories BitBake uses when searching for
1466 patches and files.
1467 The "local" fetcher module uses these directories when
1468 handling <filename>file://</filename> URLs if the file
1469 was not found using
1470 <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>.
1471 <note>
1472 The <filename>FILESDIR</filename> variable is
1473 deprecated and you should use
1474 <filename>FILESPATH</filename> in all new code.
1475 </note>
1476 </para>
1477 </glossdef>
1478 </glossentry>
1479
1480 <glossentry id='var-FILESPATH'><glossterm>FILESPATH</glossterm>
1481 <glossdef>
1482 <para>
1483 Specifies directories BitBake uses when searching for
1484 patches and files.
1485 The "local" fetcher module uses these directories when
1486 handling <filename>file://</filename> URLs.
1487 The variable behaves like a shell <filename>PATH</filename>
1488 environment variable.
1489 The value is a colon-separated list of directories that
1490 are searched left-to-right in order.
1491 </para>
1492 </glossdef>
1493 </glossentry>
1494
1495 </glossdiv>
1496
1497
1498 <glossdiv id='var-glossary-g'><title>G</title>
1499
1500 <glossentry id='var-GITDIR'><glossterm>GITDIR</glossterm>
1501 <glossdef>
1502 <para>
1503 The directory in which a local copy of a Git repository
1504 is stored when it is cloned.
1505 </para>
1506 </glossdef>
1507 </glossentry>
1508
1509 </glossdiv>
1510
1511
1512 <glossdiv id='var-glossary-h'><title>H</title>
1513
1514 <glossentry id='var-HGDIR'><glossterm>HGDIR</glossterm>
1515 <glossdef>
1516 <para>
1517 The directory in which files checked out of a Mercurial
1518 system are stored.
1519 </para>
1520 </glossdef>
1521 </glossentry>
1522
1523 <glossentry id='var-HOMEPAGE'><glossterm>HOMEPAGE</glossterm>
1524 <glossdef>
1525 <para>Website where more information about the software the recipe is building
1526 can be found.</para>
1527 </glossdef>
1528 </glossentry>
1529
1530 </glossdiv>
1531
1532 <glossdiv id='var-glossary-i'><title>I</title>
1533
1534 <glossentry id='var-INHERIT'><glossterm>INHERIT</glossterm>
1535 <glossdef>
1536 <para>
1537 Causes the named class to be inherited at
1538 this point during parsing.
1539 The variable is only valid in configuration files.
1540 </para>
1541 </glossdef>
1542 </glossentry>
1543
1544 </glossdiv>
1545
1546<!--
1547 <glossdiv id='var-glossary-j'><title>J</title>
1548 </glossdiv>
1549
1550 <glossdiv id='var-glossary-k'><title>K</title>
1551 </glossdiv>
1552-->
1553
1554 <glossdiv id='var-glossary-l'><title>L</title>
1555
1556 <glossentry id='var-LAYERDEPENDS'><glossterm>LAYERDEPENDS</glossterm>
1557 <glossdef>
1558 <para>Lists the layers, separated by spaces, upon which this recipe depends.
1559 Optionally, you can specify a specific layer version for a dependency
1560 by adding it to the end of the layer name with a colon, (e.g. "anotherlayer:3"
1561 to be compared against
1562 <link linkend='var-LAYERVERSION'><filename>LAYERVERSION</filename></link><filename>_anotherlayer</filename>
1563 in this case).
1564 BitBake produces an error if any dependency is missing or
1565 the version numbers do not match exactly (if specified).</para>
1566 <para>
1567 You use this variable in the <filename>conf/layer.conf</filename> file.
1568 You must also use the specific layer name as a suffix
1569 to the variable (e.g. <filename>LAYERDEPENDS_mylayer</filename>).</para>
1570 </glossdef>
1571 </glossentry>
1572
1573 <glossentry id='var-LAYERDIR'><glossterm>LAYERDIR</glossterm>
1574 <glossdef>
1575 <para>When used inside the <filename>layer.conf</filename> configuration
1576 file, this variable provides the path of the current layer.
1577 This variable is not available outside of <filename>layer.conf</filename>
1578 and references are expanded immediately when parsing of the file completes.</para>
1579 </glossdef>
1580 </glossentry>
1581
1582 <glossentry id='var-LAYERVERSION'><glossterm>LAYERVERSION</glossterm>
1583 <glossdef>
1584 <para>Optionally specifies the version of a layer as a single number.
1585 You can use this variable within
1586 <link linkend='var-LAYERDEPENDS'><filename>LAYERDEPENDS</filename></link>
1587 for another layer in order to depend on a specific version
1588 of the layer.</para>
1589 <para>
1590 You use this variable in the <filename>conf/layer.conf</filename> file.
1591 You must also use the specific layer name as a suffix
1592 to the variable (e.g. <filename>LAYERDEPENDS_mylayer</filename>).</para>
1593 </glossdef>
1594 </glossentry>
1595
1596 <glossentry id='var-LICENSE'><glossterm>LICENSE</glossterm>
1597 <glossdef>
1598 <para>
1599 The list of source licenses for the recipe.
1600 </para>
1601 </glossdef>
1602 </glossentry>
1603
1604 </glossdiv>
1605
1606 <glossdiv id='var-glossary-m'><title>M</title>
1607
1608 <glossentry id='var-MIRRORS'><glossterm>MIRRORS</glossterm>
1609 <glossdef>
1610 <para>
1611 Specifies additional paths from which BitBake gets source code.
1612 When the build system searches for source code, it first
1613 tries the local download directory.
1614 If that location fails, the build system tries locations
1615 defined by
1616 <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>,
1617 the upstream source, and then locations specified by
1618 <filename>MIRRORS</filename> in that order.
1619 </para>
1620 </glossdef>
1621 </glossentry>
1622
1623 <glossentry id='var-MULTI_PROVIDER_WHITELIST'><glossterm>MULTI_PROVIDER_WHITELIST</glossterm>
1624 <glossdef>
1625 <para>
1626 Allows you to suppress BitBake warnings caused when
1627 building two separate recipes that provide the same
1628 output.
1629 </para>
1630
1631 <para>
1632 Bitbake normally issues a warning when building two
1633 different recipes where each provides the same output.
1634 This scenario is usually something the user does not
1635 want.
1636 However, cases do exist where it makes sense, particularly
1637 in the <filename>virtual/*</filename> namespace.
1638 You can use this variable to suppress BitBake's warnings.
1639 </para>
1640
1641 <para>
1642 To use the variable, list provider names (e.g.
1643 recipe names, <filename>virtual/kernel</filename>,
1644 and so forth).
1645 </para>
1646 </glossdef>
1647 </glossentry>
1648
1649 </glossdiv>
1650
1651<!--
1652 <glossdiv id='var-glossary-n'><title>N</title>
1653 </glossdiv>
1654-->
1655
1656 <glossdiv id='var-glossary-o'><title>O</title>
1657
1658 <glossentry id='var-OVERRIDES'><glossterm>OVERRIDES</glossterm>
1659 <glossdef>
1660 <para>
1661 BitBake uses <filename>OVERRIDES</filename> to control
1662 what variables are overridden after BitBake parses
1663 recipes and configuration files.
1664 </para>
1665
1666 <para>
1667 Following is a simple example that uses an overrides
1668 list based on machine architectures:
1669 <literallayout class='monospaced'>
1670 OVERRIDES = "arm:x86:mips:powerpc"
1671 </literallayout>
1672 You can find information on how to use
1673 <filename>OVERRIDES</filename> in the
1674 "<link linkend='conditional-syntax-overrides'>Conditional Syntax (Overrides)</link>"
1675 section.
1676 </para>
1677 </glossdef>
1678 </glossentry>
1679 </glossdiv>
1680
1681 <glossdiv id='var-glossary-p'><title>P</title>
1682
1683 <glossentry id='var-PACKAGES'><glossterm>PACKAGES</glossterm>
1684 <glossdef>
1685 <para>The list of packages the recipe creates.
1686 </para>
1687 </glossdef>
1688 </glossentry>
1689
1690 <glossentry id='var-PACKAGES_DYNAMIC'><glossterm>PACKAGES_DYNAMIC</glossterm>
1691 <glossdef>
1692 <para>
1693 A promise that your recipe satisfies runtime dependencies
1694 for optional modules that are found in other recipes.
1695 <filename>PACKAGES_DYNAMIC</filename>
1696 does not actually satisfy the dependencies, it only states that
1697 they should be satisfied.
1698 For example, if a hard, runtime dependency
1699 (<link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>)
1700 of another package is satisfied during the build
1701 through the <filename>PACKAGES_DYNAMIC</filename>
1702 variable, but a package with the module name is never actually
1703 produced, then the other package will be broken.
1704 </para>
1705 </glossdef>
1706 </glossentry>
1707
1708 <glossentry id='var-PE'><glossterm>PE</glossterm>
1709 <glossdef>
1710 <para>
1711 The epoch of the recipe.
1712 By default, this variable is unset.
1713 The variable is used to make upgrades possible when the
1714 versioning scheme changes in some backwards incompatible
1715 way.
1716 </para>
1717 </glossdef>
1718 </glossentry>
1719
1720 <glossentry id='var-PERSISTENT_DIR'><glossterm>PERSISTENT_DIR</glossterm>
1721 <glossdef>
1722 <para>
1723 Specifies the directory BitBake uses to store data that
1724 should be preserved between builds.
1725 In particular, the data stored is the data that uses
1726 BitBake's persistent data API and the data used by the
1727 PR Server and PR Service.
1728 </para>
1729 </glossdef>
1730 </glossentry>
1731
1732 <glossentry id='var-PF'><glossterm>PF</glossterm>
1733 <glossdef>
1734 <para>
1735 Specifies the recipe or package name and includes all version and revision
1736 numbers (i.e. <filename>eglibc-2.13-r20+svnr15508/</filename> and
1737 <filename>bash-4.2-r1/</filename>).
1738 </para>
1739 </glossdef>
1740 </glossentry>
1741
1742 <glossentry id='var-PN'><glossterm>PN</glossterm>
1743 <glossdef>
1744 <para>The recipe name.</para>
1745 </glossdef>
1746 </glossentry>
1747
1748 <glossentry id='var-PR'><glossterm>PR</glossterm>
1749 <glossdef>
1750 <para>The revision of the recipe.
1751 </para>
1752 </glossdef>
1753 </glossentry>
1754
1755 <glossentry id='var-PREFERRED_PROVIDER'><glossterm>PREFERRED_PROVIDER</glossterm>
1756 <glossdef>
1757 <para>
1758 Determines which recipe should be given preference when
1759 multiple recipes provide the same item.
1760 You should always suffix the variable with the name of the
1761 provided item, and you should set it to the
1762 <link linkend='var-PN'><filename>PN</filename></link>
1763 of the recipe to which you want to give precedence.
1764 Some examples:
1765 <literallayout class='monospaced'>
1766 PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
1767 PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
1768 PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
1769 </literallayout>
1770 </para>
1771 </glossdef>
1772 </glossentry>
1773
1774 <glossentry id='var-PREFERRED_PROVIDERS'><glossterm>PREFERRED_PROVIDERS</glossterm>
1775 <glossdef>
1776 <para>
1777 Determines which recipe should be given preference for
1778 cases where multiple recipes provide the same item.
1779 Functionally,
1780 <filename>PREFERRED_PROVIDERS</filename> is identical to
1781 <link linkend='var-PREFERRED_PROVIDER'><filename>PREFERRED_PROVIDER</filename></link>.
1782 However, the <filename>PREFERRED_PROVIDERS</filename>
1783 variable lets you define preferences for multiple
1784 situations using the following form:
1785 <literallayout class='monospaced'>
1786 PREFERRED_PROVIDERS = "xxx:yyy aaa:bbb ..."
1787 </literallayout>
1788 This form is a convenient replacement for the following:
1789 <literallayout class='monospaced'>
1790 PREFERRED_PROVIDER_xxx = "yyy"
1791 PREFERRED_PROVIDER_aaa = "bbb"
1792 </literallayout>
1793 </para>
1794 </glossdef>
1795 </glossentry>
1796
1797 <glossentry id='var-PREFERRED_VERSION'><glossterm>PREFERRED_VERSION</glossterm>
1798 <glossdef>
1799 <para>
1800 If there are multiple versions of recipes available, this
1801 variable determines which recipe should be given preference.
1802 You must always suffix the variable with the
1803 <link linkend='var-PN'><filename>PN</filename></link>
1804 you want to select, and you should set
1805 <link linkend='var-PV'><filename>PV</filename></link>
1806 accordingly for precedence.
1807 You can use the "<filename>%</filename>" character as a
1808 wildcard to match any number of characters, which can be
1809 useful when specifying versions that contain long revision
1810 numbers that could potentially change.
1811 Here are two examples:
1812 <literallayout class='monospaced'>
1813 PREFERRED_VERSION_python = "2.7.3"
1814 PREFERRED_VERSION_linux-yocto = "3.10%"
1815 </literallayout>
1816 </para>
1817 </glossdef>
1818 </glossentry>
1819
1820 <glossentry id='var-PREMIRRORS'><glossterm>PREMIRRORS</glossterm>
1821 <glossdef>
1822 <para>
1823 Specifies additional paths from which BitBake gets source code.
1824 When the build system searches for source code, it first
1825 tries the local download directory.
1826 If that location fails, the build system tries locations
1827 defined by <filename>PREMIRRORS</filename>, the upstream
1828 source, and then locations specified by
1829 <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
1830 in that order.
1831 </para>
1832
1833 <para>
1834 Typically, you would add a specific server for the
1835 build system to attempt before any others by adding
1836 something like the following to your configuration:
1837 <literallayout class='monospaced'>
1838 PREMIRRORS_prepend = "\
1839 git://.*/.* http://www.yoctoproject.org/sources/ \n \
1840 ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
1841 http://.*/.* http://www.yoctoproject.org/sources/ \n \
1842 https://.*/.* http://www.yoctoproject.org/sources/ \n"
1843 </literallayout>
1844 These changes cause the build system to intercept
1845 Git, FTP, HTTP, and HTTPS requests and direct them to
1846 the <filename>http://</filename> sources mirror.
1847 You can use <filename>file://</filename> URLs to point
1848 to local directories or network shares as well.
1849 </para>
1850 </glossdef>
1851 </glossentry>
1852
1853 <glossentry id='var-PROVIDES'><glossterm>PROVIDES</glossterm>
1854 <glossdef>
1855 <para>
1856 A list of aliases by which a particular recipe can be
1857 known.
1858 By default, a recipe's own
1859 <filename><link linkend='var-PN'>PN</link></filename>
1860 is implicitly already in its <filename>PROVIDES</filename>
1861 list.
1862 If a recipe uses <filename>PROVIDES</filename>, the
1863 additional aliases are synonyms for the recipe and can
1864 be useful satisfying dependencies of other recipes during
1865 the build as specified by
1866 <filename><link linkend='var-DEPENDS'>DEPENDS</link></filename>.
1867 </para>
1868
1869 <para>
1870 Consider the following example
1871 <filename>PROVIDES</filename> statement from a recipe
1872 file <filename>libav_0.8.11.bb</filename>:
1873 <literallayout class='monospaced'>
1874 PROVIDES += "libpostproc"
1875 </literallayout>
1876 The <filename>PROVIDES</filename> statement results in
1877 the "libav" recipe also being known as "libpostproc".
1878 </para>
1879 </glossdef>
1880 </glossentry>
1881
1882 <glossentry id='var-PRSERV_HOST'><glossterm>PRSERV_HOST</glossterm>
1883 <glossdef>
1884 <para>
1885 The network based
1886 <link linkend='var-PR'><filename>PR</filename></link>
1887 service host and port.
1888 </para>
1889
1890 <para>
1891 Following is an example of how the <filename>PRSERV_HOST</filename> variable is
1892 set:
1893 <literallayout class='monospaced'>
1894 PRSERV_HOST = "localhost:0"
1895 </literallayout>
1896 You must set the variable if you want to automatically
1897 start a local PR service.
1898 You can set <filename>PRSERV_HOST</filename> to other
1899 values to use a remote PR service.
1900 </para>
1901 </glossdef>
1902 </glossentry>
1903
1904 <glossentry id='var-PV'><glossterm>PV</glossterm>
1905 <glossdef>
1906 <para>The version of the recipe.
1907 </para>
1908 </glossdef>
1909 </glossentry>
1910
1911 </glossdiv>
1912
1913<!--
1914 <glossdiv id='var-glossary-q'><title>Q</title>
1915 </glossdiv>
1916-->
1917
1918 <glossdiv id='var-glossary-r'><title>R</title>
1919
1920 <glossentry id='var-RDEPENDS'><glossterm>RDEPENDS</glossterm>
1921 <glossdef>
1922 <para>
1923 Lists a package's runtime dependencies (i.e. other packages)
1924 that must be installed in order for the built package to run
1925 correctly.
1926 If a package in this list cannot be found during the build,
1927 you will get a build error.
1928 </para>
1929
1930 <para>
1931 Because the <filename>RDEPENDS</filename> variable applies
1932 to packages being built, you should always use the variable
1933 in a form with an attached package name.
1934 For example, suppose you are building a development package
1935 that depends on the <filename>perl</filename> package.
1936 In this case, you would use the following
1937 <filename>RDEPENDS</filename> statement:
1938 <literallayout class='monospaced'>
1939 RDEPENDS_${PN}-dev += "perl"
1940 </literallayout>
1941 In the example, the development package depends on
1942 the <filename>perl</filename> package.
1943 Thus, the <filename>RDEPENDS</filename> variable has the
1944 <filename>${PN}-dev</filename> package name as part of the
1945 variable.
1946 </para>
1947
1948 <para>
1949 BitBake supports specifying versioned dependencies.
1950 Although the syntax varies depending on the packaging
1951 format, BitBake hides these differences from you.
1952 Here is the general syntax to specify versions with
1953 the <filename>RDEPENDS</filename> variable:
1954 <literallayout class='monospaced'>
1955 RDEPENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
1956 </literallayout>
1957 For <filename>operator</filename>, you can specify the
1958 following:
1959 <literallayout class='monospaced'>
1960 =
1961 &lt;
1962 &gt;
1963 &lt;=
1964 &gt;=
1965 </literallayout>
1966 For example, the following sets up a dependency on version
1967 1.2 or greater of the package <filename>foo</filename>:
1968 <literallayout class='monospaced'>
1969 RDEPENDS_${PN} = "foo (>= 1.2)"
1970 </literallayout>
1971 </para>
1972
1973 <para>
1974 For information on build-time dependencies, see the
1975 <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
1976 variable.
1977 </para>
1978 </glossdef>
1979 </glossentry>
1980
1981 <glossentry id='var-RPROVIDES'><glossterm>RPROVIDES</glossterm>
1982 <glossdef>
1983 <para>
1984 A list of package name aliases that a package also provides.
1985 These aliases are useful for satisfying runtime dependencies
1986 of other packages both during the build and on the target
1987 (as specified by
1988 <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>).
1989 </para>
1990 <para>
1991 As with all package-controlling variables, you must always
1992 use the variable in conjunction with a package name override.
1993 Here is an example:
1994 <literallayout class='monospaced'>
1995 RPROVIDES_${PN} = "widget-abi-2"
1996 </literallayout>
1997 </para>
1998 </glossdef>
1999 </glossentry>
2000
2001 <glossentry id='var-RRECOMMENDS'><glossterm>RRECOMMENDS</glossterm>
2002 <glossdef>
2003 <para>
2004 A list of packages that extends the usability of a package
2005 being built.
2006 The package being built does not depend on this list of
2007 packages in order to successfully build, but needs them for
2008 the extended usability.
2009 To specify runtime dependencies for packages, see the
2010 <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>
2011 variable.
2012 </para>
2013
2014 <para>
2015 BitBake supports specifying versioned recommends.
2016 Although the syntax varies depending on the packaging
2017 format, BitBake hides these differences from you.
2018 Here is the general syntax to specify versions with
2019 the <filename>RRECOMMENDS</filename> variable:
2020 <literallayout class='monospaced'>
2021 RRECOMMENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
2022 </literallayout>
2023 For <filename>operator</filename>, you can specify the
2024 following:
2025 <literallayout class='monospaced'>
2026 =
2027 &lt;
2028 &gt;
2029 &lt;=
2030 &gt;=
2031 </literallayout>
2032 For example, the following sets up a recommend on version
2033 1.2 or greater of the package <filename>foo</filename>:
2034 <literallayout class='monospaced'>
2035 RRECOMMENDS_${PN} = "foo (>= 1.2)"
2036 </literallayout>
2037 </para>
2038 </glossdef>
2039 </glossentry>
2040
2041 </glossdiv>
2042
2043 <glossdiv id='var-glossary-s'><title>S</title>
2044
2045 <glossentry id='var-SECTION'><glossterm>SECTION</glossterm>
2046 <glossdef>
2047 <para>The section in which packages should be categorized.</para>
2048 </glossdef>
2049 </glossentry>
2050
2051 <glossentry id='var-SRC_URI'><glossterm>SRC_URI</glossterm>
2052 <glossdef>
2053 <para>
2054 The list of source files - local or remote.
2055 This variable tells BitBake which bits
2056 to pull for the build and how to pull them.
2057 For example, if the recipe or append file needs to
2058 fetch a single tarball from the Internet, the recipe or
2059 append file uses a <filename>SRC_URI</filename>
2060 entry that specifies that tarball.
2061 On the other hand, if the recipe or append file needs to
2062 fetch a tarball and include a custom file, the recipe or
2063 append file needs an <filename>SRC_URI</filename> variable
2064 that specifies all those sources.</para>
2065 <para>The following list explains the available URI protocols:
2066 <itemizedlist>
2067 <listitem><para><emphasis><filename>file://</filename> -</emphasis>
2068 Fetches files, which are usually files shipped with
2069 the metadata,
2070 from the local machine.
2071 The path is relative to the
2072 <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>
2073 variable.</para></listitem>
2074 <listitem><para><emphasis><filename>bzr://</filename> -</emphasis> Fetches files from a
2075 Bazaar revision control repository.</para></listitem>
2076 <listitem><para><emphasis><filename>git://</filename> -</emphasis> Fetches files from a
2077 Git revision control repository.</para></listitem>
2078 <listitem><para><emphasis><filename>osc://</filename> -</emphasis> Fetches files from
2079 an OSC (OpenSUSE Build service) revision control repository.</para></listitem>
2080 <listitem><para><emphasis><filename>repo://</filename> -</emphasis> Fetches files from
2081 a repo (Git) repository.</para></listitem>
2082 <listitem><para><emphasis><filename>http://</filename> -</emphasis> Fetches files from
2083 the Internet using HTTP.</para></listitem>
2084 <listitem><para><emphasis><filename>https://</filename> -</emphasis> Fetches files
2085 from the Internet using HTTPS.</para></listitem>
2086 <listitem><para><emphasis><filename>ftp://</filename> -</emphasis> Fetches files
2087 from the Internet using FTP.</para></listitem>
2088 <listitem><para><emphasis><filename>cvs://</filename> -</emphasis> Fetches files from
2089 a CVS revision control repository.</para></listitem>
2090 <listitem><para><emphasis><filename>hg://</filename> -</emphasis> Fetches files from
2091 a Mercurial (<filename>hg</filename>) revision control repository.</para></listitem>
2092 <listitem><para><emphasis><filename>p4://</filename> -</emphasis> Fetches files from
2093 a Perforce (<filename>p4</filename>) revision control repository.</para></listitem>
2094 <listitem><para><emphasis><filename>ssh://</filename> -</emphasis> Fetches files from
2095 a secure shell.</para></listitem>
2096 <listitem><para><emphasis><filename>svn://</filename> -</emphasis> Fetches files from
2097 a Subversion (<filename>svn</filename>) revision control repository.</para></listitem>
2098 </itemizedlist>
2099 </para>
2100 <para>Here are some additional options worth mentioning:
2101 <itemizedlist>
2102 <listitem><para><emphasis><filename>unpack</filename> -</emphasis> Controls
2103 whether or not to unpack the file if it is an archive.
2104 The default action is to unpack the file.</para></listitem>
2105 <listitem><para><emphasis><filename>subdir</filename> -</emphasis> Places the file
2106 (or extracts its contents) into the specified
2107 subdirectory.
2108 This option is useful for unusual tarballs or other archives that
2109 do not have their files already in a subdirectory within the archive.
2110 </para></listitem>
2111 <listitem><para><emphasis><filename>name</filename> -</emphasis> Specifies a
2112 name to be used for association with <filename>SRC_URI</filename> checksums
2113 when you have more than one file specified in <filename>SRC_URI</filename>.
2114 </para></listitem>
2115 <listitem><para><emphasis><filename>downloadfilename</filename> -</emphasis> Specifies
2116 the filename used when storing the downloaded file.</para></listitem>
2117 </itemizedlist>
2118 </para>
2119 </glossdef>
2120 </glossentry>
2121
2122 <glossentry id='var-SRCDATE'><glossterm>SRCDATE</glossterm>
2123 <glossdef>
2124 <para>
2125 The date of the source code used to build the package.
2126 This variable applies only if the source was fetched from a Source Code Manager (SCM).
2127 </para>
2128 </glossdef>
2129 </glossentry>
2130
2131 <glossentry id='var-SRCREV'><glossterm>SRCREV</glossterm>
2132 <glossdef>
2133 <para>
2134 The revision of the source code used to build the package.
2135 This variable applies only when using Subversion, Git, Mercurial and Bazaar.
2136 If you want to build a fixed revision and you want
2137 to avoid performing a query on the remote repository every time
2138 BitBake parses your recipe, you should specify a <filename>SRCREV</filename> that is a
2139 full revision identifier and not just a tag.
2140 </para>
2141 </glossdef>
2142 </glossentry>
2143
2144 <glossentry id='var-SRCREV_FORMAT'><glossterm>SRCREV_FORMAT</glossterm>
2145 <glossdef>
2146 <para>
2147 Helps construct valid
2148 <link linkend='var-SRCREV'><filename>SRCREV</filename></link>
2149 values when multiple source controlled URLs are used in
2150 <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>.
2151 </para>
2152
2153 <para>
2154 The system needs help constructing these values under these
2155 circumstances.
2156 Each component in the <filename>SRC_URI</filename>
2157 is assigned a name and these are referenced
2158 in the <filename>SRCREV_FORMAT</filename> variable.
2159 Consider an example with URLs named "machine" and "meta".
2160 In this case, <filename>SRCREV_FORMAT</filename> could look
2161 like "machine_meta" and those names would have the SCM
2162 versions substituted into each position.
2163 Only one <filename>AUTOINC</filename> placeholder is added
2164 and if needed.
2165 And, this placeholder is placed at the start of the
2166 returned string.
2167 </para>
2168 </glossdef>
2169 </glossentry>
2170
2171 <glossentry id='var-STAMP'><glossterm>STAMP</glossterm>
2172 <glossdef>
2173 <para>
2174 Specifies the base path used to create recipe stamp files.
2175 The path to an actual stamp file is constructed by evaluating this
2176 string and then appending additional information.
2177 </para>
2178 </glossdef>
2179 </glossentry>
2180
2181 <glossentry id='var-STAMPCLEAN'><glossterm>STAMPCLEAN</glossterm>
2182 <glossdef>
2183 <para>
2184 Specifies the base path used to create recipe stamp files.
2185 Unlike the
2186 <link linkend='var-STAMP'><filename>STAMP</filename></link>
2187 variable, <filename>STAMPCLEAN</filename> can contain
2188 wildcards to match the range of files a clean operation
2189 should remove.
2190 BitBake uses a clean operation to remove any other stamps
2191 it should be removing when creating a new stamp.
2192 </para>
2193 </glossdef>
2194 </glossentry>
2195
2196 <glossentry id='var-SUMMARY'><glossterm>SUMMARY</glossterm>
2197 <glossdef>
2198 <para>
2199 A short summary for the recipe, which is 72 characters or less.
2200 </para>
2201 </glossdef>
2202 </glossentry>
2203
2204 <glossentry id='var-SVNDIR'><glossterm>SVNDIR</glossterm>
2205 <glossdef>
2206 <para>
2207 The directory in which files checked out of a Subversion
2208 system are stored.
2209 </para>
2210 </glossdef>
2211 </glossentry>
2212
2213 </glossdiv>
2214
2215 <glossdiv id='var-glossary-t'><title>T</title>
2216
2217 <glossentry id='var-T'><glossterm>T</glossterm>
2218 <glossdef>
2219 <para>Points to a directory were BitBake places
2220 temporary files, which consist mostly of task logs and
2221 scripts, when building a particular recipe.
2222 </para>
2223 </glossdef>
2224 </glossentry>
2225
2226 <glossentry id='var-TOPDIR'><glossterm>TOPDIR</glossterm>
2227 <glossdef>
2228 <para>
2229 Points to the build directory.
2230 BitBake automatically sets this variable.
2231 </para>
2232 </glossdef>
2233 </glossentry>
2234
2235 </glossdiv>
2236
2237<!--
2238 <glossdiv id='var-glossary-u'><title>U</title>
2239 </glossdiv>
2240
2241 <glossdiv id='var-glossary-v'><title>V</title>
2242 </glossdiv>
2243
2244 <glossdiv id='var-glossary-w'><title>W</title>
2245 </glossdiv>
2246
2247 <glossdiv id='var-glossary-x'><title>X</title>
2248 </glossdiv>
2249
2250 <glossdiv id='var-glossary-y'><title>Y</title>
2251 </glossdiv>
2252
2253 <glossdiv id='var-glossary-z'><title>Z</title>
2254 </glossdiv>
2255-->
2256
2257
2258</glossary>
2259</chapter>
2260<!--
2261vim: expandtab tw=80 ts=4
2262-->