overview-manual-yp-intro.xml 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336
  1. <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  2. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
  3. [<!ENTITY % poky SYSTEM "../poky.ent"> %poky; ] >
  4. <chapter id='overview-yp'>
  5. <title>Introducing the Yocto Project</title>
  6. <section id='what-is-the-yocto-project'>
  7. <title>What is the Yocto Project?</title>
  8. <para>
  9. The Yocto Project is an open source collaboration project
  10. that helps developers create custom Linux-based systems that are
  11. designed for embedded products regardless of the product's hardware
  12. architecture.
  13. Yocto Project provides a flexible toolset and a development
  14. environment that allows embedded device developers across the
  15. world to collaborate through shared technologies, software stacks,
  16. configurations, and best practices used to create these tailored
  17. Linux images.
  18. </para>
  19. <para>
  20. Thousands of developers worldwide have discovered that Yocto
  21. Project provides advantages in both systems and applications
  22. development, archival and management benefits, and customizations
  23. used for speed, footprint, and memory utilization.
  24. The project is a standard when it comes to delivering embedded
  25. software stacks.
  26. The project allows software customizations and build interchange
  27. for multiple hardware platforms as well as software stacks that
  28. can be maintained and scaled.
  29. </para>
  30. <para id='yp-key-dev-elements'>
  31. <imagedata fileref="figures/key-dev-elements.png" format="PNG" align='center' width="8in"/>
  32. </para>
  33. <para>
  34. For further introductory information on the Yocto Project, you
  35. might be interested in this
  36. <ulink url='https://www.embedded.com/electronics-blogs/say-what-/4458600/Why-the-Yocto-Project-for-my-IoT-Project-'>article</ulink>
  37. by Drew Moseley and in this short introductory
  38. <ulink url='https://www.youtube.com/watch?v=utZpKM7i5Z4'>video</ulink>.
  39. </para>
  40. <para>
  41. The remainder of this section overviews advantages and challenges
  42. tied to the Yocto Project.
  43. </para>
  44. <section id='gs-features'>
  45. <title>Features</title>
  46. <para>
  47. The following list describes features and advantages of the
  48. Yocto Project:
  49. <itemizedlist>
  50. <listitem><para>
  51. <emphasis>Widely Adopted Across the Industry:</emphasis>
  52. Semiconductor, operating system, software, and
  53. service vendors exist whose products and services
  54. adopt and support the Yocto Project.
  55. For a look at the companies involved with the Yocto
  56. Project, see the membership, associate, and
  57. participant pages on the Yocto Project home page.
  58. </para></listitem>
  59. <listitem><para>
  60. <emphasis>Architecture Agnostic:</emphasis>
  61. Yocto Project supports Intel, ARM, MIPS, AMD, PPC
  62. and other architectures.
  63. Most ODMs, OSVs, and chip vendors create and supply
  64. BSPs that support their hardware.
  65. If you have custom silicon, you can create a BSP
  66. that supports that architecture.</para>
  67. <para>Aside from lots of architecture support, the
  68. Yocto Project fully supports a wide range of device
  69. emulation through the Quick EMUlator (QEMU).
  70. </para></listitem>
  71. <listitem><para>
  72. <emphasis>Images and Code Transfer Easily:</emphasis>
  73. Yocto Project output can easily move between
  74. architectures without moving to new development
  75. environments.
  76. Additionally, if you have used the Yocto Project to
  77. create an image or application and you find yourself
  78. not able to support it, commercial Linux vendors such
  79. as Wind River, Mentor Graphics, Timesys, and ENEA could
  80. take it and provide ongoing support.
  81. These vendors have offerings that are built using
  82. the Yocto Project.
  83. </para></listitem>
  84. <listitem><para>
  85. <emphasis>Flexibility:</emphasis>
  86. Corporations use the Yocto Project many different ways.
  87. One example is to create an internal Linux distribution
  88. as a code base the corporation can use across multiple
  89. product groups.
  90. Through customization and layering, a project group
  91. can leverage the base Linux distribution to create
  92. a distribution that works for their product needs.
  93. </para></listitem>
  94. <listitem><para>
  95. <emphasis>Ideal for Constrained Embedded and IoT devices:</emphasis>
  96. Unlike a full Linux distribution, you can use the
  97. Yocto Project to create exactly what you need for
  98. embedded devices.
  99. You only add the feature support or packages that you
  100. absolutely need for the device.
  101. For devices that have display hardware, you can use
  102. available system components such as X11, GTK+, Qt,
  103. Clutter, and SDL (among others) to create a rich user
  104. experience.
  105. For devices that do not have a display or where you
  106. want to use alternative UI frameworks, you can choose
  107. to not install these components.
  108. </para></listitem>
  109. <listitem><para>
  110. <emphasis>Comprehensive Toolchain Capabilities:</emphasis>
  111. Toolchains for supported architectures satisfy most
  112. use cases.
  113. However, if your hardware supports features that are
  114. not part of a standard toolchain, you can easily
  115. customize that toolchain through specification of
  116. platform-specific tuning parameters.
  117. And, should you need to use a third-party toolchain,
  118. mechanisms built into the Yocto Project allow for that.
  119. </para></listitem>
  120. <listitem><para>
  121. <emphasis>Mechanism Rules Over Policy:</emphasis>
  122. Focusing on mechanism rather than policy ensures that
  123. you are free to set policies based on the needs of your
  124. design instead of adopting decisions enforced by some
  125. system software provider.
  126. </para></listitem>
  127. <listitem><para>
  128. <emphasis>Uses a Layer Model:</emphasis>
  129. The Yocto Project layer infrastructure groups related
  130. functionality into separate bundles.
  131. You can incrementally add these grouped functionalities
  132. to your project as needed.
  133. Using layers to isolate and group functionality
  134. reduces project complexity and redundancy, allows you
  135. to easily extend the system, make customizations,
  136. and keep functionality organized.
  137. </para></listitem>
  138. <listitem><para>
  139. <emphasis>Supports Partial Builds:</emphasis>
  140. You can build and rebuild individual packages as
  141. needed.
  142. Yocto Project accomplishes this through its
  143. shared-state cache (sstate) scheme.
  144. Being able to build and debug components individually
  145. eases project development.
  146. </para></listitem>
  147. <listitem><para>
  148. <emphasis>Releases According to a Strict Schedule:</emphasis>
  149. Major releases occur on a six-month cycle predictably
  150. in October and April.
  151. The most recent two releases support point releases
  152. to address common vulnerabilities and exposures.
  153. This predictability is crucial for projects based on
  154. the Yocto Project and allows development teams to
  155. plan activities.
  156. </para></listitem>
  157. <listitem><para>
  158. <emphasis>Rich Ecosystem of Individuals and Organizations:</emphasis>
  159. For open source projects, the value of community is
  160. very important.
  161. Support forums, expertise, and active developers who
  162. continue to push the Yocto Project forward are readily
  163. available.
  164. </para></listitem>
  165. <listitem><para>
  166. <emphasis>Binary Reproducibility:</emphasis>
  167. The Yocto Project allows you to be very specific about
  168. dependencies and achieves very high percentages of
  169. binary reproducibility (e.g. 99.8% for
  170. <filename>core-image-minimal</filename>).
  171. When distributions are not specific about which
  172. packages are pulled in and in what order to support
  173. dependencies, other build systems can arbitrarily
  174. include packages.
  175. </para></listitem>
  176. <listitem><para>
  177. <emphasis>License Manifest:</emphasis>
  178. The Yocto Project provides a license manifest for
  179. review by people who need to track the use of open
  180. source licenses (e.g.legal teams).
  181. </para></listitem>
  182. </itemizedlist>
  183. </para>
  184. </section>
  185. <section id='gs-challenges'>
  186. <title>Challenges</title>
  187. <para>
  188. The following list presents challenges you might encounter
  189. when developing using the Yocto Project:
  190. <itemizedlist>
  191. <listitem><para>
  192. <emphasis>Steep Learning Curve:</emphasis>
  193. The Yocto Project has a steep learning curve and has
  194. many different ways to accomplish similar tasks.
  195. It can be difficult to choose how to proceed when
  196. varying methods exist by which to accomplish a given
  197. task.
  198. </para></listitem>
  199. <listitem><para>
  200. <emphasis>Understanding What Changes You Need to Make
  201. For Your Design Requires Some Research:</emphasis>
  202. Beyond the simple tutorial stage, understanding what
  203. changes need to be made for your particular design
  204. can require a significant amount of research and
  205. investigation.
  206. For information that helps you transition from
  207. trying out the Yocto Project to using it for your
  208. project, see the "What I wish I'd Known" and
  209. "Transitioning to a Custom Environment for Systems
  210. Development" documents on the Yocto Project website.
  211. </para></listitem>
  212. <listitem><para>
  213. <emphasis>Project Workflow Could Be Confusing:</emphasis>
  214. The Yocto Project workflow could be confusing if you
  215. are used to traditional desktop and server software
  216. development.
  217. In a desktop development environment, mechanisms exist
  218. to easily pull and install new packages, which are
  219. typically pre-compiled binaries from servers accessible
  220. over the Internet.
  221. Using the Yocto Project, you must modify your
  222. configuration and rebuild to add additional packages.
  223. </para></listitem>
  224. <listitem><para>
  225. <emphasis>Working in a Cross-Build Environment Can
  226. Feel Unfamiliar:</emphasis>
  227. When developing code to run on a target, compilation,
  228. execution, and testing done on the actual target
  229. can be faster than running a BitBake build on a
  230. development host and then deploying binaries to the
  231. target for test.
  232. While the Yocto Project does support development tools
  233. on the target, the additional step of integrating your
  234. changes back into the Yocto Project build environment
  235. would be required.
  236. Yocto Project supports an intermediate approach that
  237. involves making changes on the development system
  238. within the BitBake environment and then deploying only
  239. the updated packages to the target.</para>
  240. <para>The Yocto Project OpenEmbedded build system
  241. produces packages in standard formats (i.e. RPM,
  242. DEB, IPK, and TAR).
  243. You can deploy these packages into the running system
  244. on the target by using utilities on the target such
  245. as <filename>rpm</filename> or
  246. <filename>ipk</filename>.
  247. </para></listitem>
  248. <listitem><para>
  249. <emphasis>Initial Build Times Can be Significant:</emphasis>
  250. Long initial build times are unfortunately unavoidable
  251. due to the large number of packages initially built
  252. from scratch for a fully functioning Linux system.
  253. Once that initial build is completed, however, the
  254. shared-state (sstate) cache mechanism Yocto Project
  255. uses keeps the system from rebuilding packages that
  256. have not been "touched" since the last build.
  257. The sstate mechanism significantly reduces times
  258. for successive builds.
  259. </para></listitem>
  260. </itemizedlist>
  261. </para>
  262. </section>
  263. </section>
  264. <section id='the-yocto-project-layer-model'>
  265. <title>The Yocto Project Layer Model</title>
  266. <para>
  267. The Yocto Project's "Layer Model" is a development model for
  268. embedded and IoT Linux creation that distinguishes the
  269. Yocto Project from other simple build systems.
  270. The Layer Model simultaneously supports collaboration and
  271. customization.
  272. Layers are repositories that contain related sets of instructions
  273. that tell the OpenEmbedded build system what to do.
  274. You can collaborate, share, and reuse layers.
  275. </para>
  276. <para>
  277. Layers can contain changes to previous instructions or settings
  278. at any time.
  279. This powerful override capability is what allows you to customize
  280. previously supplied collaborative or community layers to suit your
  281. product requirements.
  282. </para>
  283. <para>
  284. You use different layers to logically separate information in your
  285. build.
  286. As an example, you could have BSP, GUI, distro configuration,
  287. middleware, or application layers.
  288. Putting your entire build into one layer limits and complicates
  289. future customization and reuse.
  290. Isolating information into layers, on the other hand, helps
  291. simplify future customizations and reuse.
  292. You might find it tempting to keep everything in one layer when
  293. working on a single project.
  294. However, the more modular your Metadata, the easier
  295. it is to cope with future changes.
  296. <note><title>Notes</title>
  297. <itemizedlist>
  298. <listitem><para>
  299. Use Board Support Package (BSP) layers from silicon
  300. vendors when possible.
  301. </para></listitem>
  302. <listitem><para>
  303. Familiarize yourself with the
  304. <ulink url='https://caffelli-staging.yoctoproject.org/software-overview/layers/'>Yocto Project curated layer index</ulink>
  305. or the
  306. <ulink url='http://layers.openembedded.org/layerindex/branch/master/layers/'>OpenEmbedded layer index</ulink>.
  307. The latter contains more layers but they are less
  308. universally validated.
  309. </para></listitem>
  310. <listitem><para>
  311. Layers support the inclusion of technologies, hardware
  312. components, and software components.
  313. The Yocto Project Compatible designation provides a
  314. minimum level of standardization that contributes to a
  315. strong ecosystem.
  316. "YP Compatible" is applied to appropriate products and
  317. software components such as BSPs, other OE-compatible
  318. layers, and related open-source projects, allowing the
  319. producer to use Yocto Project badges and branding
  320. assets.
  321. </para></listitem>
  322. </itemizedlist>
  323. </note>
  324. </para>
  325. <para>
  326. To illustrate how layers are used to keep things modular, consider
  327. machine customizations.
  328. These types of customizations typically reside in a special layer,
  329. rather than a general layer, called a BSP Layer.
  330. Furthermore, the machine customizations should be isolated from
  331. recipes and Metadata that support a new GUI environment,
  332. for example.
  333. This situation gives you a couple of layers: one for the machine
  334. configurations, and one for the GUI environment.
  335. It is important to understand, however, that the BSP layer can
  336. still make machine-specific additions to recipes within the GUI
  337. environment layer without polluting the GUI layer itself
  338. with those machine-specific changes.
  339. You can accomplish this through a recipe that is a BitBake append
  340. (<filename>.bbappend</filename>) file, which is described later
  341. in this section.
  342. <note>
  343. For general information on BSP layer structure, see the
  344. <ulink url='&YOCTO_DOCS_BSP_URL;'>Yocto Project Board Support Packages (BSP) Developer's Guide</ulink>.
  345. </note>
  346. </para>
  347. <para>
  348. The
  349. <ulink url='&YOCTO_DOCS_REF_URL;#source-directory'>Source Directory</ulink>
  350. contains both general layers and BSP layers right out of the box.
  351. You can easily identify layers that ship with a Yocto Project
  352. release in the Source Directory by their names.
  353. Layers typically have names that begin with the string
  354. <filename>meta-</filename>.
  355. <note>
  356. It is not a requirement that a layer name begin with the
  357. prefix <filename>meta-</filename>, but it is a commonly
  358. accepted standard in the Yocto Project community.
  359. </note>
  360. For example, if you were to examine the
  361. <ulink url='https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/'>tree view</ulink>
  362. of the <filename>poky</filename> repository, you will see several
  363. layers: <filename>meta</filename>,
  364. <filename>meta-skeleton</filename>,
  365. <filename>meta-selftest</filename>,
  366. <filename>meta-poky</filename>, and
  367. <filename>meta-yocto-bsp</filename>.
  368. Each of these repositories represents a distinct layer.
  369. </para>
  370. <para>
  371. For procedures on how to create layers, see the
  372. "<ulink url='&YOCTO_DOCS_DEV_URL;#understanding-and-creating-layers'>Understanding and Creating Layers</ulink>"
  373. section in the Yocto Project Development Tasks Manual.
  374. </para>
  375. </section>
  376. <section id='components-and-tools'>
  377. <title>Components and Tools</title>
  378. <para>
  379. The Yocto Project employs a collection of components and
  380. tools used by the project itself, by project developers,
  381. and by those using the Yocto Project.
  382. These components and tools are open source projects and
  383. metadata that are separate from the reference distribution
  384. (Poky) and the OpenEmbedded build system.
  385. Most of the components and tools are downloaded separately.
  386. </para>
  387. <para>
  388. This section provides brief overviews of the components and
  389. tools associated with the Yocto Project.
  390. </para>
  391. <section id='gs-development-tools'>
  392. <title>Development Tools</title>
  393. <para>
  394. The following list consists of tools that help you develop
  395. images and applications using the Yocto Project:
  396. <itemizedlist>
  397. <listitem><para id='gs-crops-overview'>
  398. <emphasis>CROPS:</emphasis>
  399. <ulink url='https://git.yoctoproject.org/cgit/cgit.cgi/crops/about/'>CROPS</ulink>
  400. is an open source, cross-platform development framework
  401. that leverages
  402. <ulink url='https://www.docker.com/'>Docker Containers</ulink>.
  403. CROPS provides an easily managed, extensible environment
  404. that allows you to build binaries for a variety of
  405. architectures on Windows, Linux and Mac OS X hosts.
  406. </para></listitem>
  407. <listitem><para>
  408. <emphasis><filename>devtool</filename>:</emphasis>
  409. This command-line tool is available as part of the
  410. extensible SDK (eSDK) and is its cornerstone.
  411. You can use <filename>devtool</filename> to help build,
  412. test, and package software within the eSDK.
  413. You can use the tool to optionally integrate what you
  414. build into an image built by the OpenEmbedded build
  415. system.</para>
  416. <para>The <filename>devtool</filename> command employs
  417. a number of sub-commands that allow you to add, modify,
  418. and upgrade recipes.
  419. As with the OpenEmbedded build system, “recipes”
  420. represent software packages within
  421. <filename>devtool</filename>.
  422. When you use <filename>devtool add</filename>, a recipe
  423. is automatically created.
  424. When you use <filename>devtool modify</filename>, the
  425. specified existing recipe is used in order to determine
  426. where to get the source code and how to patch it.
  427. In both cases, an environment is set up so that when
  428. you build the recipe a source tree that is under your
  429. control is used in order to allow you to make changes
  430. to the source as desired.
  431. By default, both new recipes and the source go into
  432. a “workspace” directory under the eSDK.
  433. The <filename>devtool upgrade</filename> command
  434. updates an existing recipe so that you can build it
  435. for an updated set of source files.</para>
  436. <para>You can read about the
  437. <filename>devtool</filename> workflow in the Yocto
  438. Project Application Development and Extensible
  439. Software Development Kit (eSDK) Manual in the
  440. "<ulink url='&YOCTO_DOCS_SDK_URL;#using-devtool-in-your-sdk-workflow'>Using <filename>devtool</filename> in Your SDK Workflow'</ulink>"
  441. section.
  442. </para></listitem>
  443. <listitem><para>
  444. <emphasis>Extensible Software Development Kit (eSDK):</emphasis>
  445. The eSDK provides a cross-development toolchain and
  446. libraries tailored to the contents of a specific image.
  447. The eSDK makes it easy to add new applications and
  448. libraries to an image, modify the source for an
  449. existing component, test changes on the target
  450. hardware, and integrate into the rest of the
  451. OpenEmbedded build system.
  452. The eSDK gives you a toolchain experience supplemented
  453. with the powerful set of <filename>devtool</filename>
  454. commands tailored for the Yocto Project environment.
  455. </para>
  456. <para>For information on the eSDK, see the
  457. <ulink url='&YOCTO_DOCS_SDK_URL;'>Yocto Project Application Development and the Extensible Software Development Kit (eSDK)</ulink>
  458. Manual.
  459. </para></listitem>
  460. <listitem><para>
  461. <emphasis><trademark class='trade'>Eclipse</trademark> IDE Plug-in:</emphasis>
  462. This plug-in enables you to use the popular Eclipse
  463. Integrated Development Environment (IDE), which allows
  464. for development using the Yocto Project all within the
  465. Eclipse IDE.
  466. You can work within Eclipse to cross-compile, deploy,
  467. and execute your output into a QEMU emulation session
  468. as well as onto actual target hardware.</para>
  469. <para>The environment also supports performance
  470. enhancing tools that allow you to perform remote
  471. profiling, tracing, collection of power data,
  472. collection of latency data, and collection of
  473. performance data.</para>
  474. <para>Once you enable the plug-in, standard Eclipse
  475. functions automatically use the cross-toolchain
  476. and target system libraries.
  477. You can build applications using any of these
  478. libraries.</para>
  479. <para>For more information on the Eclipse plug-in,
  480. see the
  481. "<ulink url='&YOCTO_DOCS_SDK_URL;#adt-eclipse'>Working Within Eclipse</ulink>"
  482. section in the Yocto Project Application Development
  483. and the Extensible Software Development Kit (eSDK)
  484. manual.
  485. </para></listitem>
  486. <listitem><para>
  487. <emphasis>Toaster:</emphasis>
  488. Toaster is a web interface to the Yocto Project
  489. OpenEmbedded build system.
  490. Toaster allows you to configure, run, and view
  491. information about builds.
  492. </para></listitem>
  493. </itemizedlist>
  494. </para>
  495. </section>
  496. <section id='gs-production-tools'>
  497. <title>Production Tools</title>
  498. <para>
  499. The following list consists of tools that help production
  500. related activities using the Yocto Project:
  501. <itemizedlist>
  502. <listitem><para>
  503. <emphasis>Auto Upgrade Helper:</emphasis>
  504. This utility when used in conjunction with the
  505. OpenEmbedded build system (BitBake and OE-Core)
  506. automatically generates upgrades for recipes that
  507. are based on new versions of the recipes published
  508. upstream.
  509. </para></listitem>
  510. <listitem><para>
  511. <emphasis>Recipe Reporting System:</emphasis>
  512. The Recipe Reporting System tracks recipe versions
  513. available for Yocto Project.
  514. The main purpose of the system is to help you
  515. manage the recipes you maintain and to offer a dynamic
  516. overview of the project.
  517. The Recipe Reporting System is built on top of the
  518. <ulink url="http://layers.openembedded.org/layerindex/layers/">OpenEmbedded Layer Index</ulink>,
  519. which is a website that indexes OpenEmbedded-Core
  520. layers.
  521. </para></listitem>
  522. <listitem><para>
  523. <emphasis>Patchwork:</emphasis>
  524. <ulink url='http://jk.ozlabs.org/projects/patchwork/'>Patchwork</ulink>
  525. is a fork of a project originally started by
  526. <ulink url='http://ozlabs.org/'>OzLabs</ulink>.
  527. The project is a web-based tracking system designed
  528. to streamline the process of bringing contributions
  529. into a project.
  530. The Yocto Project uses Patchwork as an organizational
  531. tool to handle patches, which number in the thousands
  532. for every release.
  533. </para></listitem>
  534. <listitem><para>
  535. <emphasis>AutoBuilder:</emphasis>
  536. AutoBuilder is a project that automates build tests
  537. and quality assurance (QA).
  538. By using the public AutoBuilder, anyone can determine
  539. the status of the current "master" branch of Poky.
  540. <note>
  541. AutoBuilder is based on
  542. <ulink url='https://buildbot.net/'>buildbot</ulink>.
  543. </note></para>
  544. <para>A goal of the Yocto Project is to lead the
  545. open source industry with a project that automates
  546. testing and QA procedures.
  547. In doing so, the project encourages a development
  548. community that publishes QA and test plans, publicly
  549. demonstrates QA and test plans, and encourages
  550. development of tools that automate and test and QA
  551. procedures for the benefit of the development
  552. community.</para>
  553. <para>You can learn more about the AutoBuilder used
  554. by the Yocto Project
  555. <ulink url='&YOCTO_AB_URL;'>here</ulink>.
  556. </para></listitem>
  557. <listitem><para>
  558. <emphasis>Cross-Prelink:</emphasis>
  559. Prelinking is the process of pre-computing the load
  560. addresses and link tables generated by the dynamic
  561. linker as compared to doing this at runtime.
  562. Doing this ahead of time results in performance
  563. improvements when the application is launched and
  564. reduced memory usage for libraries shared by many
  565. applications.</para>
  566. <para>Historically, cross-prelink is a variant of
  567. prelink, which was conceived by
  568. <ulink url='http://people.redhat.com/jakub/prelink.pdf'>Jakub Jel&iacute;nek</ulink>
  569. a number of years ago.
  570. Both prelink and cross-prelink are maintained in the
  571. same repository albeit on separate branches.
  572. By providing an emulated runtime dynamic linker
  573. (i.e. <filename>glibc</filename>-derived
  574. <filename>ld.so</filename> emulation), the
  575. cross-prelink project extends the prelink software’s
  576. ability to prelink a sysroot environment.
  577. Additionally, the cross-prelink software enables the
  578. ability to work in sysroot style environments.</para>
  579. <para>The dynamic linker determines standard load
  580. address calculations based on a variety of factors
  581. such as mapping addresses, library usage, and library
  582. function conflicts.
  583. The prelink tool uses this information, from the
  584. dynamic linker, to determine unique load addresses
  585. for executable and linkable format (ELF) binaries
  586. that are shared libraries and dynamically linked.
  587. The prelink tool modifies these ELF binaries with the
  588. pre-computed information.
  589. The result is faster loading and often lower memory
  590. consumption because more of the library code can
  591. be re-used from shared Copy-On-Write (COW) pages.
  592. </para>
  593. <para>The original upstream prelink project only
  594. supports running prelink on the end target device
  595. due to the reliance on the target device’s dynamic
  596. linker.
  597. This restriction causes issues when developing a
  598. cross-compiled system.
  599. The cross-prelink adds a synthesized dynamic loader
  600. that runs on the host, thus permitting cross-prelinking
  601. without ever having to run on a read-write target
  602. filesystem.
  603. </para></listitem>
  604. <listitem><para>
  605. <emphasis>Pseudo:</emphasis>
  606. Pseudo is the Yocto Project implementation of
  607. <ulink url='http://man.he.net/man1/fakeroot'>fakeroot</ulink>,
  608. which is used to run commands in an environment
  609. that seemingly has root privileges.</para>
  610. <para>During a build, it can be necessary to perform
  611. operations that require system administrator
  612. privileges.
  613. For example, file ownership or permissions might need
  614. definition.
  615. Pseudo is a tool that you can either use directly or
  616. through the environment variable
  617. <filename>LD_PRELOAD</filename>.
  618. Either method allows these operations to succeed as
  619. if system administrator privileges exist even
  620. when they do not.</para>
  621. <para>You can read more about Pseudo in the
  622. "<link linkend='fakeroot-and-pseudo'>Fakeroot and Pseudo</link>"
  623. section.
  624. </para></listitem>
  625. </itemizedlist>
  626. </para>
  627. </section>
  628. <section id='gs-openembedded-build-system'>
  629. <title>Open-Embedded Build System Components</title>
  630. <para>
  631. The following list consists of components associated with the
  632. Open-Embedded build system:
  633. <itemizedlist>
  634. <listitem><para>
  635. <emphasis>BitBake:</emphasis>
  636. BitBake is a core component of the Yocto Project and is
  637. used by the OpenEmbedded build system to build images.
  638. While BitBake is key to the build system, BitBake
  639. is maintained separately from the Yocto Project.</para>
  640. <para>BitBake is a generic task execution engine that
  641. allows shell and Python tasks to be run efficiently
  642. and in parallel while working within complex inter-task
  643. dependency constraints.
  644. In short, BitBake is a build engine that works
  645. through recipes written in a specific format in order
  646. to perform sets of tasks.</para>
  647. <para>You can learn more about BitBake in the
  648. <ulink url='&YOCTO_DOCS_BB_URL;'>BitBake User Manual</ulink>.
  649. </para></listitem>
  650. <listitem><para>
  651. <emphasis>OpenEmbedded-Core:</emphasis>
  652. OpenEmbedded-Core (OE-Core) is a common layer of
  653. metadata (i.e. recipes, classes, and associated files)
  654. used by OpenEmbedded-derived systems, which includes
  655. the Yocto Project.
  656. The Yocto Project and the OpenEmbedded Project both
  657. maintain the OpenEmbedded-Core.
  658. You can find the OE-Core metadata in the Yocto Project
  659. <ulink url='&YOCTO_GIT_URL;/cgit/cgit.cgi/poky/tree/meta'>Source Repositories</ulink>.
  660. </para>
  661. <para>Historically, the Yocto Project integrated the
  662. OE-Core metadata throughout the Yocto Project
  663. source repository reference system (Poky).
  664. After Yocto Project Version 1.0, the Yocto Project
  665. and OpenEmbedded agreed to work together and share a
  666. common core set of metadata (OE-Core), which contained
  667. much of the functionality previously found in Poky.
  668. This collaboration achieved a long-standing
  669. OpenEmbedded objective for having a more tightly
  670. controlled and quality-assured core.
  671. The results also fit well with the Yocto Project
  672. objective of achieving a smaller number of fully
  673. featured tools as compared to many different ones.
  674. </para>
  675. <para>Sharing a core set of metadata results in Poky
  676. as an integration layer on top of OE-Core.
  677. You can see that in this
  678. <link linkend='yp-key-dev-elements'>figure</link>.
  679. The Yocto Project combines various components such as
  680. BitBake, OE-Core, script “glue”, and documentation
  681. for its build system.
  682. </para></listitem>
  683. </itemizedlist>
  684. </para>
  685. </section>
  686. <section id='gs-reference-distribution-poky'>
  687. <title>Reference Distribution (Poky)</title>
  688. <para>
  689. Poky is the Yocto Project reference distribution.
  690. It contains the OpenEmbedded build system (BitBake and OE-Core)
  691. as well as a set of metadata to get you started building your
  692. own distribution.
  693. See the
  694. <link linkend='what-is-the-yocto-project'>figure</link> in
  695. "What is the Yocto Project?" section for an illustration
  696. that shows Poky and its relationship with other parts of the
  697. Yocto Project.</para>
  698. <para>To use the Yocto Project tools and components, you
  699. can download (<filename>clone</filename>) Poky and use it
  700. to bootstrap your own distribution.
  701. <note>
  702. Poky does not contain binary files.
  703. It is a working example of how to build your own custom
  704. Linux distribution from source.
  705. </note>
  706. You can read more about Poky in the
  707. "<link linkend='reference-embedded-distribution'>Reference Embedded Distribution (Poky)</link>"
  708. section.
  709. </para>
  710. </section>
  711. <section id='gs-packages-for-finished-targets'>
  712. <title>Packages for Finished Targets</title>
  713. <para>
  714. The following lists components associated with packages
  715. for finished targets:
  716. <itemizedlist>
  717. <listitem><para>
  718. <emphasis>Matchbox:</emphasis>
  719. Matchbox is an Open Source, base environment for the
  720. X Window System running on non-desktop, embedded
  721. platforms such as handhelds, set-top boxes, kiosks,
  722. and anything else for which screen space, input
  723. mechanisms, or system resources are limited.</para>
  724. <para>Matchbox consists of a number of interchangeable
  725. and optional applications that you can tailor to a
  726. specific, non-desktop platform to enhance usability
  727. in constrained environments.</para>
  728. <para>You can find the Matchbox source in its
  729. <ulink url='&YOCTO_GIT_URL;/cgit/cgit.cgi'>repository</ulink>
  730. listed in the Yocto Project Source Repositories.
  731. </para></listitem>
  732. <listitem><para>
  733. <emphasis>Opkg</emphasis>
  734. Open PacKaGe management (opkg) is a lightweight
  735. package management system based on the itsy package
  736. (ipkg) management system.
  737. Opkg is written in C and resembles Advanced Package
  738. Tool (APT) and Debian Package (dpkg) in operation.
  739. </para>
  740. <para>Opkg is intended for use on embedded Linux
  741. devices and is used in this capacity in the
  742. <ulink url='http://www.openembedded.org/wiki/Main_Page'>OpenEmbedded</ulink>
  743. and
  744. <ulink url='https://openwrt.org/'>OpenWrt</ulink>
  745. projects, as well as the Yocto Project.
  746. <note>
  747. As best it can, opkg maintains backwards
  748. compatibility with ipkg and conforms to a subset
  749. of Debian’s policy manual regarding control files.
  750. </note>
  751. </para></listitem>
  752. </itemizedlist>
  753. </para>
  754. </section>
  755. <section id='gs-archived-components'>
  756. <title>Archived Components</title>
  757. <para>
  758. The Build Appliance is a virtual machine image that enables
  759. you to build and boot a custom embedded Linux image with
  760. the Yocto Project using a non-Linux development system.
  761. </para>
  762. <para>
  763. Historically, the Build Appliance was the second of three
  764. methods by which you could use the Yocto Project on a system
  765. that was not native to Linux.
  766. <orderedlist>
  767. <listitem><para>
  768. <emphasis>Hob:</emphasis>
  769. Hob, which is now deprecated and is no longer available
  770. since the 2.1 release of the Yocto Project provided
  771. a rudimentary, GUI-based interface to the Yocto
  772. Project.
  773. Toaster has fully replaced Hob.
  774. </para></listitem>
  775. <listitem><para>
  776. <emphasis>Build Appliance:</emphasis>
  777. Post Hob, the Build Appliance became available.
  778. It was never recommended that you use the Build
  779. Appliance as a day-to-day production development
  780. environment with the Yocto Project.
  781. Build Appliance was useful as a way to try out
  782. development in the Yocto Project environment.
  783. </para></listitem>
  784. <listitem><para>
  785. <emphasis>CROPS:</emphasis>
  786. The final and best solution available now for
  787. developing using the Yocto Project on a system
  788. not native to Linux is with
  789. <link linkend='gs-crops-overview'>CROPS</link>.
  790. </para></listitem>
  791. </orderedlist>
  792. </para>
  793. </section>
  794. </section>
  795. <section id='gs-development-methods'>
  796. <title>Development Methods</title>
  797. <para>
  798. The Yocto Project development environment usually involves a
  799. <ulink url='&YOCTO_DOCS_REF_URL;#hardware-build-system-term'>Build Host</ulink>
  800. and target hardware.
  801. You use the Build Host to build images and develop applications,
  802. while you use the target hardware to test deployed software.
  803. </para>
  804. <para>
  805. This section provides an introduction to the choices or
  806. development methods you have when setting up your Build Host.
  807. Depending on the your particular workflow preference and the
  808. type of operating system your Build Host runs, several choices
  809. exist that allow you to use the Yocto Project.
  810. <note>
  811. For additional detail about the Yocto Project development
  812. environment, see the
  813. "<link linkend='overview-development-environment'>The Yocto Project Development Environment</link>"
  814. chapter.
  815. </note>
  816. <itemizedlist>
  817. <listitem><para>
  818. <emphasis>Native Linux Host:</emphasis>
  819. By far the best option for a Build Host.
  820. A system running Linux as its native operating system
  821. allows you to develop software by directly using the
  822. <ulink url='&YOCTO_DOCS_REF_URL;#bitbake-term'>BitBake</ulink>
  823. tool.
  824. You can accomplish all aspects of development from a
  825. familiar shell of a supported Linux distribution.</para>
  826. <para>For information on how to set up a Build Host on
  827. a system running Linux as its native operating system,
  828. see the
  829. "<ulink url='&YOCTO_DOCS_DEV_URL;#setting-up-a-native-linux-host'>Setting Up a Native Linux Host</ulink>"
  830. section in the Yocto Project Development Tasks Manual.
  831. </para></listitem>
  832. <listitem><para>
  833. <emphasis>CROss PlatformS (CROPS):</emphasis>
  834. Typically, you use
  835. <ulink url='https://git.yoctoproject.org/cgit/cgit.cgi/crops/about/'>CROPS</ulink>,
  836. which leverages
  837. <ulink url='https://www.docker.com/'>Docker Containers</ulink>,
  838. to set up a Build Host that is not running Linux (e.g.
  839. <trademark class='registered'>Microsoft</trademark>
  840. <trademark class='trademark'>Windows</trademark>
  841. or
  842. <trademark class='registered'>macOS</trademark>).
  843. <note>
  844. You can, however, use CROPS on a Linux-based system.
  845. </note>
  846. CROPS is an open source, cross-platform development
  847. framework that provides an easily managed, extensible
  848. environment for building binaries targeted for a variety
  849. of architectures on Windows, macOS, or Linux hosts.
  850. Once the Build Host is set up using CROPS, you can prepare
  851. a shell environment to mimic that of a shell being used
  852. on a system natively running Linux.</para>
  853. <para>For information on how to set up a Build Host with
  854. CROPS, see the
  855. "<ulink url='&YOCTO_DOCS_DEV_URL;#setting-up-to-use-crops'>Setting Up to Use CROss PlatformS (CROPS)</ulink>"
  856. section in the Yocto Project Development Tasks Manual.
  857. </para></listitem>
  858. <listitem><para>
  859. <emphasis>Toaster:</emphasis>
  860. Regardless of what your Build Host is running, you can
  861. use Toaster to develop software using the Yocto Project.
  862. Toaster is a web interface to the Yocto Project's
  863. OpenEmbedded build system.
  864. The interface enables you to configure and run your
  865. builds.
  866. Information about builds is collected and stored in a
  867. database.
  868. You can use Toaster to configure and start builds on
  869. multiple remote build servers.</para>
  870. <para>For information about and how to use Toaster,
  871. see the
  872. <ulink url='&YOCTO_DOCS_TOAST_URL;'>Toaster User Manual</ulink>.
  873. </para></listitem>
  874. <listitem><para>
  875. <emphasis><trademark class='trade'>Eclipse</trademark> IDE:</emphasis>
  876. If your Build Host supports and runs the popular
  877. Eclipse IDE, you can install the Yocto Project Eclipse
  878. plug-in and use the Yocto Project to develop software.
  879. The plug-in integrates the Yocto Project functionality
  880. into Eclipse development practices.</para>
  881. <para>For information about how to install and use the
  882. Yocto Project Eclipse plug-in, see the
  883. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-eclipse-project'>Developing Applications Using Eclipse</ulink>"
  884. section in the Yocto Project Application Development and
  885. the Extensible Software Development Kit (eSDK) Manual.
  886. </para></listitem>
  887. </itemizedlist>
  888. </para>
  889. </section>
  890. <section id='reference-embedded-distribution'>
  891. <title>Reference Embedded Distribution (Poky)</title>
  892. <para>
  893. "Poky", which is pronounced <emphasis>Pock</emphasis>-ee, is the
  894. name of the Yocto Project's reference distribution or Reference OS
  895. Kit.
  896. Poky contains the
  897. <ulink url='&YOCTO_DOCS_REF_URL;#build-system-term'>OpenEmbedded Build System</ulink>
  898. build system
  899. (<ulink url='&YOCTO_DOCS_REF_URL;#bitbake-term'>BitBake</ulink> and
  900. <ulink url='&YOCTO_DOCS_REF_URL;#oe-core'>OpenEmbedded-Core</ulink>)
  901. as well as a set of
  902. <ulink url='&YOCTO_DOCS_REF_URL;#metadata'>metadata</ulink> to get
  903. you started building your own distro.
  904. In other words, Poky is a base specification of the functionality
  905. needed for a typical embedded system as well as the components
  906. from the Yocto Project that allow you to build a distribution into
  907. a usable binary image.
  908. </para>
  909. <para>
  910. Poky is a combined repository of BitBake, OpenEmbedded-Core
  911. (which is found in <filename>meta</filename>),
  912. <filename>meta-poky</filename>,
  913. <filename>meta-yocto-bsp</filename>, and documentation provided
  914. all together and known to work well together.
  915. You can view these items that make up the Poky repository in the
  916. <ulink url='&YOCTO_GIT_URL;/cgit/cgit.cgi/poky/tree/'>Source Repositories</ulink>.
  917. <note>
  918. If you are interested in all the contents of the
  919. <filename>poky</filename> Git repository, see the
  920. "<ulink url='&YOCTO_DOCS_REF_URL;#structure-core'>Top-Level Core Components</ulink>"
  921. section in the Yocto Project Reference Manual.
  922. </note>
  923. </para>
  924. <para id='gs-poky-reference-distribution'>
  925. The following figure illustrates what generally comprises Poky:
  926. <imagedata fileref="figures/poky-reference-distribution.png" format="PNG" align='center' width="8in"/>
  927. <itemizedlist>
  928. <listitem><para>
  929. BitBake is a task executor and scheduler that is the heart of
  930. the OpenEmbedded build system.
  931. </para></listitem>
  932. <listitem><para>
  933. <filename>meta-poky</filename>, which is Poky-specific
  934. metadata.
  935. </para></listitem>
  936. <listitem><para>
  937. <filename>meta-yocto-bsp</filename>, which is Yocto
  938. Project-specific Board Support Packages (BSPs).
  939. </para></listitem>
  940. <listitem><para>
  941. OpenEmbedded-Core (OE-Core) metadata, which includes
  942. shared configurations, global variable definitions,
  943. shared classes, packaging, and recipes.
  944. Classes define the encapsulation and inheritance of build
  945. logic.
  946. Recipes are the logical units of software and images
  947. to be built.
  948. </para></listitem>
  949. <listitem><para>
  950. Documentation, which contains the Yocto Project source
  951. files used to make the set of user manuals.
  952. </para></listitem>
  953. </itemizedlist>
  954. <note>
  955. While Poky is a "complete" distribution specification and is
  956. tested and put through QA, you cannot use it as a product
  957. "out of the box" in its current form.
  958. </note>
  959. </para>
  960. <para>
  961. To use the Yocto Project tools, you can use Git to clone (download)
  962. the Poky repository then use your local copy of the reference
  963. distribution to bootstrap your own distribution.
  964. <note>
  965. Poky does not contain binary files.
  966. It is a working example of how to build your own custom Linux distribution
  967. from source.
  968. </note>
  969. </para>
  970. <para>
  971. Poky has a regular, well established, six-month release cycle
  972. under its own version.
  973. Major releases occur at the same time major releases (point
  974. releases) occur for the Yocto Project, which are typically in the
  975. Spring and Fall.
  976. For more information on the Yocto Project release schedule and
  977. cadence, see the
  978. "<ulink url='&YOCTO_DOCS_REF_URL;#ref-release-process'>Yocto Project Releases and the Stable Release Process</ulink>"
  979. chapter in the Yocto Project Reference Manual.
  980. </para>
  981. <para>
  982. Much has been said about Poky being a "default configuration."
  983. A default configuration provides a starting image footprint.
  984. You can use Poky out of the box to create an image ranging from a
  985. shell-accessible minimal image all the way up to a Linux
  986. Standard Base-compliant image that uses a GNOME Mobile and
  987. Embedded (GMAE) based reference user interface called Sato.
  988. </para>
  989. <para>
  990. One of the most powerful properties of Poky is that every aspect
  991. of a build is controlled by the metadata.
  992. You can use metadata to augment these base image types by
  993. adding metadata layers that extend functionality.
  994. These layers can provide, for example, an additional software
  995. stack for an image type, add a board support package (BSP) for
  996. additional hardware, or even create a new image type.
  997. </para>
  998. <para>
  999. Metadata is loosely grouped into configuration files or package
  1000. recipes.
  1001. A recipe is a collection of non-executable metadata used by
  1002. BitBake to set variables or define additional build-time tasks.
  1003. A recipe contains fields such as the recipe description, the recipe
  1004. version, the license of the package and the upstream source
  1005. repository.
  1006. A recipe might also indicate that the build process uses autotools,
  1007. make, distutils or any other build process, in which case the basic
  1008. functionality can be defined by the classes it inherits from
  1009. the OE-Core layer's class definitions in
  1010. <filename>./meta/classes</filename>.
  1011. Within a recipe you can also define additional tasks as well as
  1012. task prerequisites.
  1013. Recipe syntax through BitBake also supports both
  1014. <filename>_prepend</filename> and <filename>_append</filename>
  1015. operators as a method of extending task functionality.
  1016. These operators inject code into the beginning or end of a task.
  1017. For information on these BitBake operators, see the
  1018. "<ulink url='&YOCTO_DOCS_BB_URL;#appending-and-prepending-override-style-syntax'>Appending and Prepending (Override Style Syntax)</ulink>"
  1019. section in the BitBake User's Manual.
  1020. </para>
  1021. </section>
  1022. <section id='openembedded-build-system-workflow'>
  1023. <title>The OpenEmbedded Build System Workflow</title>
  1024. <para>
  1025. The OpenEmbedded build system uses a "workflow" to accomplish
  1026. image and SDK generation.
  1027. The following figure overviews that workflow:
  1028. <imagedata fileref="figures/YP-flow-diagram.png"
  1029. format="PNG" align='center' width="8in"/>
  1030. Following is a brief summary of the "workflow":
  1031. <orderedlist>
  1032. <listitem><para>
  1033. Developers specify architecture, policies, patches and
  1034. configuration details.
  1035. </para></listitem>
  1036. <listitem><para>
  1037. The build system fetches and downloads the source code
  1038. from the specified location.
  1039. The build system supports standard methods such as tarballs
  1040. or source code repositories systems such as Git.
  1041. </para></listitem>
  1042. <listitem><para>
  1043. Once downloaded, the build system extracts the sources
  1044. into a local work area where patches are applied and
  1045. common steps for configuring and compiling the software
  1046. are run.
  1047. </para></listitem>
  1048. <listitem><para>
  1049. The build system then installs the software into a
  1050. temporary staging area where the binary package format you
  1051. select (DEB, RPM, or IPK) is used to roll up the software.
  1052. </para></listitem>
  1053. <listitem><para>
  1054. Different QA and sanity checks run throughout entire
  1055. build process.
  1056. </para></listitem>
  1057. <listitem><para>
  1058. After the binaries are created, the build system
  1059. generates a binary package feed that is used to create
  1060. the final root file image.
  1061. </para></listitem>
  1062. <listitem><para>
  1063. The build system generates the file system image and a
  1064. customized Extensible SDK (eSDSK) for application
  1065. development in parallel.
  1066. </para></listitem>
  1067. </orderedlist>
  1068. </para>
  1069. <para>
  1070. For a very detailed look at this workflow, see the
  1071. "<link linkend='development-concepts'>Development Concepts</link>"
  1072. section.
  1073. </para>
  1074. </section>
  1075. <section id='some-basic-terms'>
  1076. <title>Some Basic Terms</title>
  1077. <para>
  1078. It helps to understand some basic fundamental terms when
  1079. learning the Yocto Project.
  1080. Although a list of terms exists in the
  1081. "<ulink url='&YOCTO_DOCS_REF_URL;#ref-terms'>Yocto Project Terms</ulink>"
  1082. section of the Yocto Project Reference Manual, this section
  1083. provides the definitions of some terms helpful for getting started:
  1084. <itemizedlist>
  1085. <listitem><para>
  1086. <emphasis>Configuration Files:</emphasis>
  1087. Files that hold global definitions of variables,
  1088. user-defined variables, and hardware configuration
  1089. information.
  1090. These files tell the OpenEmbedded build system what to
  1091. build and what to put into the image to support a
  1092. particular platform.
  1093. </para></listitem>
  1094. <listitem><para>
  1095. <emphasis>Extensible Software Development Kit (eSDK):</emphasis>
  1096. A custom SDK for application developers.
  1097. This eSDK allows developers to incorporate their library
  1098. and programming changes back into the image to make
  1099. their code available to other application developers.
  1100. For information on the eSDK, see the
  1101. <ulink url='&YOCTO_DOCS_SDK_URL;'>Yocto Project Application Development and the Extensible Software Development Kit (eSDK)</ulink>
  1102. manual.
  1103. </para></listitem>
  1104. <listitem><para>
  1105. <emphasis>Layer:</emphasis>
  1106. A collection of related recipes.
  1107. Layers allow you to consolidate related metadata to
  1108. customize your build.
  1109. Layers also isolate information used when building
  1110. for multiple architectures.
  1111. Layers are hierarchical in their ability to override
  1112. previous specifications.
  1113. You can include any number of available layers from the
  1114. Yocto Project and customize the build by adding your
  1115. layers after them.
  1116. You can search the Layer Index for layers used within
  1117. Yocto Project.</para>
  1118. <para>For more detailed information on layers, see the
  1119. "<ulink url='&YOCTO_DOCS_DEV_URL;#understanding-and-creating-layers'>Understanding and Creating Layers</ulink>"
  1120. section in the Yocto Project Development Tasks Manual.
  1121. For a discussion specifically on BSP Layers, see the
  1122. "<ulink url='&YOCTO_DOCS_BSP_URL;#bsp-layers'>BSP Layers</ulink>"
  1123. section in the Yocto Project Board Support Packages (BSP)
  1124. Developer's Guide.
  1125. </para></listitem>
  1126. <listitem><para>
  1127. <emphasis>Metadata:</emphasis>
  1128. A key element of the Yocto Project is the Metadata that
  1129. is used to construct a Linux distribution and is contained
  1130. in the files that the
  1131. <link linkend='gs-term-openembedded-build-system'>OpenEmbedded build system</link> parses
  1132. when building an image.
  1133. In general, Metadata includes recipes, configuration
  1134. files, and other information that refers to the build
  1135. instructions themselves, as well as the data used to
  1136. control what things get built and the effects of the
  1137. build.
  1138. Metadata also includes commands and data used to
  1139. indicate what versions of software are used, from
  1140. where they are obtained, and changes or additions to the
  1141. software itself (patches or auxiliary files) that
  1142. are used to fix bugs or customize the software for use
  1143. in a particular situation.
  1144. OpenEmbedded-Core is an important set of validated
  1145. metadata.
  1146. </para></listitem>
  1147. <listitem><para id='gs-term-openembedded-build-system'>
  1148. <emphasis>OpenEmbedded Build System:</emphasis>
  1149. The terms "BitBake" and "build system" are sometimes
  1150. used for the OpenEmbedded Build System.</para>
  1151. <para>BitBake is a task scheduler and execution engine
  1152. that parses instructions (i.e. recipes) and configuration
  1153. data.
  1154. After a parsing phase, BitBake creates a dependency tree
  1155. to order the compilation, schedules the compilation of
  1156. the included code, and finally executes the building
  1157. of the specified custom Linux image (distribution).
  1158. BitBake is similar to the <filename>make</filename>
  1159. tool.</para>
  1160. <para>During a build process, the build system tracks
  1161. dependencies and performs a native or cross-compilation
  1162. of the package.
  1163. As a first step in a cross-build setup, the framework
  1164. attempts to create a cross-compiler toolchain
  1165. (i.e. Extensible SDK) suited for the target platform.
  1166. </para></listitem>
  1167. <listitem><para>
  1168. <emphasis>OpenEmbedded-Core (OE-Core):</emphasis>
  1169. OE-Core is metadata comprised of foundation recipes,
  1170. classes, and associated files that are meant to be
  1171. common among many different OpenEmbedded-derived systems,
  1172. including the Yocto Project.
  1173. OE-Core is a curated subset of an original repository
  1174. developed by the OpenEmbedded community that has been
  1175. pared down into a smaller, core set of continuously
  1176. validated recipes.
  1177. The result is a tightly controlled and quality-assured
  1178. core set of recipes.</para>
  1179. <para>You can see the Metadata in the
  1180. <filename>meta</filename> directory of the Yocto Project
  1181. <ulink url='http://git.yoctoproject.org/cgit/cgit.cgi'>Source Repositories</ulink>.
  1182. </para></listitem>
  1183. <listitem><para>
  1184. <emphasis>Packages:</emphasis>
  1185. In the context of the Yocto Project, this term refers to a
  1186. recipe's packaged output produced by BitBake (i.e. a
  1187. "baked recipe").
  1188. A package is generally the compiled binaries produced from the
  1189. recipe's sources.
  1190. You "bake" something by running it through BitBake.</para>
  1191. <para>It is worth noting that the term "package" can,
  1192. in general, have subtle meanings.
  1193. For example, the packages referred to in the
  1194. "<ulink url='&YOCTO_DOCS_REF_URL;#required-packages-for-the-host-development-system'>Required Packages for the Host Development System</ulink>"
  1195. section in the Yocto Project Reference Manual are compiled
  1196. binaries that, when installed, add functionality to your
  1197. Linux distribution.</para>
  1198. <para>Another point worth noting is that historically within
  1199. the Yocto Project, recipes were referred to as packages - thus,
  1200. the existence of several BitBake variables that are seemingly
  1201. mis-named,
  1202. (e.g. <ulink url='&YOCTO_DOCS_REF_URL;#var-PR'><filename>PR</filename></ulink>,
  1203. <ulink url='&YOCTO_DOCS_REF_URL;#var-PV'><filename>PV</filename></ulink>,
  1204. and
  1205. <ulink url='&YOCTO_DOCS_REF_URL;#var-PE'><filename>PE</filename></ulink>).
  1206. </para></listitem>
  1207. <listitem><para>
  1208. <emphasis>Poky:</emphasis>
  1209. Poky is a reference embedded distribution and a reference
  1210. test configuration.
  1211. Poky provides the following:
  1212. <itemizedlist>
  1213. <listitem><para>
  1214. A base-level functional distro used to illustrate
  1215. how to customize a distribution.
  1216. </para></listitem>
  1217. <listitem><para>
  1218. A means by which to test the Yocto Project
  1219. components (i.e. Poky is used to validate
  1220. the Yocto Project).
  1221. </para></listitem>
  1222. <listitem><para>
  1223. A vehicle through which you can download
  1224. the Yocto Project.
  1225. </para></listitem>
  1226. </itemizedlist>
  1227. Poky is not a product level distro.
  1228. Rather, it is a good starting point for customization.
  1229. <note>
  1230. Poky is an integration layer on top of OE-Core.
  1231. </note>
  1232. </para></listitem>
  1233. <listitem><para>
  1234. <emphasis>Recipe:</emphasis>
  1235. The most common form of metadata.
  1236. A recipe contains a list of settings and tasks
  1237. (i.e. instructions) for building packages that are then
  1238. used to build the binary image.
  1239. A recipe describes where you get source code and which
  1240. patches to apply.
  1241. Recipes describe dependencies for libraries or for other
  1242. recipes as well as configuration and compilation options.
  1243. Related recipes are consolidated into a layer.
  1244. </para></listitem>
  1245. </itemizedlist>
  1246. </para>
  1247. </section>
  1248. </chapter>
  1249. <!--
  1250. vim: expandtab tw=80 ts=4
  1251. -->