ref-variables.xml 95 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930
  1. <!DOCTYPE appendix 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. <!-- Dummy chapter -->
  5. <appendix id='ref-variables-glos'>
  6. <title>Reference: Variables Glossary</title>
  7. <para>
  8. This section lists common variables used in the Yocto Project and gives an overview
  9. of their function and contents.
  10. </para>
  11. <glossary id='ref-variables-glossary'>
  12. <para>
  13. <link linkend='var-ALLOW_EMPTY'>A</link>
  14. <link linkend='var-B'>B</link>
  15. <link linkend='var-CFLAGS'>C</link>
  16. <link linkend='var-D'>D</link>
  17. <link linkend='var-ENABLE_BINARY_LOCALE_GENERATION'>E</link>
  18. <link linkend='var-FILES'>F</link>
  19. <!-- <link linkend='var-glossary-g'>G</link> -->
  20. <link linkend='var-HOMEPAGE'>H</link>
  21. <link linkend='var-IMAGE_FEATURES'>I</link>
  22. <!-- <link linkend='var-glossary-j'>J</link> -->
  23. <link linkend='var-KERNEL_FEATURES'>K</link>
  24. <link linkend='var-LAYERDIR'>L</link>
  25. <link linkend='var-MACHINE'>M</link>
  26. <!-- <link linkend='var-glossary-n'>N</link> -->
  27. <!-- <link linkend='var-glossary-o'>O</link> -->
  28. <link linkend='var-PACKAGE_ARCH'>P</link>
  29. <!-- <link linkend='var-glossary-q'>Q</link> -->
  30. <link linkend='var-RCONFLICTS'>R</link>
  31. <link linkend='var-S'>S</link>
  32. <link linkend='var-TARGET_ARCH'>T</link>
  33. <!-- <link linkend='var-glossary-u'>U</link> -->
  34. <!-- <link linkend='var-glossary-v'>V</link> -->
  35. <link linkend='var-WORKDIR'>W</link>
  36. <!-- <link linkend='var-glossary-x'>X</link> -->
  37. <!-- <link linkend='var-glossary-y'>Y</link> -->
  38. <!-- <link linkend='var-glossary-z'>Z</link>-->
  39. </para>
  40. <glossdiv id='var-glossary-a'><title>A</title>
  41. <glossentry id='var-ALLOW_EMPTY'><glossterm>ALLOW_EMPTY</glossterm>
  42. <glossdef>
  43. <para>
  44. Specifies if an output package should still be produced if it is empty.
  45. By default, BitBake does not produce empty packages.
  46. This default behavior can cause issues when there is an
  47. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link> or
  48. some other runtime hard-requirement on the existence of the package.
  49. </para>
  50. <para>
  51. Like all package-controlling variables, you must always use them in
  52. conjunction with a package name override.
  53. Here is an example:
  54. <literallayout class='monospaced'>
  55. ALLOW_EMPTY_${PN}
  56. </literallayout>
  57. </para>
  58. </glossdef>
  59. </glossentry>
  60. <glossentry id='var-AUTHOR'><glossterm>AUTHOR</glossterm>
  61. <glossdef>
  62. <para>The email address used to contact the original author or authors in
  63. order to send patches, forward bugs, etc.</para>
  64. </glossdef>
  65. </glossentry>
  66. <glossentry id='var-AUTOREV'><glossterm>AUTOREV</glossterm>
  67. <glossdef>
  68. <para>Specifies to use the current (newest) source revision.
  69. This variable is with the <filename><link linkend='var-SRCREV'>SRCREV</link></filename>
  70. variable.</para>
  71. </glossdef>
  72. </glossentry>
  73. </glossdiv>
  74. <glossdiv id='var-glossary-b'><title>B</title>
  75. <glossentry id='var-B'><glossterm>B</glossterm>
  76. <glossdef>
  77. <para>
  78. The directory in which the Yocto Project build system places
  79. generated objects during a recipe's build process.
  80. By default, this directory is the same as the <link linkend='var-S'><filename>S</filename></link>
  81. directory:
  82. <literallayout class='monospaced'>
  83. B = ${WORKDIR}/${BPN}-{PV}/
  84. </literallayout>
  85. You can separate the source directory (<filename>S</filename>) and the directory pointed to
  86. by the <filename>B</filename> variable.
  87. Most autotools-based recipes support separating these directories.
  88. The Yocto Project defaults to using separate directories for <filename>gcc</filename>
  89. and some kernel recipes.
  90. </para>
  91. </glossdef>
  92. </glossentry>
  93. <glossentry id='var-BAD_RECOMMENDATIONS'><glossterm>BAD_RECOMMENDATIONS</glossterm>
  94. <glossdef>
  95. <para>
  96. A list of packages not to install despite being recommended by a recipe.
  97. Support for this variable exists only for images that use the
  98. <filename>ipkg</filename> packaging system.
  99. </para>
  100. </glossdef>
  101. </glossentry>
  102. <glossentry id='var-BBCLASSEXTEND'><glossterm>BBCLASSEXTEND</glossterm>
  103. <glossdef>
  104. <para>
  105. Allows you to extend a recipe so that it builds variants of the software.
  106. Common variants for recipes exist such as "natives" like <filename>quilt-native</filename>,
  107. which is a copy of quilt built to run on the build system;
  108. "crosses" such as <filename>gcc-cross</filename>,
  109. which is a compiler built to run on the build machine but produces binaries
  110. that run on the target <link linkend='var-MACHINE'><filename>MACHINE</filename></link>;
  111. "nativesdk", which targets the SDK machine instead of <filename>MACHINE</filename>;
  112. and "mulitlibs" in the form "<filename>multilib:&lt;multilib_name&gt;</filename>".
  113. </para>
  114. <para>
  115. To build a different variant of the recipe with a minimal amount of code, it usually
  116. is as simple as adding the following to your recipe:
  117. <literallayout class='monospaced'>
  118. BBCLASSEXTEND =+ "native nativesdk"
  119. BBCLASSEXTEND =+ "multilib:&lt;multilib_name&gt;"
  120. </literallayout>
  121. </para>
  122. </glossdef>
  123. </glossentry>
  124. <glossentry id='var-BBMASK'><glossterm>BBMASK</glossterm>
  125. <glossdef>
  126. <para>Prevents BitBake from processing recipes and recipe append files.
  127. You can use the <filename>BBMASK</filename> variable to "hide"
  128. these <filename>.bb</filename> and <filename>.bbappend</filename> files.
  129. BitBake ignores any recipe or recipe append files that match the expression.
  130. It is as if BitBake does not see them at all.
  131. Consequently, matching files are not parsed or otherwise used by
  132. BitBake.</para>
  133. <para>The value you provide is passed to python's regular expression compiler.
  134. For complete syntax information, see python's documentation at
  135. <ulink url='http://docs.python.org/release/2.3/lib/re-syntax.html'></ulink>.
  136. The expression is compared against the full paths to the files.
  137. For example, the following uses a complete regular expression to tell
  138. BitBake to ignore all recipe and recipe append files in the
  139. <filename>.*/meta-ti/recipes-misc/</filename> directory:
  140. <literallayout class='monospaced'>
  141. BBMASK = ".*/meta-ti/recipes-misc/"
  142. </literallayout></para>
  143. <para>Use the <filename>BBMASK</filename> variable from within the
  144. <filename>conf/local.conf</filename> file found
  145. in the Yocto Project build directory.</para>
  146. </glossdef>
  147. </glossentry>
  148. <glossentry id='var-BB_NUMBER_THREADS'><glossterm>BB_NUMBER_THREADS</glossterm>
  149. <glossdef>
  150. <para>The maximum number of tasks BitBake should run in parallel at any one time.
  151. If your host development system supports multiple cores a good rule of thumb
  152. is to set this variable to twice the number of cores.</para>
  153. </glossdef>
  154. </glossentry>
  155. <glossentry id='var-BBFILE_COLLECTIONS'><glossterm>BBFILE_COLLECTIONS</glossterm>
  156. <glossdef>
  157. <para>Lists the names of configured layers.
  158. These names are used to find the other <filename>BBFILE_*</filename>
  159. variables.
  160. Typically, each layer will append its name to this variable in its
  161. <filename>conf/layer.conf</filename> file.
  162. </para>
  163. </glossdef>
  164. </glossentry>
  165. <glossentry id='var-BBFILE_PATTERN'><glossterm>BBFILE_PATTERN</glossterm>
  166. <glossdef>
  167. <para>Variable that expands to match files from <filename>BBFILES</filename> in a particular layer.
  168. This variable is used in the <filename>conf/layer.conf</filename> file and must
  169. be suffixed with the name of the specific layer (e.g.
  170. <filename>BBFILE_PATTERN_emenlow</filename>).</para>
  171. </glossdef>
  172. </glossentry>
  173. <glossentry id='var-BBFILE_PRIORITY'><glossterm>BBFILE_PRIORITY</glossterm>
  174. <glossdef>
  175. <para>Assigns the priority for recipe files in each layer.</para>
  176. <para>This variable is useful in situations where the same package appears in
  177. more than one layer.
  178. Setting this variable allows you to prioritize a
  179. layer against other layers that contain the same package - effectively
  180. letting you control the precedence for the multiple layers.
  181. The precedence established through this variable stands regardless of a
  182. layer's package version (<filename>PV</filename> variable).
  183. For example, a layer that has a package with a higher <filename>PV</filename> value but for
  184. which the <filename>BBFILE_PRIORITY</filename> is set to have a lower precedence still has a
  185. lower precedence.</para>
  186. <para>A larger value for the <filename>BBFILE_PRIORITY</filename> variable results in a higher
  187. precedence.
  188. For example, the value 6 has a higher precedence than the value 5.
  189. If not specified, the <filename>BBFILE_PRIORITY</filename> variable is set based on layer
  190. dependencies (see the
  191. <filename><link linkend='var-LAYERDEPENDS'>LAYERDEPENDS</link></filename> variable for
  192. more information.
  193. The default priority, if unspecified
  194. for a layer with no dependencies, is the lowest defined priority + 1
  195. (or 1 if no priorities are defined).</para>
  196. <tip>
  197. You can use the command <filename>bitbake-layers show_layers</filename> to list
  198. all configured layers along with their priorities.
  199. </tip>
  200. </glossdef>
  201. </glossentry>
  202. <glossentry id='var-BBFILES'><glossterm>BBFILES</glossterm>
  203. <glossdef>
  204. <para>List of recipe files used by BitBake to build software</para>
  205. </glossdef>
  206. </glossentry>
  207. <glossentry id='var-BBPATH'><glossterm>BBPATH</glossterm>
  208. <glossdef>
  209. <para>Used by BitBake to locate <filename>.bbclass</filename> and configuration files.
  210. This variable is analogous to the <filename>PATH</filename> variable.</para>
  211. </glossdef>
  212. </glossentry>
  213. <glossentry id='var-BBINCLUDELOGS'><glossterm>BBINCLUDELOGS</glossterm>
  214. <glossdef>
  215. <para>Variable that controls how BitBake displays logs on build failure.</para>
  216. </glossdef>
  217. </glossentry>
  218. <glossentry id='var-BBLAYERS'><glossterm>BBLAYERS</glossterm>
  219. <glossdef>
  220. <para>Lists the layers to enable during the Yocto Project build.
  221. This variable is defined in the <filename>bblayers.conf</filename> configuration
  222. file in the Yocto Project build directory.
  223. Here is an example:
  224. <literallayout class='monospaced'>
  225. BBLAYERS = " \
  226. /home/scottrif/poky/meta \
  227. /home/scottrif/poky/meta-yocto \
  228. /home/scottrif/poky/meta-mykernel \
  229. "
  230. </literallayout>
  231. This example enables three layers, one of which is a custom, user-defined layer
  232. named <filename>meta-mykernel</filename>.
  233. </para>
  234. </glossdef>
  235. </glossentry>
  236. <glossentry id='var-BPN'><glossterm>BPN</glossterm>
  237. <glossdef>
  238. <para>Bare name of package with any suffixes like -cross -native removed.</para>
  239. </glossdef>
  240. </glossentry>
  241. </glossdiv>
  242. <glossdiv id='var-glossary-c'><title>C</title>
  243. <glossentry id='var-CFLAGS'><glossterm>CFLAGS</glossterm>
  244. <glossdef>
  245. <para>
  246. Flags passed to C compiler for the target system.
  247. This variable evaluates to the same as
  248. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>.
  249. </para>
  250. </glossdef>
  251. </glossentry>
  252. <glossentry id='var-COMPATIBLE_MACHINE'><glossterm>COMPATIBLE_MACHINE</glossterm>
  253. <glossdef>
  254. <para>A regular expression which evaluates to match the machines the recipe
  255. works with.
  256. It stops recipes being run on machines for which they are not compatible.
  257. This is particularly useful with kernels.
  258. It also helps to increase parsing speed as further parsing of the recipe is skipped
  259. if it is found the current machine is not compatible.</para>
  260. </glossdef>
  261. </glossentry>
  262. <glossentry id='var-CONFFILES'><glossterm>CONFFILES</glossterm>
  263. <glossdef>
  264. <para>
  265. Identifies editable or configurable files that are part of a package.
  266. If the Package Management System (PMS) is being used to update
  267. packages on the target system, it is possible that
  268. configuration files you have changed after the original installation
  269. and that you now want to remain unchanged are overwritten.
  270. In other words, editable files might exist in the package that you do not
  271. want reset as part of the package update process.
  272. You can use the <filename>CONFFILES</filename> variable to list the files in the
  273. package that you wish to prevent the PMS from overwriting during this update process.
  274. </para>
  275. <para>
  276. To use the <filename>CONFFILES</filename> variable, provide a package name
  277. override that identifies the package.
  278. Then, provide a space-separated list of files.
  279. Here is an example:
  280. <literallayout class='monospaced'>
  281. CONFFILES_${PN} += "${sysconfdir}/file1 \
  282. ${sysconfdir}/file2 ${sysconfdir}/file3"
  283. </literallayout>
  284. </para>
  285. <para>
  286. A relationship exists between the <filename>CONFFILES</filename> and
  287. <filename><link linkend='var-FILES'>FILES</link></filename> variables.
  288. The files listed within <filename>CONFFILES</filename> must be a subset of
  289. the files listed within <filename>FILES</filename>.
  290. Because the configuration files you provide with <filename>CONFFILES</filename>
  291. are simply being identified so that the PMS will not overwrite them,
  292. it makes sense that
  293. the files must already be included as part of the package through the
  294. <filename>FILES</filename> variable.
  295. </para>
  296. <note>
  297. When specifying paths as part of the <filename>CONFFILES</filename> variable,
  298. it is good practice to use appropriate path variables.
  299. For example, <filename>${sysconfdir}</filename> rather than
  300. <filename>/etc</filename> or <filename>${bindir}</filename> rather
  301. than <filename>/usr/bin</filename>.
  302. You can find a list of these variables at the top of the
  303. <filename>/meta/conf/bitbake.conf</filename> file in the Yocto Project
  304. files directory.
  305. </note>
  306. </glossdef>
  307. </glossentry>
  308. <glossentry id='var-CONFIG_SITE'><glossterm>CONFIG_SITE</glossterm>
  309. <glossdef>
  310. <para>
  311. A list of files that contains <filename>autoconf</filename> test results relevant
  312. to the current build.
  313. This variable is used by the Autotools utilities when running
  314. <filename>configure</filename>.
  315. </para>
  316. </glossdef>
  317. </glossentry>
  318. <glossentry id='var-CORE_IMAGE_EXTRA_INSTALL'><glossterm>CORE_IMAGE_EXTRA_INSTALL</glossterm>
  319. <glossdef>
  320. <para>
  321. Specifies the list of packages to be added to the image.
  322. This variable should only be set in the <filename>local.conf</filename>
  323. configuration file found in the
  324. <ulink url='&YOCTO_DOCS_DEV_URL;#yocto-project-build-directory'>Yocto Project Build Directory</ulink>.
  325. </para>
  326. <para>
  327. This variable replaces <filename>POKY_EXTRA_INSTALL</filename>, which is no longer supported.
  328. </para>
  329. </glossdef>
  330. </glossentry>
  331. </glossdiv>
  332. <glossdiv id='var-glossary-d'><title>D</title>
  333. <glossentry id='var-D'><glossterm>D</glossterm>
  334. <glossdef>
  335. <para>The destination directory.</para>
  336. </glossdef>
  337. </glossentry>
  338. <glossentry id='var-DEBUG_BUILD'><glossterm>DEBUG_BUILD</glossterm>
  339. <glossdef>
  340. <para>
  341. Specifies to build packages with debugging information.
  342. This influences the value of the
  343. <filename><link linkend='var-SELECTED_OPTIMIZATION'>SELECTED_OPTIMIZATION</link></filename>
  344. variable.
  345. </para>
  346. </glossdef>
  347. </glossentry>
  348. <glossentry id='var-DEBUG_OPTIMIZATION'><glossterm>DEBUG_OPTIMIZATION</glossterm>
  349. <glossdef>
  350. <para>
  351. The options to pass in
  352. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>
  353. and <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename> when compiling
  354. a system for debugging.
  355. This variable defaults to "-O -fno-omit-frame-pointer -g".
  356. </para>
  357. </glossdef>
  358. </glossentry>
  359. <glossentry id='var-DEFAULT_PREFERENCE'><glossterm>DEFAULT_PREFERENCE</glossterm>
  360. <glossdef>
  361. <para>Specifies the priority of recipes.</para>
  362. </glossdef>
  363. </glossentry>
  364. <glossentry id='var-DEPENDS'><glossterm>DEPENDS</glossterm>
  365. <glossdef>
  366. <para>
  367. A list of build-time dependencies for a given recipe.
  368. The variable indicates recipes that must have been staged before a
  369. particular recipe can configure.
  370. </para>
  371. </glossdef>
  372. </glossentry>
  373. <glossentry id='var-DESCRIPTION'><glossterm>DESCRIPTION</glossterm>
  374. <glossdef>
  375. <para>The package description used by package managers.</para>
  376. </glossdef>
  377. </glossentry>
  378. <glossentry id='var-DESTDIR'><glossterm>DESTDIR</glossterm>
  379. <glossdef>
  380. <para>the destination directory.</para>
  381. </glossdef>
  382. </glossentry>
  383. <glossentry id='var-DISTRO'><glossterm>DISTRO</glossterm>
  384. <glossdef>
  385. <para>The short name of the distribution.</para>
  386. </glossdef>
  387. </glossentry>
  388. <glossentry id='var-DISTRO_EXTRA_RRECOMMENDS'><glossterm>DISTRO_EXTRA_RRECOMMENDS</glossterm>
  389. <glossdef>
  390. <para></para>
  391. <para>The list of packages which extend usability of the image.
  392. Those packages will automatically be installed but can be removed by user.</para>
  393. </glossdef>
  394. </glossentry>
  395. <glossentry id='var-DISTRO_FEATURES'><glossterm>DISTRO_FEATURES</glossterm>
  396. <glossdef>
  397. <para>The features of the distribution.</para>
  398. </glossdef>
  399. </glossentry>
  400. <glossentry id='var-DISTRO_NAME'><glossterm>DISTRO_NAME</glossterm>
  401. <glossdef>
  402. <para>The long name of the distribution.</para>
  403. </glossdef>
  404. </glossentry>
  405. <glossentry id='var-DISTRO_PN_ALIAS'><glossterm>DISTRO_PN_ALIAS</glossterm>
  406. <glossdef>
  407. <para>Alias names used for the recipe in various Linux distributions.</para>
  408. <para>See the
  409. "<ulink url='&YOCTO_DOCS_DEV_URL;#usingpoky-configuring-DISTRO_PN_ALIAS'>Handling
  410. a Package Name Alias</ulink>" section in the Yocto Project Development
  411. Manual for more information.</para>
  412. </glossdef>
  413. </glossentry>
  414. <glossentry id='var-DISTRO_VERSION'><glossterm>DISTRO_VERSION</glossterm>
  415. <glossdef>
  416. <para>the version of the distribution.</para>
  417. </glossdef>
  418. </glossentry>
  419. <glossentry id='var-DL_DIR'><glossterm>DL_DIR</glossterm>
  420. <glossdef>
  421. <para>
  422. The central download directory used by the build process to store downloads.
  423. You can set this directory by defining the <filename>DL_DIR</filename>
  424. variable in the <filename>/conf/local.conf</filename> file.
  425. This directory is self-maintaining and you should not have
  426. to touch it.
  427. By default, the directory is <filename>downloads</filename> in the
  428. Yocto Project build directory.
  429. <literallayout class='monospaced'>
  430. #DL_DIR ?= "${TOPDIR}/downloads"
  431. </literallayout>
  432. To specify a different download directory, simply uncomment the line
  433. and provide your directory.
  434. </para>
  435. <para>
  436. During a first build, the system downloads many different source code
  437. tarballs from various upstream projects.
  438. Downloading can take a while, particularly if your network
  439. connection is slow.
  440. Tarballs are all stored in the directory defined by
  441. <filename>DL_DIR</filename> and the build system looks there first
  442. to find source tarballs.
  443. <note>
  444. When wiping and rebuilding, you can preserve this directory to speed
  445. up this part of subsequent builds.
  446. </note>
  447. </para>
  448. <para>
  449. You can safely share this directory between multiple builds on the
  450. same development machine.
  451. For additional information on how the build process gets source files
  452. when working behind a firewall or proxy server, see the
  453. "<link linkend='how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server'>FAQ</link>"
  454. appendix.
  455. </para>
  456. </glossdef>
  457. </glossentry>
  458. </glossdiv>
  459. <glossdiv id='var-glossary-e'><title>E</title>
  460. <glossentry id='var-ENABLE_BINARY_LOCALE_GENERATION'><glossterm>ENABLE_BINARY_LOCALE_GENERATION</glossterm>
  461. <glossdef>
  462. <para></para>
  463. <para>Variable that controls which locales for <filename>eglibc</filename> are
  464. to be generated during the build (useful if the target device has 64Mbytes
  465. of RAM or less).</para>
  466. </glossdef>
  467. </glossentry>
  468. <glossentry id='var-EXTRA_IMAGE_FEATURES'><glossterm>EXTRA_IMAGE_FEATURES</glossterm>
  469. <glossdef>
  470. <para>Allows extra packages to be added to the generated images.
  471. You set this variable in the <filename>local.conf</filename>
  472. configuration file.
  473. Note that some image features are also added using the
  474. <filename><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></filename>
  475. variable generally configured in image recipes.
  476. You can use this variable to add more features in addition to those.
  477. Here are some examples of features you can add:</para>
  478. <literallayout class='monospaced'>
  479. "dbg-pkgs" - Adds -dbg packages for all installed packages
  480. including symbol information for debugging and
  481. profiling.
  482. "dev-pkgs" - Adds -dev packages for all installed packages.
  483. This is useful if you want to develop against
  484. the libraries in the image.
  485. "tools-sdk" - Adds development tools such as gcc, make,
  486. pkgconfig and so forth.
  487. "tools-debug" - Adds debugging tools such as gdb and
  488. strace.
  489. "tools-profile" - Adds profiling tools such as oprofile,
  490. exmap, lttng and valgrind (x86 only).
  491. "tools-testapps" - Adds useful testing tools such as
  492. ts_print, aplay, arecord and so
  493. forth.
  494. "debug-tweaks" - Makes an image suitable for development.
  495. For example, ssh root access has a blank
  496. password. You should remove this feature
  497. before you produce a production image.
  498. There are other application targets too, see
  499. <filename>meta/classes/poky-image.bbclass</filename>
  500. and <filename>meta/packages/tasks/task-poky.bb</filename>
  501. for more details.
  502. </literallayout>
  503. </glossdef>
  504. </glossentry>
  505. <glossentry id='var-EXTRA_IMAGEDEPENDS'><glossterm>EXTRA_IMAGEDEPENDS</glossterm>
  506. <glossdef>
  507. <para>A list of recipes to be built that do not provide packages to be installed in
  508. the root filesystem.
  509. </para>
  510. <para>Sometimes a recipe is required to build the final image but is not
  511. needed in the root filesystem.
  512. You can use the <filename>EXTRA_IMAGEDEPENDS</filename> variable to
  513. list these recipes and thus, specify the dependencies.
  514. A typical example is a required bootloader in a machine configuration.
  515. </para>
  516. <note>
  517. To add packages to the root filesystem, see the various
  518. <filename>*DEPENDS</filename> and <filename>*RECOMMENDS</filename>
  519. variables.
  520. </note>
  521. </glossdef>
  522. </glossentry>
  523. <glossentry id='var-EXTRA_OECMAKE'><glossterm>EXTRA_OECMAKE</glossterm>
  524. <glossdef>
  525. <para>Additional <filename>cmake</filename> options.</para>
  526. </glossdef>
  527. </glossentry>
  528. <glossentry id='var-EXTRA_OECONF'><glossterm>EXTRA_OECONF</glossterm>
  529. <glossdef>
  530. <para>Additional <filename>configure</filename> script options.</para>
  531. </glossdef>
  532. </glossentry>
  533. <glossentry id='var-EXTRA_OEMAKE'><glossterm>EXTRA_OEMAKE</glossterm>
  534. <glossdef>
  535. <para>Additional GNU <filename>make</filename> options.</para>
  536. </glossdef>
  537. </glossentry>
  538. </glossdiv>
  539. <glossdiv id='var-glossary-f'><title>F</title>
  540. <glossentry id='var-FILES'><glossterm>FILES</glossterm>
  541. <glossdef>
  542. <para>
  543. The list of directories or files that are placed in packages.
  544. </para>
  545. <para>
  546. To use the <filename>FILES</filename> variable, provide a package name
  547. override that identifies the package.
  548. Then, provide a space-separated list of files or paths that identifies the
  549. files you want included as part of the package.
  550. Here is an example:
  551. <literallayout class='monospaced'>
  552. FILES_${PN} += "${bindir}/mydir1/ ${bindir}/mydir2/myfile"
  553. </literallayout>
  554. </para>
  555. <note>
  556. When specifying paths as part of the <filename>FILES</filename> variable,
  557. it is good practice to use appropriate path variables.
  558. For example, <filename>${sysconfdir}</filename> rather than
  559. <filename>/etc</filename> or <filename>${bindir}</filename> rather
  560. than <filename>/usr/bin</filename>.
  561. You can find a list of these variables at the top of the
  562. <filename>/meta/conf/bitbake.conf</filename> file in the Yocto Project
  563. files directory.
  564. </note>
  565. <para>
  566. If some of the files you provide with the <filename>FILES</filename> variable
  567. are editable and you know they should not be
  568. overwritten during the package update process by the Package Management
  569. System (PMS), you can identify these files so that the PMS will not
  570. overwrite them.
  571. See the <filename><link linkend='var-CONFFILES'>CONFFILES</link></filename>
  572. variable for information on how to identify these files to the PMS.
  573. </para>
  574. </glossdef>
  575. </glossentry>
  576. <glossentry id='var-FILESEXTRAPATHS'><glossterm>FILESEXTRAPATHS</glossterm>
  577. <glossdef>
  578. <para>
  579. Extends the search path the Yocto Project build system uses when
  580. looking for files and patches as it processes recipes.
  581. The directories BitBake uses when it processes recipes is defined by the
  582. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link> variable.
  583. You can add directories to the search path by defining the
  584. <filename>FILESEXTRAPATHS</filename> variable.
  585. </para>
  586. <para>
  587. To add paths to the search order, provide a list of directories and separate
  588. each path using a colon character as follows:
  589. <literallayout class='monospaced'>
  590. FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:"
  591. </literallayout>
  592. Typically, you want your directories searched first.
  593. To make sure that happens, use <filename>_prepend</filename> and
  594. the immediate expansion (<filename>:=</filename>) operator as shown in the
  595. previous example.
  596. Finally, to maintain the integrity of the <filename>FILESPATH</filename> variable,
  597. you must include the appropriate beginning or ending (as needed) colon character.
  598. </para>
  599. <para>
  600. The <filename>FILESEXTRAPATHS</filename> variable is intended for use in
  601. <filename>.bbappend</filename> files to include any additional files provided in that layer.
  602. You typically accomplish this with the following:
  603. <literallayout class='monospaced'>
  604. FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
  605. </literallayout>
  606. </para>
  607. </glossdef>
  608. </glossentry>
  609. <glossentry id='var-FILESPATH'><glossterm>FILESPATH</glossterm>
  610. <glossdef>
  611. <para>
  612. The default set of directories the Yocto Project build system uses
  613. when searching for patches and files.
  614. During the build process, BitBake searches each directory in
  615. <filename>FILESPATH</filename> in the specified order when looking for
  616. files and patches specified by each <filename>file://</filename> URI in a recipe.
  617. </para>
  618. <para>
  619. The default value for the <filename>FILESPATH</filename> variable is defined
  620. in the <filename>base.bbclass</filename> class found in
  621. <filename>meta/classes</filename> in the
  622. <ulink url='&YOCTO_DOCS_DEV_URL;#yocto-project-files'>Yocto Project Files</ulink>:
  623. <literallayout class='monospaced'>
  624. FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", \
  625. "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", \
  626. "${FILE_DIRNAME}/${BP}", "${FILE_DIRNAME}/${BPN}", \
  627. "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ], d)}"
  628. </literallayout>
  629. Do not hand-edit the <filename>FILESPATH</filename> variable.
  630. If you want to extend the set of pathnames that BitBake uses when searching for
  631. files and patches, use the
  632. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link> variable.
  633. </para>
  634. </glossdef>
  635. </glossentry>
  636. <glossentry id='var-FILESYSTEM_PERMS_TABLES'><glossterm>FILESYSTEM_PERMS_TABLES</glossterm>
  637. <glossdef>
  638. <para>Allows you to define your own file permissions settings table as part of
  639. your configuration for the packaging process.
  640. For example, suppose you need a consistent set of custom permissions for
  641. a set of groups and users across an entire work project.
  642. It is best to do this in the packages themselves but this is not always
  643. possible.
  644. </para>
  645. <para>
  646. By default, the Yocto Project uses the <filename>fs-perms.txt</filename>, which
  647. is located in the <filename>meta/files</filename> directory of the Yocto Project
  648. files directory.
  649. If you create your own file permissions setting table, you should place it in your
  650. layer or the distros layer.
  651. </para>
  652. <para>
  653. You define the <filename>FILESYSTEM_PERMS_TABLES</filename> variable in the
  654. <filename>conf/local.conf</filename> file, which is found in the Yocto Project's
  655. build directory, to point to your custom <filename>fs-perms.txt</filename>.
  656. You can specify more than a single file permissions setting table.
  657. The paths you specify to these files must be defined within the
  658. <filename>BBPATH</filename> variable.
  659. </para>
  660. <para>
  661. For guidance on how to create your own file permissions settings table file,
  662. examine the existing <filename>fs-perms.txt</filename>.
  663. </para>
  664. </glossdef>
  665. </glossentry>
  666. <glossentry id='var-FULL_OPTIMIZATION'><glossterm>FULL_OPTIMIZATION</glossterm>
  667. <glossdef>
  668. <para>
  669. The options to pass in
  670. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>
  671. and <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename>
  672. when compiling an optimized system.
  673. This variable defaults to
  674. "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2".
  675. </para>
  676. </glossdef>
  677. </glossentry>
  678. </glossdiv>
  679. <!-- <glossdiv id='var-glossary-g'><title>G</title>-->
  680. <!-- </glossdiv>-->
  681. <glossdiv id='var-glossary-h'><title>H</title>
  682. <glossentry id='var-HOMEPAGE'><glossterm>HOMEPAGE</glossterm>
  683. <glossdef>
  684. <para>Website where more info about package can be found</para>
  685. </glossdef>
  686. </glossentry>
  687. </glossdiv>
  688. <glossdiv id='var-glossary-i'><title>I</title>
  689. <glossentry id='var-IMAGE_FEATURES'><glossterm>IMAGE_FEATURES</glossterm>
  690. <glossdef>
  691. <para>The list of features present in images.
  692. Typically, you configure this variable in image recipes.
  693. Note that you can add extra features to the image by using the
  694. <filename><link linkend='var-EXTRA_IMAGE_FEATURES'>EXTRA_IMAGE_FEATURES</link></filename> variable.
  695. See the "<link linkend="ref-features-image">Reference: Images</link>" section for the
  696. list of features present in images built by the Yocto Project.</para>
  697. </glossdef>
  698. </glossentry>
  699. <glossentry id='var-IMAGE_FSTYPES'><glossterm>IMAGE_FSTYPES</glossterm>
  700. <glossdef>
  701. <para>Formats of root filesystem images that you want to have created.</para>
  702. </glossdef>
  703. </glossentry>
  704. <glossentry id='var-IMAGE_INSTALL'><glossterm>IMAGE_INSTALL</glossterm>
  705. <glossdef>
  706. <para>
  707. Specifies the packages to install into an image.
  708. The <filename>IMAGE_INSTALL</filename> variable is a mechanism for an image
  709. recipe and you should use it with care to avoid ordering issues.
  710. </para>
  711. <para>
  712. Image recipes set <filename>IMAGE_INSTALL</filename> to specify the
  713. packages to install into an image through <filename>image.bbclass</filename>.
  714. Additionally, "helper" classes exist, such as <filename>core-image.bbclass</filename>,
  715. that can take
  716. <filename><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></filename> lists
  717. and turn these into auto-generated entries in
  718. <filename>IMAGE_INSTALL</filename> in addition to its default contents.
  719. </para>
  720. <para>
  721. Using <filename>IMAGE_INSTALL</filename> with the <filename>+=</filename>
  722. operator from the <filename>/conf/local.conf</filename> file or from within
  723. an image recipe is not recommended as it can cause ordering issues.
  724. Since <filename>core-image.bbclass</filename> sets <filename>IMAGE_INSTALL</filename>
  725. to a default value using the <filename>?=</filename> operator, using a
  726. <filename>+=</filename> operation against <filename>IMAGE_INSTALL</filename>
  727. will result in unexpected behavior when used in
  728. <filename>/conf/local.conf</filename>.
  729. Furthermore, the same operation from with an image recipe may or may not
  730. succeed depending on the specific situation.
  731. In both these cases, the behavior is contrary to how most users expect
  732. the <filename>+=</filename> operator to work.
  733. </para>
  734. <para>
  735. When you use this variable, it is best to use it as follows:
  736. <literallayout class='monospaced'>
  737. IMAGE_INSTALL_append = " package-name"
  738. </literallayout>
  739. Be sure to include the space between the quotation character and the start of the
  740. package name.
  741. </para>
  742. </glossdef>
  743. </glossentry>
  744. <glossentry id='var-IMAGE_OVERHEAD_FACTOR'><glossterm>IMAGE_OVERHEAD_FACTOR</glossterm>
  745. <glossdef>
  746. <para>
  747. Defines a multiplier that the build system applies to the initial image
  748. size for cases when the multiplier times the returned disk usage value
  749. for the image is greater than the sum of
  750. <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>
  751. and
  752. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>.
  753. The result of the multiplier applied to the initial image size creates
  754. free disk space in the image as overhead.
  755. By default, the build process uses a multiplier of 1.3 for this variable.
  756. This default value results in 30% free disk space added to the image when this
  757. method is used to determine the final generated image size.
  758. You should be aware that post install scripts and the package management
  759. system uses disk space inside this overhead area.
  760. Consequently, the multiplier does not produce an image with
  761. all the theoretical free disk space.
  762. See <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>
  763. for information on how the build system determines the overall image size.
  764. </para>
  765. <para>
  766. The default 30% free disk space typically gives the image enough room to boot
  767. and allows for basic post installs while still leaving a small amount of
  768. free disk space.
  769. If 30% free space is inadequate, you can increase the default value.
  770. For example, the following setting gives you 50% free space added to the image:
  771. <literallayout class='monospaced'>
  772. IMAGE_OVERHEAD_FACTOR = "1.5"
  773. </literallayout>
  774. </para>
  775. <para>
  776. Alternatively, you can ensure a specific amount of free disk space is added
  777. to the image by using
  778. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>
  779. the variable.
  780. </para>
  781. </glossdef>
  782. </glossentry>
  783. <glossentry id='var-IMAGE_ROOTFS_EXTRA_SPACE'><glossterm>IMAGE_ROOTFS_EXTRA_SPACE</glossterm>
  784. <glossdef>
  785. <para>
  786. Defines additional free disk space created in the image in Kbytes.
  787. By default, this variable is set to "0".
  788. This free disk space is added to the image after the build system determines
  789. the image size as described in
  790. <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>.
  791. </para>
  792. <para>
  793. This variable is particularly useful when you want to ensure that a
  794. specific amount of free disk space is available on a device after an image
  795. is installed and running.
  796. For example, to be sure 5 Gbytes of free disk space is available, set the
  797. variable as follows:
  798. <literallayout class='monospaced'>
  799. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  800. </literallayout>
  801. </para>
  802. </glossdef>
  803. </glossentry>
  804. <glossentry id='var-IMAGE_ROOTFS_SIZE'><glossterm>IMAGE_ROOTFS_SIZE</glossterm>
  805. <glossdef>
  806. <para>
  807. Defines the size in Kbytes for the generated image.
  808. The Yocto Project build system determines the final size for the generated
  809. image using an algorithm that takes into account the initial disk space used
  810. for the generated image, a requested size for the image, and requested
  811. additional free disk space to be added to the image.
  812. Programatically, the build system determines the final size of the
  813. generated image as follows:
  814. <literallayout class='monospaced'>
  815. if (image-du * overhead) &lt; rootfs-size:
  816. internal-rootfs-size = rootfs-size + xspace
  817. else:
  818. internal-rootfs-size = (image-du * overhead) + xspace
  819. where:
  820. image-du = Returned value of the du command on
  821. the image.
  822. overhead = IMAGE_OVERHEAD_FACTOR
  823. rootfs-size = IMAGE_ROOTFS_SIZE
  824. internal-rootfs-size = Initial root filesystem
  825. size before any modifications.
  826. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  827. </literallayout>
  828. <!-- In the above example, <filename>overhead</filename> is defined by the
  829. <filename><link linkend='var-IMAGE_OVERHEAD_FACTOR'>IMAGE_OVERHEAD_FACTOR</link></filename>
  830. variable, <filename>xspace</filename> is defined by the
  831. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>
  832. variable, and <filename>du</filename> is the results of the disk usage command
  833. on the initially generated image. -->
  834. </para>
  835. </glossdef>
  836. </glossentry>
  837. <glossentry id='var-INC_PR'><glossterm>INC_PR</glossterm>
  838. <glossdef>
  839. <para>Defines the Package revision.
  840. You manually combine values for <filename>INC_PR</filename> into the
  841. <filename>PR</filename> field of the parent recipe.
  842. When you change this variable, you change the <filename>PR</filename>
  843. value for every person that includes the file.</para>
  844. <para>
  845. The following example shows how to use the <filename>INC_PR</filename> variable
  846. given a common <filename>.inc</filename> file that defines the variable.
  847. Once defined, you can use the variable to set the <filename>PR</filename> value:
  848. </para>
  849. <literallayout class='monospaced'>
  850. recipes-graphics/xorg-font/font-util_1.1.1.bb:PR - "$(INC_PR).1"
  851. recipes-graphics/xorg-font/xorg-font-common.inc:INC_PR - "r1"
  852. recipes-graphics/xorg-font/encondings_1.0.3.bb:PR - "$(INC_PR).1"
  853. recipes-graphics/xorg-font/fiont-alias_1.0.2.bb:PR - "$(INC_PR).0"
  854. </literallayout>
  855. </glossdef>
  856. </glossentry>
  857. <glossentry id='var-INHIBIT_PACKAGE_STRIP'><glossterm>INHIBIT_PACKAGE_STRIP</glossterm>
  858. <glossdef>
  859. <para>
  860. Causes the build to not strip binaries in resulting packages.
  861. </para>
  862. </glossdef>
  863. </glossentry>
  864. <glossentry id='var-INHERIT'><glossterm>INHERIT</glossterm>
  865. <glossdef>
  866. <para>
  867. Causes the named class to be inherited at
  868. this point during parsing.
  869. The variable is only valid in configuration files.
  870. </para>
  871. </glossdef>
  872. </glossentry>
  873. <glossentry id='var-INITSCRIPT_PACKAGES'><glossterm>INITSCRIPT_PACKAGES</glossterm>
  874. <glossdef>
  875. <para>
  876. A list of the packages that contain initscripts.
  877. If multiple packages are specified, you need to append the package name
  878. to the other <filename>INITSCRIPT_*</filename> as an override.</para>
  879. <para>
  880. This variable is used in recipes when using <filename>update-rc.d.bbclass</filename>.
  881. The variable is optional and defaults to the <filename>PN</filename> variable.
  882. </para>
  883. </glossdef>
  884. </glossentry>
  885. <glossentry id='var-INITSCRIPT_NAME'><glossterm>INITSCRIPT_NAME</glossterm>
  886. <glossdef>
  887. <para>
  888. The filename of the initscript (as installed to <filename>${etcdir}/init.d)</filename>.
  889. </para>
  890. <para>
  891. This variable is used in recipes when using <filename>update-rc.d.bbclass</filename>.
  892. The variable is Mandatory.
  893. </para>
  894. </glossdef>
  895. </glossentry>
  896. <glossentry id='var-INITSCRIPT_PARAMS'><glossterm>INITSCRIPT_PARAMS</glossterm>
  897. <glossdef>
  898. <para>
  899. Specifies the options to pass to <filename>update-rc.d</filename>.
  900. An example is <filename>start 99 5 2 . stop 20 0 1 6 .</filename>, which gives the script a
  901. runlevel of 99, starts the script in initlevels 2 and 5, and
  902. stops the script in levels 0, 1 and 6.
  903. </para>
  904. <para>
  905. The variable is mandatory and is used in recipes when using
  906. <filename>update-rc.d.bbclass</filename>.
  907. </para>
  908. </glossdef>
  909. </glossentry>
  910. </glossdiv>
  911. <!-- <glossdiv id='var-glossary-j'><title>J</title>-->
  912. <!-- </glossdiv>-->
  913. <glossdiv id='var-glossary-k'><title>K</title>
  914. <glossentry id='var-KERNEL_FEATURES'><glossterm>KERNEL_FEATURES</glossterm>
  915. <glossdef>
  916. <para>Includes additional metadata from the Linux Yocto kernel Git repository.
  917. In the Yocto Project build system, the default Board Support Packages (BSPs)
  918. metadata is provided through
  919. the <filename>KMACHINE</filename> and <filename>KBRANCH</filename> variables.
  920. You can use the <filename>KERNEL_FEATURES</filename> variable to further
  921. add metadata for all BSPs.</para>
  922. <para>The metadata you add through this variable includes config fragments and
  923. features descriptions,
  924. which usually includes patches as well as config fragments.
  925. You typically override the <filename>KERNEL_FEATURES</filename> variable
  926. for a specific machine.
  927. In this way, you can provide validated, but optional, sets of kernel
  928. configurations and features.</para>
  929. <para>For example, the following adds <filename>netfilter</filename> to all
  930. the Linux Yocto kernels and adds sound support to the <filename>qemux86</filename>
  931. machine:
  932. <literallayout class='monospaced'>
  933. # Add netfilter to all linux-yocto kernels
  934. KERNEL_FEATURES="features/netfilter"
  935. # Add sound support to the qemux86 machine
  936. KERNEL_FEATURES_append_qemux86="cfg/sound"
  937. </literallayout></para>
  938. </glossdef>
  939. </glossentry>
  940. <glossentry id='var-KERNEL_IMAGETYPE'><glossterm>KERNEL_IMAGETYPE</glossterm>
  941. <glossdef>
  942. <para>The type of kernel to build for a device, usually set by the
  943. machine configuration files and defaults to "zImage".
  944. This variable is used
  945. when building the kernel and is passed to <filename>make</filename> as the target to
  946. build.</para>
  947. </glossdef>
  948. </glossentry>
  949. </glossdiv>
  950. <glossdiv id='var-glossary-l'><title>L</title>
  951. <glossentry id='var-LAYERDEPENDS'><glossterm>LAYERDEPENDS</glossterm>
  952. <glossdef>
  953. <para>Lists the layers that this recipe depends upon, separated by spaces.
  954. Optionally, you can specify a specific layer version for a dependency
  955. by adding it to the end of the layer name with a colon, (e.g. "anotherlayer:3"
  956. to be compared against <filename>LAYERVERSION_anotherlayer</filename> in this case).
  957. An error will be produced if any dependency is missing or
  958. the version numbers do not match exactly (if specified).
  959. This variable is used in the <filename>conf/layer.conf</filename> file
  960. and must be suffixed with the name of the specific layer (e.g.
  961. <filename>LAYERDEPENDS_mylayer</filename>).</para>
  962. </glossdef>
  963. </glossentry>
  964. <glossentry id='var-LAYERDIR'><glossterm>LAYERDIR</glossterm>
  965. <glossdef>
  966. <para>When used inside the <filename>layer.conf</filename> configuration
  967. file, this variable provides the path of the current layer.
  968. This variable requires immediate expansion
  969. (see the BitBake manual) as lazy expansion can result in
  970. the expansion happening in the wrong directory and therefore
  971. giving the wrong value.</para>
  972. </glossdef>
  973. </glossentry>
  974. <glossentry id='var-LAYERVERSION'><glossterm>LAYERVERSION</glossterm>
  975. <glossdef>
  976. <para>Optionally specifies the version of a layer as a single number.
  977. You can use this within <filename>LAYERDEPENDS</filename> for another layer in order to
  978. depend on a specific version of the layer.
  979. This variable is used in the <filename>conf/layer.conf</filename> file
  980. and must be suffixed with the name of the specific layer (e.g.
  981. <filename>LAYERVERSION_mylayer</filename>).</para>
  982. </glossdef>
  983. </glossentry>
  984. <glossentry id='var-LIC_FILES_CHKSUM'><glossterm>LIC_FILES_CHKSUM</glossterm>
  985. <glossdef>
  986. <para>Checksums of the license text in the recipe source code.</para>
  987. <para>This variable tracks changes in license text of the source
  988. code files.
  989. If the license text is changed, it will trigger a build
  990. failure, which gives the developer an opportunity to review any
  991. license change.</para>
  992. <para>
  993. This variable must be defined for all recipes (unless <filename>LICENSE</filename>
  994. is set to "CLOSED")</para>
  995. <para>For more information, see the
  996. <link linkend='usingpoky-configuring-LIC_FILES_CHKSUM'>
  997. Tracking License Changes</link> section</para>
  998. </glossdef>
  999. </glossentry>
  1000. <glossentry id='var-LICENSE'><glossterm>LICENSE</glossterm>
  1001. <glossdef>
  1002. <para>The list of package source licenses.</para>
  1003. </glossdef>
  1004. </glossentry>
  1005. <glossentry id='var-LICENSE_DIR'><glossterm>LICENSE_DIR</glossterm>
  1006. <glossdef>
  1007. <para>Path to additional licenses used during the build.
  1008. By default, the Yocto Project uses <filename>COMMON_LICENSE_DIR</filename>
  1009. to define the directory that holds common license text used during the build.
  1010. The <filename>LICENSE_DIR</filename> variable allows you to extend that
  1011. location to other areas that have additional licenses:
  1012. <literallayout class='monospaced'>
  1013. LICENSE_DIR += "/path/to/additional/common/licenses"
  1014. </literallayout></para>
  1015. </glossdef>
  1016. </glossentry>
  1017. </glossdiv>
  1018. <glossdiv id='var-glossary-m'><title>M</title>
  1019. <glossentry id='var-MACHINE'><glossterm>MACHINE</glossterm>
  1020. <glossdef>
  1021. <para>Specifies the target device.</para>
  1022. </glossdef>
  1023. </glossentry>
  1024. <glossentry id='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'><glossterm>MACHINE_ESSENTIAL_EXTRA_RDEPENDS</glossterm>
  1025. <glossdef>
  1026. <para></para>
  1027. <para>
  1028. A list of required packages to install as part of the package being
  1029. built.
  1030. The build process depends on these packages being present.
  1031. Furthermore, because this is a "machine essential" variable, the list of
  1032. packages are essential for the machine to boot.
  1033. The impact of this variable affects images based on <filename>task-core-boot</filename>,
  1034. including the <filename>core-image-minimal</filename> image.
  1035. </para>
  1036. <para>
  1037. This variable is similar to the
  1038. <filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</link></filename>
  1039. variable with the exception that the package being built has a build
  1040. dependency on the variable's list of packages.
  1041. In other words, the image will not build if a file in this list is not found.
  1042. </para>
  1043. <para>
  1044. For example, suppose you are building a runtime package that depends
  1045. on a certain disk driver.
  1046. In this case, you would use the following:
  1047. <literallayout class='monospaced'>
  1048. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "&lt;disk_driver&gt;"
  1049. </literallayout>
  1050. </para>
  1051. </glossdef>
  1052. </glossentry>
  1053. <glossentry id='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'><glossterm>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</glossterm>
  1054. <glossdef>
  1055. <para></para>
  1056. <para>
  1057. A list of recommended packages to install as part of the package being
  1058. built.
  1059. The build process does not depend on these packages being present.
  1060. Furthermore, because this is a "machine essential" variable, the list of
  1061. packages are essential for the machine to boot.
  1062. The impact of this variable affects images based on <filename>task-core-boot</filename>,
  1063. including the <filename>core-image-minimal</filename> image.
  1064. </para>
  1065. <para>
  1066. This variable is similar to the
  1067. <filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'>MACHINE_ESSENTIAL_EXTRA_RDEPENDS</link></filename>
  1068. variable with the exception that the package being built does not have a build
  1069. dependency on the variable's list of packages.
  1070. In other words, the image will build if a file in this list is not found.
  1071. However, because this is one of the "essential" variables, the resulting image
  1072. might not boot on the machine.
  1073. Or, if the machine does boot using the image, the machine might not be fully
  1074. functional.
  1075. </para>
  1076. <para>
  1077. Consider an example where you have a custom kernel with a disk driver
  1078. built into the kernel itself, rather than using the driver built as a module.
  1079. If you include the package that has the driver module as part of
  1080. the variable's list, the
  1081. build process will not find that package.
  1082. However, because these packages are "recommends" packages, the build will
  1083. not fail due to the missing package.
  1084. Not accounting for any other problems, the custom kernel would still boot the machine.
  1085. </para>
  1086. <para>
  1087. Some example packages of these machine essentials are flash, screen, keyboard, mouse,
  1088. or touchscreen drivers (depending on the machine).
  1089. </para>
  1090. <para>
  1091. For example, suppose you are building a runtime package that depends
  1092. on a mouse driver.
  1093. In this case, you would use the following:
  1094. <literallayout class='monospaced'>
  1095. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "&lt;mouse_driver&gt;"
  1096. </literallayout>
  1097. </para>
  1098. </glossdef>
  1099. </glossentry>
  1100. <glossentry id='var-MACHINE_EXTRA_RDEPENDS'><glossterm>MACHINE_EXTRA_RDEPENDS</glossterm>
  1101. <glossdef>
  1102. <para>
  1103. A list of optional but non-machine essential packages to install as
  1104. part of the package being built.
  1105. Even though these packages are not essential for the machine to boot,
  1106. the build process depends on them being present.
  1107. The impact of this variable affects all images based on
  1108. <filename>task-base</filename>, which does not include the
  1109. <filename>core-image-minimal</filename> or <filename>core-image-basic</filename>
  1110. images.
  1111. </para>
  1112. <para>
  1113. This variable is similar to the
  1114. <filename><link linkend='var-MACHINE_EXTRA_RRECOMMENDS'>MACHINE_EXTRA_RRECOMMENDS</link></filename>
  1115. variable with the exception that the package being built has a build
  1116. dependency on the variable's list of packages.
  1117. In other words, the image will not build if a file in this list is not found.
  1118. </para>
  1119. <para>
  1120. An example is a machine that might or might not have a WiFi card.
  1121. The package containing the WiFi support is not essential for the
  1122. machine to boot the image.
  1123. If it is not there, the machine will boot but not be able to use the
  1124. WiFi functionality.
  1125. However, if you include the package with the WiFi support as part of the
  1126. variable's package list, the build
  1127. process depends on finding the package.
  1128. In this case, you would use the following:
  1129. <literallayout class='monospaced'>
  1130. MACHINE_EXTRA_RDEPENDS += "&lt;wifi_driver&gt;"
  1131. </literallayout>
  1132. </para>
  1133. </glossdef>
  1134. </glossentry>
  1135. <glossentry id='var-MACHINE_EXTRA_RRECOMMENDS'><glossterm>MACHINE_EXTRA_RRECOMMENDS</glossterm>
  1136. <glossdef>
  1137. <para></para>
  1138. <para>
  1139. A list of optional but non-machine essential packages to install as
  1140. part of the package being built.
  1141. The package being built has no build dependency on the list of packages
  1142. with this variable.
  1143. The impact of this variable affects only images based on
  1144. <filename>task-base</filename>, which does not include the
  1145. <filename>core-image-minimal</filename> or <filename>core-image-basic</filename>
  1146. images.
  1147. </para>
  1148. <para>
  1149. This variable is similar to the
  1150. <filename><link linkend='var-MACHINE_EXTRA_RDEPENDS'>MACHINE_EXTRA_RDEPENDS</link></filename>
  1151. variable with the exception that the package being built does not have a build
  1152. dependency on the variable's list of packages.
  1153. In other words, the image will build if a file in this list is not found.
  1154. </para>
  1155. <para>
  1156. An example is a machine that might or might not have a WiFi card.
  1157. The package containing the WiFi support is not essential for the
  1158. machine to boot the image.
  1159. If it is not there, the machine will boot but not be able to use the
  1160. WiFi functionality.
  1161. You are free to either include or not include the
  1162. the package with the WiFi support as part of the
  1163. variable's package list, the build
  1164. process does not depend on finding the package.
  1165. If you include the package, you would use the following:
  1166. <literallayout class='monospaced'>
  1167. MACHINE_EXTRA_RRECOMMENDS += "&lt;wifi_driver&gt;"
  1168. </literallayout>
  1169. </para>
  1170. </glossdef>
  1171. </glossentry>
  1172. <glossentry id='var-MACHINE_FEATURES'><glossterm>MACHINE_FEATURES</glossterm>
  1173. <glossdef>
  1174. <para>Specifies the list of device features.
  1175. See the <link linkend='ref-features-machine'>Machine</link> section for
  1176. more information.</para>
  1177. </glossdef>
  1178. </glossentry>
  1179. <glossentry id='var-MAINTAINER'><glossterm>MAINTAINER</glossterm>
  1180. <glossdef>
  1181. <para>The email address of the distribution maintainer.</para>
  1182. </glossdef>
  1183. </glossentry>
  1184. </glossdiv>
  1185. <!-- <glossdiv id='var-glossary-n'><title>N</title>-->
  1186. <!-- </glossdiv>-->
  1187. <!-- <glossdiv id='var-glossary-o'><title>O</title>-->
  1188. <!-- </glossdiv>-->
  1189. <glossdiv id='var-glossary-p'><title>P</title>
  1190. <glossentry id='var-PACKAGE_ARCH'><glossterm>PACKAGE_ARCH</glossterm>
  1191. <glossdef>
  1192. <para>The architecture of the resulting package.</para>
  1193. </glossdef>
  1194. </glossentry>
  1195. <glossentry id='var-PACKAGE_CLASSES'><glossterm>PACKAGE_CLASSES</glossterm>
  1196. <glossdef>
  1197. <para>This variable, which is set in the <filename>local.conf</filename> configuration
  1198. file found in the Yocto Project file's <filename>conf</filename> directory,
  1199. specifies the package manager to use when packaging data.
  1200. You can provide one or more arguments for the variable with the first
  1201. argument being the package manager used to create images:
  1202. <literallayout class='monospaced'>
  1203. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  1204. </literallayout>
  1205. For information on build performance effects as a result of the
  1206. package manager use, see
  1207. <link linkend='ref-classes-package'>Packaging - <filename>package*.bbclass</filename></link>
  1208. in this manual.
  1209. </para>
  1210. </glossdef>
  1211. </glossentry>
  1212. <glossentry id='var-PACKAGE_EXTRA_ARCHS'><glossterm>PACKAGE_EXTRA_ARCHS</glossterm>
  1213. <glossdef>
  1214. <para>Specifies the list of architectures compatible with the device CPU.
  1215. This variable is useful when you build for several different devices that use
  1216. miscellaneous processors such as XScale and ARM926-EJS).</para>
  1217. </glossdef>
  1218. </glossentry>
  1219. <glossentry id='var-PACKAGES'><glossterm>PACKAGES</glossterm>
  1220. <glossdef>
  1221. <para>The list of packages to be created from the recipe.
  1222. The default value is "${PN}-dbg ${PN} ${PN}-doc ${PN}-dev".</para>
  1223. </glossdef>
  1224. </glossentry>
  1225. <glossentry id='var-PARALLEL_MAKE'><glossterm>PARALLEL_MAKE</glossterm>
  1226. <glossdef>
  1227. <para>Specifies extra options that are passed to the <filename>make</filename> command during the
  1228. compile tasks.
  1229. This variable is usually in the form <filename>-j 4</filename>, where the number
  1230. represents the maximum number of parallel threads make can run.
  1231. If you development host supports multiple cores a good rule of thumb is to set
  1232. this variable to twice the number of cores on the host.</para>
  1233. </glossdef>
  1234. </glossentry>
  1235. <glossentry id='var-PN'><glossterm>PN</glossterm>
  1236. <glossdef>
  1237. <para>The name of the package.
  1238. </para>
  1239. </glossdef>
  1240. </glossentry>
  1241. <glossentry id='var-PR'><glossterm>PR</glossterm>
  1242. <glossdef>
  1243. <para>The revision of the package.
  1244. The default value for this variable is "r0".
  1245. </para>
  1246. </glossdef>
  1247. </glossentry>
  1248. <glossentry id='var-PV'><glossterm>PV</glossterm>
  1249. <glossdef>
  1250. <para>The version of the package.
  1251. The version is normally extracted from the recipe name.
  1252. For example, if the recipe is named
  1253. <filename>expat_2.0.1.bb</filename>, then <filename>PV</filename>
  1254. will be <filename>2.0.1</filename>.
  1255. <filename>PV</filename> is generally not overridden within
  1256. a recipe unless it is building an unstable version from a source code repository
  1257. (e.g. Git or Subversion).
  1258. </para>
  1259. </glossdef>
  1260. </glossentry>
  1261. <glossentry id='var-PE'><glossterm>PE</glossterm>
  1262. <glossdef>
  1263. <para>
  1264. the epoch of the package.
  1265. The default value is "0".
  1266. The field is used to make upgrades possible when the versioning scheme changes in
  1267. some backwards incompatible way.
  1268. </para>
  1269. </glossdef>
  1270. </glossentry>
  1271. <glossentry id='var-PREFERRED_PROVIDER'><glossterm>PREFERRED_PROVIDER</glossterm>
  1272. <glossdef>
  1273. <para>
  1274. If multiple recipes provide an item, this variable
  1275. determines which recipe should be given preference.
  1276. The variable must always be suffixed with the name of the
  1277. provided item, and should be set to the
  1278. <filename>$PN</filename> of the recipe
  1279. to which you want to give precedence.
  1280. Here is an example:
  1281. <literallayout class='monospaced'>
  1282. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  1283. </literallayout>
  1284. </para>
  1285. </glossdef>
  1286. </glossentry>
  1287. <glossentry id='var-PREFERRED_VERSION'><glossterm>PREFERRED_VERSION</glossterm>
  1288. <glossdef>
  1289. <para>
  1290. If there are multiple versions of recipes available, this
  1291. variable determines which recipe should be given preference.
  1292. The variable must always be suffixed with the <filename>$PN</filename>
  1293. for which to select, and should be set to the
  1294. <filename>$PV</filename> to which you want to give precedence.
  1295. You can use the "<filename>%</filename>" character as a wildcard
  1296. to match any number of characters, which can be useful when
  1297. specifying versions that contain long revision number that could
  1298. potentially change.
  1299. Here are two examples:
  1300. <literallayout class='monospaced'>
  1301. PREFERRED_VERSION_python = "2.6.6"
  1302. PREFERRED_VERSION_linux-yocto = "3.0+git%"
  1303. </literallayout>
  1304. </para>
  1305. </glossdef>
  1306. </glossentry>
  1307. </glossdiv>
  1308. <!-- <glossdiv id='var-glossary-q'><title>Q</title>-->
  1309. <!-- </glossdiv>-->
  1310. <glossdiv id='var-glossary-r'><title>R</title>
  1311. <glossentry id='var-RCONFLICTS'><glossterm>RCONFLICTS</glossterm>
  1312. <glossdef>
  1313. <para>The list of packages that conflict with this package.
  1314. Note that the package will not be installed if the conflicting packages are not
  1315. first removed.</para>
  1316. </glossdef>
  1317. </glossentry>
  1318. <glossentry id='var-RDEPENDS'><glossterm>RDEPENDS</glossterm>
  1319. <glossdef>
  1320. <para>
  1321. A list of packages that must be installed as part of a package being built.
  1322. The package being built has a runtime dependency on the packages in the
  1323. variable's list.
  1324. In other words, in order for the package being built to run correctly,
  1325. it depends on these listed packages.
  1326. If a package in this list cannot be found during the build, the build
  1327. will not complete.
  1328. </para>
  1329. <para>
  1330. Because the <filename>RDEPENDS</filename> variable applies to packages
  1331. being built, you should
  1332. always attach an override to the variable to specify the particular runtime package
  1333. that has the dependency.
  1334. For example, suppose you are building a development package that depends
  1335. on the <filename>perl</filename> package.
  1336. In this case, you would use the following <filename>RDEPENDS</filename>
  1337. statement:
  1338. <literallayout class='monospaced'>
  1339. RDEPENDS_${PN}-dev += "perl"
  1340. </literallayout>
  1341. In the example, the package name (<filename>${PN}-dev</filename>) must
  1342. appear as it would in the
  1343. <filename><link linkend='var-PACKAGES'>PACKAGES</link></filename> namespace before any
  1344. renaming of the output package by classes like <filename>debian.bbclass</filename>.
  1345. </para>
  1346. <para>
  1347. Some automatic handling occurs around the <filename>RDEPENDS</filename>
  1348. variable:
  1349. <itemizedlist>
  1350. <listitem><para><emphasis><filename>shlibdeps</filename></emphasis>: If a runtime
  1351. package contains a shared library (<filename>.so</filename>), the build
  1352. processes the library in order to determine other libraries to which it
  1353. is dynamically linked.
  1354. The build process adds these libraries to <filename>RDEPENDS</filename>
  1355. to create the runtime package.</para></listitem>
  1356. <listitem><para><emphasis><filename>pcdeps</filename></emphasis>: If the package
  1357. ships a <filename>pkg-config</filename> information file, the build process
  1358. uses this file to add items to the <filename>RDEPENDS</filename>
  1359. variable to create the runtime packages.
  1360. </para></listitem>
  1361. </itemizedlist>
  1362. </para>
  1363. </glossdef>
  1364. </glossentry>
  1365. <glossentry id='var-RRECOMMENDS'><glossterm>RRECOMMENDS</glossterm>
  1366. <glossdef>
  1367. <para>
  1368. A list of packages that extend the usability of a package being
  1369. built.
  1370. The package being built does not depend on this list of packages in
  1371. order to successfully build, but needs them for the extended usability.
  1372. To specify runtime dependencies for packages, see the
  1373. <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename> variable.
  1374. </para>
  1375. <para>
  1376. The Yocto Project build process automatically installs the list of packages
  1377. as part of the built package.
  1378. However, you can remove them later if you want.
  1379. If, during the build, a package from the list cannot be found, the build
  1380. process continues without an error.
  1381. </para>
  1382. <para>
  1383. Because the <filename>RRECOMMENDS</filename> variable applies to packages
  1384. being built, you should
  1385. always attach an override to the variable to specify the particular package
  1386. whose usability is being extended.
  1387. For example, suppose you are building a development package that is extended
  1388. to support wireless functionality.
  1389. In this case, you would use the following:
  1390. <literallayout class='monospaced'>
  1391. RRECOMMENDS_${PN}-dev += "&lt;wireless_package_name&gt;"
  1392. </literallayout>
  1393. In the example, the package name (<filename>${PN}-dev</filename>) must
  1394. appear as it would in the
  1395. <filename><link linkend='var-PACKAGES'>PACKAGES</link></filename> namespace before any
  1396. renaming of the output package by classes like <filename>debian.bbclass</filename>.
  1397. </para>
  1398. </glossdef>
  1399. </glossentry>
  1400. <glossentry id='var-RREPLACES'><glossterm>RREPLACES</glossterm>
  1401. <glossdef>
  1402. <para>The list of packages that are replaced with this package.</para>
  1403. </glossdef>
  1404. </glossentry>
  1405. </glossdiv>
  1406. <glossdiv id='var-glossary-s'><title>S</title>
  1407. <glossentry id='var-S'><glossterm>S</glossterm>
  1408. <glossdef>
  1409. <para>
  1410. The location in the <ulink url='&YOCTO_DOCS_DEV_URL;#yocto-project-build-directory'>
  1411. Yocto Project Build Directory</ulink> where unpacked package source code resides.
  1412. This location is within the working directory
  1413. (<filename><link linkend='var-WORKDIR'>WORKDIR</link></filename>), which
  1414. is not static.
  1415. The unpacked source location depends on the package name
  1416. (<filename><link linkend='var-PN'>PN</link></filename>) and
  1417. package version (<filename><link linkend='var-PV'>PV</link></filename>) as
  1418. follows:
  1419. <literallayout class='monospaced'>
  1420. ${WORKDIR}/${PN}-${PV}
  1421. </literallayout>
  1422. As an example, assume a
  1423. <ulink url='&YOCTO_DOCS_DEV_URL;#yocto-project-files'>
  1424. Yocto Project Files</ulink> top-level directory named <filename>poky</filename>
  1425. and a default Yocto Project Build Directory of <filename>poky/build</filename>.
  1426. In this case, the working directory the build system uses to build
  1427. the <filename>db</filename> package is the following:
  1428. <literallayout class='monospaced'>
  1429. ~/poky/build/tmp/work/qemux86-poky-linux/db-5.1.19-r3/db-5.1.19
  1430. </literallayout>
  1431. </para>
  1432. </glossdef>
  1433. </glossentry>
  1434. <glossentry id='var-SECTION'><glossterm>SECTION</glossterm>
  1435. <glossdef>
  1436. <para>The section where package should be put.
  1437. Package managers use this variable.</para>
  1438. </glossdef>
  1439. </glossentry>
  1440. <glossentry id='var-SELECTED_OPTIMIZATION'><glossterm>SELECTED_OPTIMIZATION</glossterm>
  1441. <glossdef>
  1442. <para>
  1443. The variable takes the value of
  1444. <filename><link linkend='var-FULL_OPTIMIZATION'>FULL_OPTIMIZATION</link></filename>
  1445. unless <filename><link linkend='var-DEBUG_BUILD'>DEBUG_BUILD</link></filename> = "1".
  1446. In this case the value of
  1447. <filename><link linkend='var-DEBUG_OPTIMIZATION'>DEBUG_OPTIMIZATION</link></filename> is used.
  1448. </para>
  1449. </glossdef>
  1450. </glossentry>
  1451. <glossentry id='var-SERIAL_CONSOLE'><glossterm>SERIAL_CONSOLE</glossterm>
  1452. <glossdef>
  1453. <para>The speed and device for the serial port used to attach the serial console.
  1454. This variable is given to the kernel as the "console"
  1455. parameter and after booting occurs <filename>getty</filename> is started on that port
  1456. so remote login is possible.</para>
  1457. </glossdef>
  1458. </glossentry>
  1459. <glossentry id='var-SSTATE_DIR'><glossterm>SSTATE_DIR</glossterm>
  1460. <glossdef>
  1461. <para>The directory for the shared state.</para>
  1462. </glossdef>
  1463. </glossentry>
  1464. <glossentry id='var-SITEINFO_ENDIANNESS'><glossterm>SITEINFO_ENDIANNESS</glossterm>
  1465. <glossdef>
  1466. <para>
  1467. Specifies the endian byte order of the target system.
  1468. The variable is either "le" for little-endian or "be" for big-endian.
  1469. </para>
  1470. </glossdef>
  1471. </glossentry>
  1472. <glossentry id='var-SITEINFO_BITS'><glossterm>SITEINFO_BITS</glossterm>
  1473. <glossdef>
  1474. <para>
  1475. Specifies the number of bits for the target system CPU.
  1476. The variable is either "32" or "64".
  1477. </para>
  1478. </glossdef>
  1479. </glossentry>
  1480. <glossentry id='var-SRC_URI'><glossterm>SRC_URI</glossterm>
  1481. <glossdef>
  1482. <para>The list of source files - local or remote.</para>
  1483. </glossdef>
  1484. </glossentry>
  1485. <glossentry id='var-SRC_URI_OVERRIDES_PACKAGE_ARCH'><glossterm>SRC_URI_OVERRIDES_PACKAGE_ARCH</glossterm>
  1486. <glossdef>
  1487. <para></para>
  1488. <para>
  1489. By default, the Yocto Project automatically detects whether
  1490. <filename><link linkend='var-SRC_URI'>SRC_URI</link></filename>
  1491. contains files that are machine-specific.
  1492. If so, the Yocto Project automatically changes
  1493. <filename><link linkend='var-PACKAGE_ARCH'>PACKAGE_ARCH</link></filename>.
  1494. Setting this variable to "0" disables this behavior.
  1495. </para>
  1496. </glossdef>
  1497. </glossentry>
  1498. <glossentry id='var-SRCDATE'><glossterm>SRCDATE</glossterm>
  1499. <glossdef>
  1500. <para>
  1501. The date of the source code used to build the package.
  1502. This variable applies only if the source was fetched from a Source Code Manager (SCM).
  1503. </para>
  1504. </glossdef>
  1505. </glossentry>
  1506. <glossentry id='var-SRCREV'><glossterm>SRCREV</glossterm>
  1507. <glossdef>
  1508. <para>
  1509. The revision of the source code used to build the package.
  1510. This variable applies to Subversion, Git, Mercurial and Bazaar
  1511. only.
  1512. Note that if you wish to build a fixed revision and you wish
  1513. to avoid performing a query on the remote repository every time
  1514. BitBake parses your recipe, you should specify a <filename>SRCREV</filename> that is a
  1515. full revision identifier and not just a tag.
  1516. </para>
  1517. </glossdef>
  1518. </glossentry>
  1519. <glossentry id='var-STAGING_KERNEL_DIR'><glossterm>STAGING_KERNEL_DIR</glossterm>
  1520. <glossdef>
  1521. <para>
  1522. The directory with kernel headers that are required to build out-of-tree
  1523. modules.
  1524. </para>
  1525. </glossdef>
  1526. </glossentry>
  1527. <glossentry id='var-STAMP'><glossterm>STAMP</glossterm>
  1528. <glossdef>
  1529. <para>
  1530. The directory (usually <filename>TMPDIR/stamps</filename>) with timestamps of
  1531. executed tasks.
  1532. </para>
  1533. </glossdef>
  1534. </glossentry>
  1535. <glossentry id='var-SUMMARY'><glossterm>SUMMARY</glossterm>
  1536. <glossdef>
  1537. <para>The short (72 characters or less) summary of the binary package for packaging
  1538. systems such as <filename>ipkg</filename>, <filename>rpm</filename> or
  1539. <filename>debian</filename>.
  1540. By default, this variable inherits <filename>DESCRIPTION</filename>.</para>
  1541. </glossdef>
  1542. </glossentry>
  1543. </glossdiv>
  1544. <glossdiv id='var-glossary-t'><title>T</title>
  1545. <glossentry id='var-TARGET_ARCH'><glossterm>TARGET_ARCH</glossterm>
  1546. <glossdef>
  1547. <para>The architecture of the device being built.
  1548. While a number of values are possible, the Yocto Project primarily supports
  1549. <filename>arm</filename> and <filename>i586</filename>.</para>
  1550. </glossdef>
  1551. </glossentry>
  1552. <glossentry id='var-TARGET_CFLAGS'><glossterm>TARGET_CFLAGS</glossterm>
  1553. <glossdef>
  1554. <para>
  1555. Flags passed to the C compiler for the target system.
  1556. This variable evaluates to the same as
  1557. <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename>.
  1558. </para>
  1559. </glossdef>
  1560. </glossentry>
  1561. <glossentry id='var-TARGET_FPU'><glossterm>TARGET_FPU</glossterm>
  1562. <glossdef>
  1563. <para>Specifies the method for handling FPU code.
  1564. For FPU-less targets, which include most ARM CPUs, the variable must be
  1565. set to "soft".
  1566. If not, the kernel emulation gets used, which results in a performance penalty.</para>
  1567. </glossdef>
  1568. </glossentry>
  1569. <glossentry id='var-TARGET_OS'><glossterm>TARGET_OS</glossterm>
  1570. <glossdef>
  1571. <para>Specifies the target's operating system.
  1572. The variable can be set to "linux" for <filename>eglibc</filename>-based systems and
  1573. to "linux-uclibc" for <filename>uclibc</filename>.
  1574. For ARM/EABI targets, there are also "linux-gnueabi" and
  1575. "linux-uclibc-gnueabi" values possible.</para>
  1576. </glossdef>
  1577. </glossentry>
  1578. <glossentry id='var-TCLIBC'><glossterm>TCLIBC</glossterm>
  1579. <glossdef>
  1580. <para>
  1581. Specifies which variant of the GNU standard C library (<filename>libc</filename>)
  1582. to use during the build process.
  1583. This variable replaces <filename>POKYLIBC</filename>, which is no longer
  1584. supported.
  1585. </para>
  1586. <para>
  1587. You can select <filename>eglibc</filename> or <filename>uclibc</filename>.
  1588. <note>
  1589. This release of the Yocto Project does not support the
  1590. <filename>glibc</filename> implementation of <filename>libc</filename>.
  1591. </note>
  1592. </para>
  1593. </glossdef>
  1594. </glossentry>
  1595. <glossentry id='var-TCMODE'><glossterm>TCMODE</glossterm>
  1596. <glossdef>
  1597. <para>
  1598. The toolchain selector.
  1599. This variable replaces <filename>POKYMODE</filename>, which is no longer
  1600. supported.
  1601. </para>
  1602. <para>
  1603. The <filename>TCMODE</filename> variable selects the external toolchain
  1604. built from the Yocto Project or a few supported combinations of
  1605. the upstream GCC or CodeSourcery Labs toolchain.
  1606. The variable determines which of the files in
  1607. <filename>meta/conf/distro/include/tcmode-*</filename> is used.
  1608. </para>
  1609. <para>
  1610. By default, <filename>TCMODE</filename> is set to "default", which
  1611. chooses <filename>tcmode-default.inc</filename>.
  1612. The variable is similar to <filename>TCLIBC</filename>, which controls
  1613. the variant of the GNU standard C library (<filename>libc</filename>)
  1614. used during the build process: <filename>eglibc</filename> or <filename>uclibc</filename>.
  1615. </para>
  1616. </glossdef>
  1617. </glossentry>
  1618. <glossentry id='var-TMPDIR'><glossterm>TMPDIR</glossterm>
  1619. <glossdef>
  1620. <para>
  1621. This variable is the temporary directory the Yocto Project build system
  1622. uses when it does its work building images.
  1623. By default, the <filename>TMPDIR</filename> variable is named
  1624. <filename>tmp</filename> within the
  1625. <ulink url='&YOCTO_DOCS_DEV_URL;#yocto-project-build-directory'>
  1626. Yocto Project Build Directory</ulink>.
  1627. </para>
  1628. <para>
  1629. If you want to establish this directory in a location other than the
  1630. default, you can uncomment the following statement in the
  1631. <filename>conf/local.conf</filename> file in the
  1632. <ulink url='&YOCTO_DOCS_DEV_URL;#yocto-project-files'>
  1633. Yocto Project Files</ulink>:
  1634. <literallayout class='monospaced'>
  1635. #TMPDIR = "${TOPDIR}/tmp"
  1636. </literallayout>
  1637. </para>
  1638. </glossdef>
  1639. </glossentry>
  1640. <glossentry id='var-TOPDIR'><glossterm>TOPDIR</glossterm>
  1641. <glossdef>
  1642. <para>
  1643. This variable is the
  1644. <ulink url='&YOCTO_DOCS_DEV_URL;#yocto-project-build-directory'>
  1645. Yocto Project Build Directory</ulink>.
  1646. BitBake automatically sets this variable.
  1647. The Yocto Project build system uses the build directory when building images.
  1648. </para>
  1649. </glossdef>
  1650. </glossentry>
  1651. </glossdiv>
  1652. <!-- <glossdiv id='var-glossary-u'><title>U</title>-->
  1653. <!-- </glossdiv>-->
  1654. <!-- <glossdiv id='var-glossary-v'><title>V</title>-->
  1655. <!-- </glossdiv>-->
  1656. <glossdiv id='var-glossary-w'><title>W</title>
  1657. <glossentry id='var-WORKDIR'><glossterm>WORKDIR</glossterm>
  1658. <glossdef>
  1659. <para>
  1660. The pathname of the working directory in which the Yocto Project build system
  1661. builds packages.
  1662. This directory is located within the
  1663. <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link> directory structure and changes
  1664. as different packages are built.
  1665. </para>
  1666. <para>
  1667. The actual <filename>WORKDIR</filename> directory depends on several things:
  1668. <itemizedlist>
  1669. <listitem>The temporary directory - <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link></listitem>
  1670. <listitem>The package architecture - <link linkend='var-PACKAGE_ARCH'><filename>PACKAGE_ARCH</filename></link></listitem>
  1671. <listitem>The target machine - <link linkend='var-MACHINE'><filename>MACHINE</filename></link></listitem>
  1672. <listitem>The target operating system - <link linkend='var-TARGET_OS'><filename>TARGET_OS</filename></link></listitem>
  1673. <listitem>The package name - <link linkend='var-PN'><filename>PN</filename></link></listitem>
  1674. <listitem>The package version - <link linkend='var-PV'><filename>PV</filename></link></listitem>
  1675. <listitem>The package revision - <link linkend='var-PR'><filename>PR</filename></link></listitem>
  1676. </itemizedlist>
  1677. </para>
  1678. <para>
  1679. For packages that are not dependent on a particular machine,
  1680. <filename>WORKDIR</filename> is defined as follows:
  1681. <literallayout class='monospaced'>
  1682. ${TMPDIR}/work/${PACKAGE_ARCH}-poky-${TARGET_OS}/${PN}-${PV}-${PR}
  1683. </literallayout>
  1684. As an example, assume a
  1685. <ulink url='&YOCTO_DOCS_DEV_URL;#yocto-project-files'>
  1686. Yocto Project Files</ulink> top-level directory named <filename>poky</filename>
  1687. and a default
  1688. <ulink url='&YOCTO_DOCS_DEV_URL;#yocto-project-build-directory'>
  1689. Yocto Project Build Directory</ulink> of <filename>poky/build</filename>.
  1690. In this case, the working directory the build system uses to build
  1691. the <filename>v86d</filename> package is the following:
  1692. <literallayout class='monospaced'>
  1693. ~/poky/build/tmp/work/qemux86-poky-linux/v86d-01.9-r0
  1694. </literallayout>
  1695. </para>
  1696. <para>
  1697. For packages that are dependent on a particular machine, <filename>WORKDIR</filename>
  1698. is defined slightly different:
  1699. <literallayout class='monospaced'>
  1700. ${TMPDIR}/work/${MACHINE}-poky-${TARGET_OS}/${PN}-${PV}-${PR}
  1701. </literallayout>
  1702. As an example, again assume a Yocto Project Files top-level directory
  1703. named <filename>poky</filename> and a default Yocto Project build directory
  1704. of <filename>poky/build</filename>.
  1705. In this case, the working directory the build system uses to build
  1706. the <filename>acl</filename> package, which is dependent on a
  1707. MIPS-based device, is the following:
  1708. <literallayout class='monospaced'>
  1709. ~/poky/build/tmp/work/mips-poky-linux/acl-2.2.51-r2
  1710. </literallayout>
  1711. </para>
  1712. </glossdef>
  1713. </glossentry>
  1714. </glossdiv>
  1715. <!-- <glossdiv id='var-glossary-x'><title>X</title>-->
  1716. <!-- </glossdiv>-->
  1717. <!-- <glossdiv id='var-glossary-y'><title>Y</title>-->
  1718. <!-- </glossdiv>-->
  1719. <!-- <glossdiv id='var-glossary-z'><title>Z</title>-->
  1720. <!-- </glossdiv>-->
  1721. </glossary>
  1722. </appendix>
  1723. <!--
  1724. vim: expandtab tw=80 ts=4
  1725. -->