blob: e5aeffcffb35ea040e0303db829ce3a71944a669 [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
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500859 <glossentry id='var-BB_TASK_IONICE_LEVEL'><glossterm>BB_TASK_IONICE_LEVEL</glossterm>
860 <glossdef>
861 <para>
862 Allows adjustment of a task's Input/Output priority.
863 During Autobuilder testing, random failures can occur
864 for tasks due to I/O starvation.
865 These failures occur during various QEMU runtime timeouts.
866 You can use the <filename>BB_TASK_IONICE_LEVEL</filename>
867 variable to adjust the I/O priority of these tasks.
868 <note>
869 This variable works similarly to the
870 <link linkend='var-BB_TASK_NICE_LEVEL'><filename>BB_TASK_NICE_LEVEL</filename></link>
871 variable except with a task's I/O priorities.
872 </note>
873 </para>
874
875 <para>
876 Set the variable as follows:
877 <literallayout class='monospaced'>
878 BB_TASK_IONICE_LEVEL = "<replaceable>class</replaceable>.<replaceable>prio</replaceable>"
879 </literallayout>
880 For <replaceable>class</replaceable>, the default value is
881 "2", which is a best effort.
882 You can use "1" for realtime and "3" for idle.
883 If you want to use realtime, you must have superuser
884 privileges.
885 </para>
886
887 <para>
888 For <replaceable>prio</replaceable>, you can use any
889 value from "0", which is the highest priority, to "7",
890 which is the lowest.
891 The default value is "4".
892 You do not need any special privileges to use this range
893 of priority values.
894 <note>
895 In order for your I/O priority settings to take effect,
896 you need the Completely Fair Queuing (CFQ) Scheduler
897 selected for the backing block device.
898 To select the scheduler, use the following command form
899 where <replaceable>device</replaceable> is the device
900 (e.g. sda, sdb, and so forth):
901 <literallayout class='monospaced'>
902 $ sudo sh -c “echo cfq > /sys/block/<replaceable>device</replaceable>/queu/scheduler
903 </literallayout>
904 </note>
905 </para>
906 </glossdef>
907 </glossentry>
908
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500909 <glossentry id='var-BB_TASK_NICE_LEVEL'><glossterm>BB_TASK_NICE_LEVEL</glossterm>
910 <glossdef>
911 <para>
912 Allows specific tasks to change their priority
913 (i.e. nice level).
914 </para>
915
916 <para>
917 You can use this variable in combination with task
918 overrides to raise or lower priorities of specific tasks.
919 For example, on the
920 <ulink url='http://www.yoctoproject.org'>Yocto Project</ulink>
921 autobuilder, QEMU emulation in images is given a higher
922 priority as compared to build tasks to ensure that images
923 do not suffer timeouts on loaded systems.
924 </para>
925 </glossdef>
926 </glossentry>
927
928 <glossentry id='var-BB_TASKHASH'><glossterm>BB_TASKHASH</glossterm>
929 <glossdef>
930 <para>
931 Within an executing task, this variable holds the hash
932 of the task as returned by the currently enabled
933 signature generator.
934 </para>
935 </glossdef>
936 </glossentry>
937
938 <glossentry id='var-BB_VERBOSE_LOGS'><glossterm>BB_VERBOSE_LOGS</glossterm>
939 <glossdef>
940 <para>
941 Controls how verbose BitBake is during builds.
942 If set, shell scripts echo commands and shell script output
943 appears on standard out (stdout).
944 </para>
945 </glossdef>
946 </glossentry>
947
948 <glossentry id='var-BB_WORKERCONTEXT'><glossterm>BB_WORKERCONTEXT</glossterm>
949 <glossdef>
950 <para>
951 Specifies if the current context is executing a task.
952 BitBake sets this variable to "1" when a task is
953 being executed.
954 The value is not set when the task is in server context
955 during parsing or event handling.
956 </para>
957 </glossdef>
958 </glossentry>
959
960
961 <glossentry id='var-BBCLASSEXTEND'><glossterm>BBCLASSEXTEND</glossterm>
962 <glossdef>
963 <para>
964 Allows you to extend a recipe so that it builds variants
965 of the software.
966 Some examples of these variants for recipes from the
967 OpenEmbedded Core metadata are "natives" such as
968 <filename>quilt-native</filename>, which is a copy of
969 Quilt built to run on the build system; "crosses" such
970 as <filename>gcc-cross</filename>, which is a compiler
971 built to run on the build machine but produces binaries
972 that run on the target <filename>MACHINE</filename>;
973 "nativesdk", which targets the SDK machine instead of
974 <filename>MACHINE</filename>; and "mulitlibs" in the form
975 "<filename>multilib:</filename><replaceable>multilib_name</replaceable>".
976 </para>
977
978 <para>
979 To build a different variant of the recipe with a minimal
980 amount of code, it usually is as simple as adding the
981 variable to your recipe.
982 Here are two examples.
983 The "native" variants are from the OpenEmbedded Core
984 metadata:
985 <literallayout class='monospaced'>
986 BBCLASSEXTEND =+ "native nativesdk"
987 BBCLASSEXTEND =+ "multilib:<replaceable>multilib_name</replaceable>"
988 </literallayout>
989 </para>
990 </glossdef>
991 </glossentry>
992
993 <glossentry id='var-BBDEBUG'><glossterm>BBDEBUG</glossterm>
994 <glossdef>
995 <para>
996 Sets the BitBake debug output level to a specific value
997 as incremented by the <filename>-d</filename> command line
998 option.
999 <note>
1000 You must set this variable in the external environment
1001 in order for it to work.
1002 </note>
1003 </para>
1004 </glossdef>
1005 </glossentry>
1006
1007 <glossentry id='var-BBFILE_COLLECTIONS'><glossterm>BBFILE_COLLECTIONS</glossterm>
1008 <glossdef>
1009 <para>Lists the names of configured layers.
1010 These names are used to find the other <filename>BBFILE_*</filename>
1011 variables.
1012 Typically, each layer appends its name to this variable in its
1013 <filename>conf/layer.conf</filename> file.
1014 </para>
1015 </glossdef>
1016 </glossentry>
1017
1018 <glossentry id='var-BBFILE_PATTERN'><glossterm>BBFILE_PATTERN</glossterm>
1019 <glossdef>
1020 <para>Variable that expands to match files from
1021 <link linkend='var-BBFILES'><filename>BBFILES</filename></link>
1022 in a particular layer.
1023 This variable is used in the <filename>conf/layer.conf</filename> file and must
1024 be suffixed with the name of the specific layer (e.g.
1025 <filename>BBFILE_PATTERN_emenlow</filename>).</para>
1026 </glossdef>
1027 </glossentry>
1028
1029 <glossentry id='var-BBFILE_PRIORITY'><glossterm>BBFILE_PRIORITY</glossterm>
1030 <glossdef>
1031 <para>Assigns the priority for recipe files in each layer.</para>
1032 <para>This variable is useful in situations where the same recipe appears in
1033 more than one layer.
1034 Setting this variable allows you to prioritize a
1035 layer against other layers that contain the same recipe - effectively
1036 letting you control the precedence for the multiple layers.
1037 The precedence established through this variable stands regardless of a
1038 recipe's version
1039 (<link linkend='var-PV'><filename>PV</filename></link> variable).
1040 For example, a layer that has a recipe with a higher <filename>PV</filename> value but for
1041 which the <filename>BBFILE_PRIORITY</filename> is set to have a lower precedence still has a
1042 lower precedence.</para>
1043 <para>A larger value for the <filename>BBFILE_PRIORITY</filename> variable results in a higher
1044 precedence.
1045 For example, the value 6 has a higher precedence than the value 5.
1046 If not specified, the <filename>BBFILE_PRIORITY</filename> variable is set based on layer
1047 dependencies (see the
1048 <filename><link linkend='var-LAYERDEPENDS'>LAYERDEPENDS</link></filename> variable for
1049 more information.
1050 The default priority, if unspecified
1051 for a layer with no dependencies, is the lowest defined priority + 1
1052 (or 1 if no priorities are defined).</para>
1053 <tip>
1054 You can use the command <filename>bitbake-layers show-layers</filename> to list
1055 all configured layers along with their priorities.
1056 </tip>
1057 </glossdef>
1058 </glossentry>
1059
1060 <glossentry id='var-BBFILES'><glossterm>BBFILES</glossterm>
1061 <glossdef>
1062 <para>List of recipe files BitBake uses to build software.</para>
1063 </glossdef>
1064 </glossentry>
1065
1066 <glossentry id='var-BBINCLUDED'><glossterm>BBINCLUDED</glossterm>
1067 <glossdef>
1068 <para>
1069 Contains a space-separated list of all of all files that
1070 BitBake's parser included during parsing of the current
1071 file.
1072 </para>
1073 </glossdef>
1074 </glossentry>
1075
1076 <glossentry id='var-BBINCLUDELOGS'><glossterm>BBINCLUDELOGS</glossterm>
1077 <glossdef>
1078 <para>
1079 If set to a value, enables printing the task log when
1080 reporting a failed task.
1081 </para>
1082 </glossdef>
1083 </glossentry>
1084
1085 <glossentry id='var-BBINCLUDELOGS_LINES'><glossterm>BBINCLUDELOGS_LINES</glossterm>
1086 <glossdef>
1087 <para>
1088 If
1089 <link linkend='var-BBINCLUDELOGS'><filename>BBINCLUDELOGS</filename></link>
1090 is set, specifies the maximum number of lines from the
1091 task log file to print when reporting a failed task.
1092 If you do not set <filename>BBINCLUDELOGS_LINES</filename>,
1093 the entire log is printed.
1094 </para>
1095 </glossdef>
1096 </glossentry>
1097
1098 <glossentry id='var-BBLAYERS'><glossterm>BBLAYERS</glossterm>
1099 <glossdef>
1100 <para>Lists the layers to enable during the build.
1101 This variable is defined in the <filename>bblayers.conf</filename> configuration
1102 file in the build directory.
1103 Here is an example:
1104 <literallayout class='monospaced'>
1105 BBLAYERS = " \
1106 /home/scottrif/poky/meta \
1107 /home/scottrif/poky/meta-yocto \
1108 /home/scottrif/poky/meta-yocto-bsp \
1109 /home/scottrif/poky/meta-mykernel \
1110 "
1111
1112 </literallayout>
1113 This example enables four layers, one of which is a custom, user-defined layer
1114 named <filename>meta-mykernel</filename>.
1115 </para>
1116 </glossdef>
1117 </glossentry>
1118
1119 <glossentry id='var-BBLAYERS_FETCH_DIR'><glossterm>BBLAYERS_FETCH_DIR</glossterm>
1120 <glossdef>
1121 <para>
1122 Sets the base location where layers are stored.
1123 By default, this location is set to
1124 <filename>${COREBASE}</filename>.
1125 This setting is used in conjunction with
1126 <filename>bitbake-layers layerindex-fetch</filename> and
1127 tells <filename>bitbake-layers</filename> where to place
1128 the fetched layers.
1129 </para>
1130 </glossdef>
1131 </glossentry>
1132
1133 <glossentry id='var-BBMASK'><glossterm>BBMASK</glossterm>
1134 <glossdef>
1135 <para>
1136 Prevents BitBake from processing recipes and recipe
1137 append files.
1138 </para>
1139
1140 <para>
1141 You can use the <filename>BBMASK</filename> variable
1142 to "hide" these <filename>.bb</filename> and
1143 <filename>.bbappend</filename> files.
1144 BitBake ignores any recipe or recipe append files that
1145 match the expression.
1146 It is as if BitBake does not see them at all.
1147 Consequently, matching files are not parsed or otherwise
1148 used by BitBake.</para>
1149 <para>
1150 The value you provide is passed to Python's regular
1151 expression compiler.
1152 The expression is compared against the full paths to
1153 the files.
1154 For complete syntax information, see Python's
1155 documentation at
1156 <ulink url='http://docs.python.org/release/2.3/lib/re-syntax.html'></ulink>.
1157 </para>
1158
1159 <para>
1160 The following example uses a complete regular expression
1161 to tell BitBake to ignore all recipe and recipe append
1162 files in the <filename>meta-ti/recipes-misc/</filename>
1163 directory:
1164 <literallayout class='monospaced'>
1165 BBMASK = "meta-ti/recipes-misc/"
1166 </literallayout>
1167 If you want to mask out multiple directories or recipes,
1168 use the vertical bar to separate the regular expression
1169 fragments.
1170 This next example masks out multiple directories and
1171 individual recipes:
1172 <literallayout class='monospaced'>
1173 BBMASK = "meta-ti/recipes-misc/|meta-ti/recipes-ti/packagegroup/"
1174 BBMASK .= "|.*meta-oe/recipes-support/"
1175 BBMASK .= "|.*openldap"
1176 BBMASK .= "|.*opencv"
1177 BBMASK .= "|.*lzma"
1178 </literallayout>
1179 Notice how the vertical bar is used to append the fragments.
1180 <note>
1181 When specifying a directory name, use the trailing
1182 slash character to ensure you match just that directory
1183 name.
1184 </note>
1185 </para>
1186 </glossdef>
1187 </glossentry>
1188
1189 <glossentry id='var-BBPATH'><glossterm>BBPATH</glossterm>
1190 <glossdef>
1191 <para>
1192 Used by BitBake to locate class
1193 (<filename>.bbclass</filename>) and configuration
1194 (<filename>.conf</filename>) files.
1195 This variable is analogous to the
1196 <filename>PATH</filename> variable.
1197 </para>
1198
1199 <para>
1200 If you run BitBake from a directory outside of the
1201 build directory,
1202 you must be sure to set
1203 <filename>BBPATH</filename> to point to the
1204 build directory.
1205 Set the variable as you would any environment variable
1206 and then run BitBake:
1207 <literallayout class='monospaced'>
1208 $ BBPATH="<replaceable>build_directory</replaceable>"
1209 $ export BBPATH
1210 $ bitbake <replaceable>target</replaceable>
1211 </literallayout>
1212 </para>
1213 </glossdef>
1214 </glossentry>
1215
1216 <glossentry id='var-BBSERVER'><glossterm>BBSERVER</glossterm>
1217 <glossdef>
1218 <para>
1219 Points to the server that runs memory-resident BitBake.
1220 The variable is only used when you employ memory-resident
1221 BitBake.
1222 </para>
1223 </glossdef>
1224 </glossentry>
1225
Patrick Williamsf1e5d692016-03-30 15:21:19 -05001226 <glossentry id='var-BBTARGETS'><glossterm>BBTARGETS</glossterm>
1227 <glossdef>
1228 <para>
1229 Allows you to use a configuration file to add to the list
1230 of command-line target recipes you want to build.
1231 </para>
1232 </glossdef>
1233 </glossentry>
1234
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001235 <glossentry id='var-BBVERSIONS'><glossterm>BBVERSIONS</glossterm>
1236 <glossdef>
1237 <para>
1238 Allows a single recipe to build multiple versions of a
1239 project from a single recipe file.
1240 You also able to specify conditional metadata
1241 using the
1242 <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
1243 mechanism for a single version or for an optionally named
1244 range of versions.
1245 </para>
1246
1247 <para>
1248 For more information on <filename>BBVERSIONS</filename>,
1249 see the
1250 "<link linkend='variants-class-extension-mechanism'>Variants - Class Extension Mechanism</link>"
1251 section.
1252 </para>
1253 </glossdef>
1254 </glossentry>
1255
1256 <glossentry id='var-BITBAKE_UI'><glossterm>BITBAKE_UI</glossterm>
1257 <glossdef>
1258 <para>
1259 Used to specify the UI module to use when running BitBake.
1260 Using this variable is equivalent to using the
1261 <filename>-u</filename> command-line option.
1262 <note>
1263 You must set this variable in the external environment
1264 in order for it to work.
1265 </note>
1266 </para>
1267 </glossdef>
1268 </glossentry>
1269
1270 <glossentry id='var-BUILDNAME'><glossterm>BUILDNAME</glossterm>
1271 <glossdef>
1272 <para>
1273 A name assigned to the build.
1274 The name defaults to a datetime stamp of when the build was
1275 started but can be defined by the metadata.
1276 </para>
1277 </glossdef>
1278 </glossentry>
1279
1280 <glossentry id='var-BZRDIR'><glossterm>BZRDIR</glossterm>
1281 <glossdef>
1282 <para>
1283 The directory in which files checked out of a Bazaar
1284 system are stored.
1285 </para>
1286 </glossdef>
1287 </glossentry>
1288
1289 </glossdiv>
1290
1291 <glossdiv id='var-glossary-c'><title>C</title>
1292
1293 <glossentry id='var-CACHE'><glossterm>CACHE</glossterm>
1294 <glossdef>
1295 <para>
1296 Specifies the directory BitBake uses to store a cache
1297 of the metadata so it does not need to be parsed every
1298 time BitBake is started.
1299 </para>
1300 </glossdef>
1301 </glossentry>
1302
1303 <glossentry id='var-CVSDIR'><glossterm>CVSDIR</glossterm>
1304 <glossdef>
1305 <para>
1306 The directory in which files checked out under the
1307 CVS system are stored.
1308 </para>
1309 </glossdef>
1310 </glossentry>
1311
1312 </glossdiv>
1313
1314 <glossdiv id='var-glossary-d'><title>D</title>
1315
1316 <glossentry id='var-DEFAULT_PREFERENCE'><glossterm>DEFAULT_PREFERENCE</glossterm>
1317 <glossdef>
1318 <para>
1319 Specifies a weak bias for recipe selection priority.
1320 </para>
1321 <para>
1322 The most common usage of this is variable is to set
1323 it to "-1" within a recipe for a development version of a
1324 piece of software.
1325 Using the variable in this way causes the stable version
1326 of the recipe to build by default in the absence of
1327 <filename><link linkend='var-PREFERRED_VERSION'>PREFERRED_VERSION</link></filename>
1328 being used to build the development version.
1329 </para>
1330 <note>
1331 The bias provided by <filename>DEFAULT_PREFERENCE</filename>
1332 is weak and is overridden by
1333 <filename><link linkend='var-BBFILE_PRIORITY'>BBFILE_PRIORITY</link></filename>
1334 if that variable is different between two layers
1335 that contain different versions of the same recipe.
1336 </note>
1337 </glossdef>
1338 </glossentry>
1339
1340 <glossentry id='var-DEPENDS'><glossterm>DEPENDS</glossterm>
1341 <glossdef>
1342 <para>
1343 Lists a recipe's build-time dependencies
1344 (i.e. other recipe files).
1345 </para>
1346
1347 <para>
1348 Consider this simple example for two recipes named "a" and
1349 "b" that produce similarly named packages.
1350 In this example, the <filename>DEPENDS</filename>
1351 statement appears in the "a" recipe:
1352 <literallayout class='monospaced'>
1353 DEPENDS = "b"
1354 </literallayout>
1355 Here, the dependency is such that the
1356 <filename>do_configure</filename> task for recipe "a"
1357 depends on the <filename>do_populate_sysroot</filename>
1358 task of recipe "b".
1359 This means anything that recipe "b" puts into sysroot
1360 is available when recipe "a" is configuring itself.
1361 </para>
1362
1363 <para>
1364 For information on runtime dependencies, see the
1365 <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
1366 variable.
1367 </para>
1368 </glossdef>
1369 </glossentry>
1370
1371 <glossentry id='var-DESCRIPTION'><glossterm>DESCRIPTION</glossterm>
1372 <glossdef>
1373 <para>
1374 A long description for the recipe.
1375 </para>
1376 </glossdef>
1377 </glossentry>
1378
1379 <glossentry id='var-DL_DIR'><glossterm>DL_DIR</glossterm>
1380 <glossdef>
1381 <para>
1382 The central download directory used by the build process to
1383 store downloads.
1384 By default, <filename>DL_DIR</filename> gets files
1385 suitable for mirroring for everything except Git
1386 repositories.
1387 If you want tarballs of Git repositories, use the
1388 <link linkend='var-BB_GENERATE_MIRROR_TARBALLS'><filename>BB_GENERATE_MIRROR_TARBALLS</filename></link>
1389 variable.
1390 </para>
1391 </glossdef>
1392
1393 </glossentry>
1394 </glossdiv>
1395
1396 <glossdiv id='var-glossary-e'><title>E</title>
1397
1398 <glossentry id='var-EXCLUDE_FROM_WORLD'><glossterm>EXCLUDE_FROM_WORLD</glossterm>
1399 <glossdef>
1400 <para>
1401 Directs BitBake to exclude a recipe from world builds (i.e.
1402 <filename>bitbake world</filename>).
1403 During world builds, BitBake locates, parses and builds all
1404 recipes found in every layer exposed in the
1405 <filename>bblayers.conf</filename> configuration file.
1406 </para>
1407
1408 <para>
1409 To exclude a recipe from a world build using this variable,
1410 set the variable to "1" in the recipe.
1411 </para>
1412
1413 <note>
1414 Recipes added to <filename>EXCLUDE_FROM_WORLD</filename>
1415 may still be built during a world build in order to satisfy
1416 dependencies of other recipes.
1417 Adding a recipe to <filename>EXCLUDE_FROM_WORLD</filename>
1418 only ensures that the recipe is not explicitly added
1419 to the list of build targets in a world build.
1420 </note>
1421 </glossdef>
1422 </glossentry>
1423
1424 </glossdiv>
1425
1426 <glossdiv id='var-glossary-f'><title>F</title>
1427
1428 <glossentry id='var-FAKEROOT'><glossterm>FAKEROOT</glossterm>
1429 <glossdef>
1430 <para>
1431 Contains the command to use when running a shell script
1432 in a fakeroot environment.
1433 The <filename>FAKEROOT</filename> variable is obsolete
1434 and has been replaced by the other
1435 <filename>FAKEROOT*</filename> variables.
1436 See these entries in the glossary for more information.
1437 </para>
1438 </glossdef>
1439 </glossentry>
1440
1441 <glossentry id='var-FAKEROOTBASEENV'><glossterm>FAKEROOTBASEENV</glossterm>
1442 <glossdef>
1443 <para>
1444 Lists environment variables to set when executing
1445 the command defined by
1446 <link linkend='var-FAKEROOTCMD'><filename>FAKEROOTCMD</filename></link>
1447 that starts the bitbake-worker process
1448 in the fakeroot environment.
1449 </para>
1450 </glossdef>
1451 </glossentry>
1452
1453 <glossentry id='var-FAKEROOTCMD'><glossterm>FAKEROOTCMD</glossterm>
1454 <glossdef>
1455 <para>
1456 Contains the command that starts the bitbake-worker
1457 process in the fakeroot environment.
1458 </para>
1459 </glossdef>
1460 </glossentry>
1461
1462 <glossentry id='var-FAKEROOTDIRS'><glossterm>FAKEROOTDIRS</glossterm>
1463 <glossdef>
1464 <para>
1465 Lists directories to create before running a task in
1466 the fakeroot environment.
1467 </para>
1468 </glossdef>
1469 </glossentry>
1470
1471 <glossentry id='var-FAKEROOTENV'><glossterm>FAKEROOTENV</glossterm>
1472 <glossdef>
1473 <para>
1474 Lists environment variables to set when running a task
1475 in the fakeroot environment.
1476 For additional information on environment variables and
1477 the fakeroot environment, see the
1478 <link linkend='var-FAKEROOTBASEENV'><filename>FAKEROOTBASEENV</filename></link>
1479 variable.
1480 </para>
1481 </glossdef>
1482 </glossentry>
1483
1484 <glossentry id='var-FAKEROOTNOENV'><glossterm>FAKEROOTNOENV</glossterm>
1485 <glossdef>
1486 <para>
1487 Lists environment variables to set when running a task
1488 that is not in the fakeroot environment.
1489 For additional information on environment variables and
1490 the fakeroot environment, see the
1491 <link linkend='var-FAKEROOTENV'><filename>FAKEROOTENV</filename></link>
1492 variable.
1493 </para>
1494 </glossdef>
1495 </glossentry>
1496
1497 <glossentry id='var-FETCHCMD'><glossterm>FETCHCMD</glossterm>
1498 <glossdef>
1499 <para>
1500 Defines the command the BitBake fetcher module
1501 executes when running fetch operations.
1502 You need to use an override suffix when you use the
1503 variable (e.g. <filename>FETCHCMD_git</filename>
1504 or <filename>FETCHCMD_svn</filename>).
1505 </para>
1506 </glossdef>
1507 </glossentry>
1508
1509 <glossentry id='var-FILE'><glossterm>FILE</glossterm>
1510 <glossdef>
1511 <para>
1512 Points at the current file.
1513 BitBake sets this variable during the parsing process
1514 to identify the file being parsed.
1515 BitBake also sets this variable when a recipe is being
1516 executed to identify the recipe file.
1517 </para>
1518 </glossdef>
1519 </glossentry>
1520
1521 <glossentry id='var-FILESDIR'><glossterm>FILESDIR</glossterm>
1522 <glossdef>
1523 <para>
1524 Specifies directories BitBake uses when searching for
1525 patches and files.
1526 The "local" fetcher module uses these directories when
1527 handling <filename>file://</filename> URLs if the file
1528 was not found using
1529 <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>.
1530 <note>
1531 The <filename>FILESDIR</filename> variable is
1532 deprecated and you should use
1533 <filename>FILESPATH</filename> in all new code.
1534 </note>
1535 </para>
1536 </glossdef>
1537 </glossentry>
1538
1539 <glossentry id='var-FILESPATH'><glossterm>FILESPATH</glossterm>
1540 <glossdef>
1541 <para>
1542 Specifies directories BitBake uses when searching for
1543 patches and files.
1544 The "local" fetcher module uses these directories when
1545 handling <filename>file://</filename> URLs.
1546 The variable behaves like a shell <filename>PATH</filename>
1547 environment variable.
1548 The value is a colon-separated list of directories that
1549 are searched left-to-right in order.
1550 </para>
1551 </glossdef>
1552 </glossentry>
1553
1554 </glossdiv>
1555
1556
1557 <glossdiv id='var-glossary-g'><title>G</title>
1558
1559 <glossentry id='var-GITDIR'><glossterm>GITDIR</glossterm>
1560 <glossdef>
1561 <para>
1562 The directory in which a local copy of a Git repository
1563 is stored when it is cloned.
1564 </para>
1565 </glossdef>
1566 </glossentry>
1567
1568 </glossdiv>
1569
1570
1571 <glossdiv id='var-glossary-h'><title>H</title>
1572
1573 <glossentry id='var-HGDIR'><glossterm>HGDIR</glossterm>
1574 <glossdef>
1575 <para>
1576 The directory in which files checked out of a Mercurial
1577 system are stored.
1578 </para>
1579 </glossdef>
1580 </glossentry>
1581
1582 <glossentry id='var-HOMEPAGE'><glossterm>HOMEPAGE</glossterm>
1583 <glossdef>
1584 <para>Website where more information about the software the recipe is building
1585 can be found.</para>
1586 </glossdef>
1587 </glossentry>
1588
1589 </glossdiv>
1590
1591 <glossdiv id='var-glossary-i'><title>I</title>
1592
1593 <glossentry id='var-INHERIT'><glossterm>INHERIT</glossterm>
1594 <glossdef>
1595 <para>
1596 Causes the named class to be inherited at
1597 this point during parsing.
1598 The variable is only valid in configuration files.
1599 </para>
1600 </glossdef>
1601 </glossentry>
1602
1603 </glossdiv>
1604
1605<!--
1606 <glossdiv id='var-glossary-j'><title>J</title>
1607 </glossdiv>
1608
1609 <glossdiv id='var-glossary-k'><title>K</title>
1610 </glossdiv>
1611-->
1612
1613 <glossdiv id='var-glossary-l'><title>L</title>
1614
1615 <glossentry id='var-LAYERDEPENDS'><glossterm>LAYERDEPENDS</glossterm>
1616 <glossdef>
1617 <para>Lists the layers, separated by spaces, upon which this recipe depends.
1618 Optionally, you can specify a specific layer version for a dependency
1619 by adding it to the end of the layer name with a colon, (e.g. "anotherlayer:3"
1620 to be compared against
1621 <link linkend='var-LAYERVERSION'><filename>LAYERVERSION</filename></link><filename>_anotherlayer</filename>
1622 in this case).
1623 BitBake produces an error if any dependency is missing or
1624 the version numbers do not match exactly (if specified).</para>
1625 <para>
1626 You use this variable in the <filename>conf/layer.conf</filename> file.
1627 You must also use the specific layer name as a suffix
1628 to the variable (e.g. <filename>LAYERDEPENDS_mylayer</filename>).</para>
1629 </glossdef>
1630 </glossentry>
1631
1632 <glossentry id='var-LAYERDIR'><glossterm>LAYERDIR</glossterm>
1633 <glossdef>
1634 <para>When used inside the <filename>layer.conf</filename> configuration
1635 file, this variable provides the path of the current layer.
1636 This variable is not available outside of <filename>layer.conf</filename>
1637 and references are expanded immediately when parsing of the file completes.</para>
1638 </glossdef>
1639 </glossentry>
1640
1641 <glossentry id='var-LAYERVERSION'><glossterm>LAYERVERSION</glossterm>
1642 <glossdef>
1643 <para>Optionally specifies the version of a layer as a single number.
1644 You can use this variable within
1645 <link linkend='var-LAYERDEPENDS'><filename>LAYERDEPENDS</filename></link>
1646 for another layer in order to depend on a specific version
1647 of the layer.</para>
1648 <para>
1649 You use this variable in the <filename>conf/layer.conf</filename> file.
1650 You must also use the specific layer name as a suffix
1651 to the variable (e.g. <filename>LAYERDEPENDS_mylayer</filename>).</para>
1652 </glossdef>
1653 </glossentry>
1654
1655 <glossentry id='var-LICENSE'><glossterm>LICENSE</glossterm>
1656 <glossdef>
1657 <para>
1658 The list of source licenses for the recipe.
1659 </para>
1660 </glossdef>
1661 </glossentry>
1662
1663 </glossdiv>
1664
1665 <glossdiv id='var-glossary-m'><title>M</title>
1666
1667 <glossentry id='var-MIRRORS'><glossterm>MIRRORS</glossterm>
1668 <glossdef>
1669 <para>
1670 Specifies additional paths from which BitBake gets source code.
1671 When the build system searches for source code, it first
1672 tries the local download directory.
1673 If that location fails, the build system tries locations
1674 defined by
1675 <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>,
1676 the upstream source, and then locations specified by
1677 <filename>MIRRORS</filename> in that order.
1678 </para>
1679 </glossdef>
1680 </glossentry>
1681
1682 <glossentry id='var-MULTI_PROVIDER_WHITELIST'><glossterm>MULTI_PROVIDER_WHITELIST</glossterm>
1683 <glossdef>
1684 <para>
1685 Allows you to suppress BitBake warnings caused when
1686 building two separate recipes that provide the same
1687 output.
1688 </para>
1689
1690 <para>
1691 Bitbake normally issues a warning when building two
1692 different recipes where each provides the same output.
1693 This scenario is usually something the user does not
1694 want.
1695 However, cases do exist where it makes sense, particularly
1696 in the <filename>virtual/*</filename> namespace.
1697 You can use this variable to suppress BitBake's warnings.
1698 </para>
1699
1700 <para>
1701 To use the variable, list provider names (e.g.
1702 recipe names, <filename>virtual/kernel</filename>,
1703 and so forth).
1704 </para>
1705 </glossdef>
1706 </glossentry>
1707
1708 </glossdiv>
1709
1710<!--
1711 <glossdiv id='var-glossary-n'><title>N</title>
1712 </glossdiv>
1713-->
1714
1715 <glossdiv id='var-glossary-o'><title>O</title>
1716
1717 <glossentry id='var-OVERRIDES'><glossterm>OVERRIDES</glossterm>
1718 <glossdef>
1719 <para>
1720 BitBake uses <filename>OVERRIDES</filename> to control
1721 what variables are overridden after BitBake parses
1722 recipes and configuration files.
1723 </para>
1724
1725 <para>
1726 Following is a simple example that uses an overrides
1727 list based on machine architectures:
1728 <literallayout class='monospaced'>
1729 OVERRIDES = "arm:x86:mips:powerpc"
1730 </literallayout>
1731 You can find information on how to use
1732 <filename>OVERRIDES</filename> in the
1733 "<link linkend='conditional-syntax-overrides'>Conditional Syntax (Overrides)</link>"
1734 section.
1735 </para>
1736 </glossdef>
1737 </glossentry>
1738 </glossdiv>
1739
1740 <glossdiv id='var-glossary-p'><title>P</title>
1741
1742 <glossentry id='var-PACKAGES'><glossterm>PACKAGES</glossterm>
1743 <glossdef>
1744 <para>The list of packages the recipe creates.
1745 </para>
1746 </glossdef>
1747 </glossentry>
1748
1749 <glossentry id='var-PACKAGES_DYNAMIC'><glossterm>PACKAGES_DYNAMIC</glossterm>
1750 <glossdef>
1751 <para>
1752 A promise that your recipe satisfies runtime dependencies
1753 for optional modules that are found in other recipes.
1754 <filename>PACKAGES_DYNAMIC</filename>
1755 does not actually satisfy the dependencies, it only states that
1756 they should be satisfied.
1757 For example, if a hard, runtime dependency
1758 (<link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>)
1759 of another package is satisfied during the build
1760 through the <filename>PACKAGES_DYNAMIC</filename>
1761 variable, but a package with the module name is never actually
1762 produced, then the other package will be broken.
1763 </para>
1764 </glossdef>
1765 </glossentry>
1766
1767 <glossentry id='var-PE'><glossterm>PE</glossterm>
1768 <glossdef>
1769 <para>
1770 The epoch of the recipe.
1771 By default, this variable is unset.
1772 The variable is used to make upgrades possible when the
1773 versioning scheme changes in some backwards incompatible
1774 way.
1775 </para>
1776 </glossdef>
1777 </glossentry>
1778
1779 <glossentry id='var-PERSISTENT_DIR'><glossterm>PERSISTENT_DIR</glossterm>
1780 <glossdef>
1781 <para>
1782 Specifies the directory BitBake uses to store data that
1783 should be preserved between builds.
1784 In particular, the data stored is the data that uses
1785 BitBake's persistent data API and the data used by the
1786 PR Server and PR Service.
1787 </para>
1788 </glossdef>
1789 </glossentry>
1790
1791 <glossentry id='var-PF'><glossterm>PF</glossterm>
1792 <glossdef>
1793 <para>
1794 Specifies the recipe or package name and includes all version and revision
1795 numbers (i.e. <filename>eglibc-2.13-r20+svnr15508/</filename> and
1796 <filename>bash-4.2-r1/</filename>).
1797 </para>
1798 </glossdef>
1799 </glossentry>
1800
1801 <glossentry id='var-PN'><glossterm>PN</glossterm>
1802 <glossdef>
1803 <para>The recipe name.</para>
1804 </glossdef>
1805 </glossentry>
1806
1807 <glossentry id='var-PR'><glossterm>PR</glossterm>
1808 <glossdef>
1809 <para>The revision of the recipe.
1810 </para>
1811 </glossdef>
1812 </glossentry>
1813
1814 <glossentry id='var-PREFERRED_PROVIDER'><glossterm>PREFERRED_PROVIDER</glossterm>
1815 <glossdef>
1816 <para>
1817 Determines which recipe should be given preference when
1818 multiple recipes provide the same item.
1819 You should always suffix the variable with the name of the
1820 provided item, and you should set it to the
1821 <link linkend='var-PN'><filename>PN</filename></link>
1822 of the recipe to which you want to give precedence.
1823 Some examples:
1824 <literallayout class='monospaced'>
1825 PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
1826 PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
1827 PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
1828 </literallayout>
1829 </para>
1830 </glossdef>
1831 </glossentry>
1832
1833 <glossentry id='var-PREFERRED_PROVIDERS'><glossterm>PREFERRED_PROVIDERS</glossterm>
1834 <glossdef>
1835 <para>
1836 Determines which recipe should be given preference for
1837 cases where multiple recipes provide the same item.
1838 Functionally,
1839 <filename>PREFERRED_PROVIDERS</filename> is identical to
1840 <link linkend='var-PREFERRED_PROVIDER'><filename>PREFERRED_PROVIDER</filename></link>.
1841 However, the <filename>PREFERRED_PROVIDERS</filename>
1842 variable lets you define preferences for multiple
1843 situations using the following form:
1844 <literallayout class='monospaced'>
1845 PREFERRED_PROVIDERS = "xxx:yyy aaa:bbb ..."
1846 </literallayout>
1847 This form is a convenient replacement for the following:
1848 <literallayout class='monospaced'>
1849 PREFERRED_PROVIDER_xxx = "yyy"
1850 PREFERRED_PROVIDER_aaa = "bbb"
1851 </literallayout>
1852 </para>
1853 </glossdef>
1854 </glossentry>
1855
1856 <glossentry id='var-PREFERRED_VERSION'><glossterm>PREFERRED_VERSION</glossterm>
1857 <glossdef>
1858 <para>
1859 If there are multiple versions of recipes available, this
1860 variable determines which recipe should be given preference.
1861 You must always suffix the variable with the
1862 <link linkend='var-PN'><filename>PN</filename></link>
1863 you want to select, and you should set
1864 <link linkend='var-PV'><filename>PV</filename></link>
1865 accordingly for precedence.
1866 You can use the "<filename>%</filename>" character as a
1867 wildcard to match any number of characters, which can be
1868 useful when specifying versions that contain long revision
1869 numbers that could potentially change.
1870 Here are two examples:
1871 <literallayout class='monospaced'>
1872 PREFERRED_VERSION_python = "2.7.3"
1873 PREFERRED_VERSION_linux-yocto = "3.10%"
1874 </literallayout>
1875 </para>
1876 </glossdef>
1877 </glossentry>
1878
1879 <glossentry id='var-PREMIRRORS'><glossterm>PREMIRRORS</glossterm>
1880 <glossdef>
1881 <para>
1882 Specifies additional paths from which BitBake gets source code.
1883 When the build system searches for source code, it first
1884 tries the local download directory.
1885 If that location fails, the build system tries locations
1886 defined by <filename>PREMIRRORS</filename>, the upstream
1887 source, and then locations specified by
1888 <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
1889 in that order.
1890 </para>
1891
1892 <para>
1893 Typically, you would add a specific server for the
1894 build system to attempt before any others by adding
1895 something like the following to your configuration:
1896 <literallayout class='monospaced'>
1897 PREMIRRORS_prepend = "\
1898 git://.*/.* http://www.yoctoproject.org/sources/ \n \
1899 ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
1900 http://.*/.* http://www.yoctoproject.org/sources/ \n \
1901 https://.*/.* http://www.yoctoproject.org/sources/ \n"
1902 </literallayout>
1903 These changes cause the build system to intercept
1904 Git, FTP, HTTP, and HTTPS requests and direct them to
1905 the <filename>http://</filename> sources mirror.
1906 You can use <filename>file://</filename> URLs to point
1907 to local directories or network shares as well.
1908 </para>
1909 </glossdef>
1910 </glossentry>
1911
1912 <glossentry id='var-PROVIDES'><glossterm>PROVIDES</glossterm>
1913 <glossdef>
1914 <para>
1915 A list of aliases by which a particular recipe can be
1916 known.
1917 By default, a recipe's own
1918 <filename><link linkend='var-PN'>PN</link></filename>
1919 is implicitly already in its <filename>PROVIDES</filename>
1920 list.
1921 If a recipe uses <filename>PROVIDES</filename>, the
1922 additional aliases are synonyms for the recipe and can
1923 be useful satisfying dependencies of other recipes during
1924 the build as specified by
1925 <filename><link linkend='var-DEPENDS'>DEPENDS</link></filename>.
1926 </para>
1927
1928 <para>
1929 Consider the following example
1930 <filename>PROVIDES</filename> statement from a recipe
1931 file <filename>libav_0.8.11.bb</filename>:
1932 <literallayout class='monospaced'>
1933 PROVIDES += "libpostproc"
1934 </literallayout>
1935 The <filename>PROVIDES</filename> statement results in
1936 the "libav" recipe also being known as "libpostproc".
1937 </para>
1938 </glossdef>
1939 </glossentry>
1940
1941 <glossentry id='var-PRSERV_HOST'><glossterm>PRSERV_HOST</glossterm>
1942 <glossdef>
1943 <para>
1944 The network based
1945 <link linkend='var-PR'><filename>PR</filename></link>
1946 service host and port.
1947 </para>
1948
1949 <para>
1950 Following is an example of how the <filename>PRSERV_HOST</filename> variable is
1951 set:
1952 <literallayout class='monospaced'>
1953 PRSERV_HOST = "localhost:0"
1954 </literallayout>
1955 You must set the variable if you want to automatically
1956 start a local PR service.
1957 You can set <filename>PRSERV_HOST</filename> to other
1958 values to use a remote PR service.
1959 </para>
1960 </glossdef>
1961 </glossentry>
1962
1963 <glossentry id='var-PV'><glossterm>PV</glossterm>
1964 <glossdef>
1965 <para>The version of the recipe.
1966 </para>
1967 </glossdef>
1968 </glossentry>
1969
1970 </glossdiv>
1971
1972<!--
1973 <glossdiv id='var-glossary-q'><title>Q</title>
1974 </glossdiv>
1975-->
1976
1977 <glossdiv id='var-glossary-r'><title>R</title>
1978
1979 <glossentry id='var-RDEPENDS'><glossterm>RDEPENDS</glossterm>
1980 <glossdef>
1981 <para>
1982 Lists a package's runtime dependencies (i.e. other packages)
1983 that must be installed in order for the built package to run
1984 correctly.
1985 If a package in this list cannot be found during the build,
1986 you will get a build error.
1987 </para>
1988
1989 <para>
1990 Because the <filename>RDEPENDS</filename> variable applies
1991 to packages being built, you should always use the variable
1992 in a form with an attached package name.
1993 For example, suppose you are building a development package
1994 that depends on the <filename>perl</filename> package.
1995 In this case, you would use the following
1996 <filename>RDEPENDS</filename> statement:
1997 <literallayout class='monospaced'>
1998 RDEPENDS_${PN}-dev += "perl"
1999 </literallayout>
2000 In the example, the development package depends on
2001 the <filename>perl</filename> package.
2002 Thus, the <filename>RDEPENDS</filename> variable has the
2003 <filename>${PN}-dev</filename> package name as part of the
2004 variable.
2005 </para>
2006
2007 <para>
2008 BitBake supports specifying versioned dependencies.
2009 Although the syntax varies depending on the packaging
2010 format, BitBake hides these differences from you.
2011 Here is the general syntax to specify versions with
2012 the <filename>RDEPENDS</filename> variable:
2013 <literallayout class='monospaced'>
2014 RDEPENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
2015 </literallayout>
2016 For <filename>operator</filename>, you can specify the
2017 following:
2018 <literallayout class='monospaced'>
2019 =
2020 &lt;
2021 &gt;
2022 &lt;=
2023 &gt;=
2024 </literallayout>
2025 For example, the following sets up a dependency on version
2026 1.2 or greater of the package <filename>foo</filename>:
2027 <literallayout class='monospaced'>
2028 RDEPENDS_${PN} = "foo (>= 1.2)"
2029 </literallayout>
2030 </para>
2031
2032 <para>
2033 For information on build-time dependencies, see the
2034 <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
2035 variable.
2036 </para>
2037 </glossdef>
2038 </glossentry>
2039
2040 <glossentry id='var-RPROVIDES'><glossterm>RPROVIDES</glossterm>
2041 <glossdef>
2042 <para>
2043 A list of package name aliases that a package also provides.
2044 These aliases are useful for satisfying runtime dependencies
2045 of other packages both during the build and on the target
2046 (as specified by
2047 <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>).
2048 </para>
2049 <para>
2050 As with all package-controlling variables, you must always
2051 use the variable in conjunction with a package name override.
2052 Here is an example:
2053 <literallayout class='monospaced'>
2054 RPROVIDES_${PN} = "widget-abi-2"
2055 </literallayout>
2056 </para>
2057 </glossdef>
2058 </glossentry>
2059
2060 <glossentry id='var-RRECOMMENDS'><glossterm>RRECOMMENDS</glossterm>
2061 <glossdef>
2062 <para>
2063 A list of packages that extends the usability of a package
2064 being built.
2065 The package being built does not depend on this list of
2066 packages in order to successfully build, but needs them for
2067 the extended usability.
2068 To specify runtime dependencies for packages, see the
2069 <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>
2070 variable.
2071 </para>
2072
2073 <para>
2074 BitBake supports specifying versioned recommends.
2075 Although the syntax varies depending on the packaging
2076 format, BitBake hides these differences from you.
2077 Here is the general syntax to specify versions with
2078 the <filename>RRECOMMENDS</filename> variable:
2079 <literallayout class='monospaced'>
2080 RRECOMMENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
2081 </literallayout>
2082 For <filename>operator</filename>, you can specify the
2083 following:
2084 <literallayout class='monospaced'>
2085 =
2086 &lt;
2087 &gt;
2088 &lt;=
2089 &gt;=
2090 </literallayout>
2091 For example, the following sets up a recommend on version
2092 1.2 or greater of the package <filename>foo</filename>:
2093 <literallayout class='monospaced'>
2094 RRECOMMENDS_${PN} = "foo (>= 1.2)"
2095 </literallayout>
2096 </para>
2097 </glossdef>
2098 </glossentry>
2099
2100 </glossdiv>
2101
2102 <glossdiv id='var-glossary-s'><title>S</title>
2103
2104 <glossentry id='var-SECTION'><glossterm>SECTION</glossterm>
2105 <glossdef>
2106 <para>The section in which packages should be categorized.</para>
2107 </glossdef>
2108 </glossentry>
2109
2110 <glossentry id='var-SRC_URI'><glossterm>SRC_URI</glossterm>
2111 <glossdef>
2112 <para>
2113 The list of source files - local or remote.
2114 This variable tells BitBake which bits
2115 to pull for the build and how to pull them.
2116 For example, if the recipe or append file needs to
2117 fetch a single tarball from the Internet, the recipe or
2118 append file uses a <filename>SRC_URI</filename>
2119 entry that specifies that tarball.
2120 On the other hand, if the recipe or append file needs to
2121 fetch a tarball and include a custom file, the recipe or
2122 append file needs an <filename>SRC_URI</filename> variable
2123 that specifies all those sources.</para>
2124 <para>The following list explains the available URI protocols:
2125 <itemizedlist>
2126 <listitem><para><emphasis><filename>file://</filename> -</emphasis>
2127 Fetches files, which are usually files shipped with
2128 the metadata,
2129 from the local machine.
2130 The path is relative to the
2131 <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>
2132 variable.</para></listitem>
2133 <listitem><para><emphasis><filename>bzr://</filename> -</emphasis> Fetches files from a
2134 Bazaar revision control repository.</para></listitem>
2135 <listitem><para><emphasis><filename>git://</filename> -</emphasis> Fetches files from a
2136 Git revision control repository.</para></listitem>
2137 <listitem><para><emphasis><filename>osc://</filename> -</emphasis> Fetches files from
2138 an OSC (OpenSUSE Build service) revision control repository.</para></listitem>
2139 <listitem><para><emphasis><filename>repo://</filename> -</emphasis> Fetches files from
2140 a repo (Git) repository.</para></listitem>
2141 <listitem><para><emphasis><filename>http://</filename> -</emphasis> Fetches files from
2142 the Internet using HTTP.</para></listitem>
2143 <listitem><para><emphasis><filename>https://</filename> -</emphasis> Fetches files
2144 from the Internet using HTTPS.</para></listitem>
2145 <listitem><para><emphasis><filename>ftp://</filename> -</emphasis> Fetches files
2146 from the Internet using FTP.</para></listitem>
2147 <listitem><para><emphasis><filename>cvs://</filename> -</emphasis> Fetches files from
2148 a CVS revision control repository.</para></listitem>
2149 <listitem><para><emphasis><filename>hg://</filename> -</emphasis> Fetches files from
2150 a Mercurial (<filename>hg</filename>) revision control repository.</para></listitem>
2151 <listitem><para><emphasis><filename>p4://</filename> -</emphasis> Fetches files from
2152 a Perforce (<filename>p4</filename>) revision control repository.</para></listitem>
2153 <listitem><para><emphasis><filename>ssh://</filename> -</emphasis> Fetches files from
2154 a secure shell.</para></listitem>
2155 <listitem><para><emphasis><filename>svn://</filename> -</emphasis> Fetches files from
2156 a Subversion (<filename>svn</filename>) revision control repository.</para></listitem>
2157 </itemizedlist>
2158 </para>
2159 <para>Here are some additional options worth mentioning:
2160 <itemizedlist>
2161 <listitem><para><emphasis><filename>unpack</filename> -</emphasis> Controls
2162 whether or not to unpack the file if it is an archive.
2163 The default action is to unpack the file.</para></listitem>
2164 <listitem><para><emphasis><filename>subdir</filename> -</emphasis> Places the file
2165 (or extracts its contents) into the specified
2166 subdirectory.
2167 This option is useful for unusual tarballs or other archives that
2168 do not have their files already in a subdirectory within the archive.
2169 </para></listitem>
2170 <listitem><para><emphasis><filename>name</filename> -</emphasis> Specifies a
2171 name to be used for association with <filename>SRC_URI</filename> checksums
2172 when you have more than one file specified in <filename>SRC_URI</filename>.
2173 </para></listitem>
2174 <listitem><para><emphasis><filename>downloadfilename</filename> -</emphasis> Specifies
2175 the filename used when storing the downloaded file.</para></listitem>
2176 </itemizedlist>
2177 </para>
2178 </glossdef>
2179 </glossentry>
2180
2181 <glossentry id='var-SRCDATE'><glossterm>SRCDATE</glossterm>
2182 <glossdef>
2183 <para>
2184 The date of the source code used to build the package.
2185 This variable applies only if the source was fetched from a Source Code Manager (SCM).
2186 </para>
2187 </glossdef>
2188 </glossentry>
2189
2190 <glossentry id='var-SRCREV'><glossterm>SRCREV</glossterm>
2191 <glossdef>
2192 <para>
2193 The revision of the source code used to build the package.
2194 This variable applies only when using Subversion, Git, Mercurial and Bazaar.
2195 If you want to build a fixed revision and you want
2196 to avoid performing a query on the remote repository every time
2197 BitBake parses your recipe, you should specify a <filename>SRCREV</filename> that is a
2198 full revision identifier and not just a tag.
2199 </para>
2200 </glossdef>
2201 </glossentry>
2202
2203 <glossentry id='var-SRCREV_FORMAT'><glossterm>SRCREV_FORMAT</glossterm>
2204 <glossdef>
2205 <para>
2206 Helps construct valid
2207 <link linkend='var-SRCREV'><filename>SRCREV</filename></link>
2208 values when multiple source controlled URLs are used in
2209 <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>.
2210 </para>
2211
2212 <para>
2213 The system needs help constructing these values under these
2214 circumstances.
2215 Each component in the <filename>SRC_URI</filename>
2216 is assigned a name and these are referenced
2217 in the <filename>SRCREV_FORMAT</filename> variable.
2218 Consider an example with URLs named "machine" and "meta".
2219 In this case, <filename>SRCREV_FORMAT</filename> could look
2220 like "machine_meta" and those names would have the SCM
2221 versions substituted into each position.
2222 Only one <filename>AUTOINC</filename> placeholder is added
2223 and if needed.
2224 And, this placeholder is placed at the start of the
2225 returned string.
2226 </para>
2227 </glossdef>
2228 </glossentry>
2229
2230 <glossentry id='var-STAMP'><glossterm>STAMP</glossterm>
2231 <glossdef>
2232 <para>
2233 Specifies the base path used to create recipe stamp files.
2234 The path to an actual stamp file is constructed by evaluating this
2235 string and then appending additional information.
2236 </para>
2237 </glossdef>
2238 </glossentry>
2239
2240 <glossentry id='var-STAMPCLEAN'><glossterm>STAMPCLEAN</glossterm>
2241 <glossdef>
2242 <para>
2243 Specifies the base path used to create recipe stamp files.
2244 Unlike the
2245 <link linkend='var-STAMP'><filename>STAMP</filename></link>
2246 variable, <filename>STAMPCLEAN</filename> can contain
2247 wildcards to match the range of files a clean operation
2248 should remove.
2249 BitBake uses a clean operation to remove any other stamps
2250 it should be removing when creating a new stamp.
2251 </para>
2252 </glossdef>
2253 </glossentry>
2254
2255 <glossentry id='var-SUMMARY'><glossterm>SUMMARY</glossterm>
2256 <glossdef>
2257 <para>
2258 A short summary for the recipe, which is 72 characters or less.
2259 </para>
2260 </glossdef>
2261 </glossentry>
2262
2263 <glossentry id='var-SVNDIR'><glossterm>SVNDIR</glossterm>
2264 <glossdef>
2265 <para>
2266 The directory in which files checked out of a Subversion
2267 system are stored.
2268 </para>
2269 </glossdef>
2270 </glossentry>
2271
2272 </glossdiv>
2273
2274 <glossdiv id='var-glossary-t'><title>T</title>
2275
2276 <glossentry id='var-T'><glossterm>T</glossterm>
2277 <glossdef>
2278 <para>Points to a directory were BitBake places
2279 temporary files, which consist mostly of task logs and
2280 scripts, when building a particular recipe.
2281 </para>
2282 </glossdef>
2283 </glossentry>
2284
2285 <glossentry id='var-TOPDIR'><glossterm>TOPDIR</glossterm>
2286 <glossdef>
2287 <para>
2288 Points to the build directory.
2289 BitBake automatically sets this variable.
2290 </para>
2291 </glossdef>
2292 </glossentry>
2293
2294 </glossdiv>
2295
2296<!--
2297 <glossdiv id='var-glossary-u'><title>U</title>
2298 </glossdiv>
2299
2300 <glossdiv id='var-glossary-v'><title>V</title>
2301 </glossdiv>
2302
2303 <glossdiv id='var-glossary-w'><title>W</title>
2304 </glossdiv>
2305
2306 <glossdiv id='var-glossary-x'><title>X</title>
2307 </glossdiv>
2308
2309 <glossdiv id='var-glossary-y'><title>Y</title>
2310 </glossdiv>
2311
2312 <glossdiv id='var-glossary-z'><title>Z</title>
2313 </glossdiv>
2314-->
2315
2316
2317</glossary>
2318</chapter>
2319<!--
2320vim: expandtab tw=80 ts=4
2321-->