toaster-manual-setup-and-use.xml 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  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='toaster-manual-setup-and-use'>
  5. <title>Setting Up and Using Toaster</title>
  6. <section id='starting-toaster-for-local-development'>
  7. <title>Starting Toaster for Local Development</title>
  8. <para>
  9. Once you have set up the Yocto Project and installed the
  10. Toaster system dependencies as described in
  11. "<link linkend='toaster-manual-start'>Preparing to Use Toaster</link>",
  12. you are ready to start Toaster.
  13. </para>
  14. <para>
  15. Navigate to the root of your
  16. <ulink url='&YOCTO_DOCS_REF_URL;#source-directory'>Source Directory</ulink>
  17. (e.g. <filename>poky</filename>):
  18. <literallayout class='monospaced'>
  19. $ cd poky
  20. </literallayout>
  21. Once in that directory, source the build environment script:
  22. <literallayout class='monospaced'>
  23. $ source oe-init-build-env
  24. </literallayout>
  25. Next, from the build directory (e.g.
  26. <filename>poky/build</filename>), start Toaster using this
  27. command:
  28. <literallayout class='monospaced'>
  29. $ source toaster start
  30. </literallayout>
  31. You can now run your builds from the command line, or with
  32. Toaster as explained in section
  33. "<link linkend='using-the-toaster-web-interface'>Using the Toaster Web Interface</link>".
  34. </para>
  35. <para>
  36. To access the Toaster web interface, open your favorite
  37. browser and enter the following:
  38. <literallayout class='monospaced'>
  39. http://127.0.0.1:8000
  40. </literallayout>
  41. </para>
  42. </section>
  43. <section id='setting-a-different-port'>
  44. <title>Setting a Different Port</title>
  45. <para>
  46. By default, Toaster starts on port 8000.
  47. You can use the <filename>WEBPORT</filename> parameter to
  48. set a different port.
  49. For example, the following command sets the port to "8400":
  50. <literallayout class='monospaced'>
  51. $ source toaster start webport=8400
  52. </literallayout>
  53. </para>
  54. </section>
  55. <section id='setting-up-external-access'>
  56. <title>Setting up External Access</title>
  57. <para>
  58. By default, Toaster binds to the loop back address
  59. (i.e. localhost), which does not allow access from
  60. external hosts. To allow external access, use the
  61. <filename>WEBPORT</filename> parameter to open an
  62. address that connects to the network, specifically the
  63. IP address that your NIC uses to connect to the network.
  64. You can also bind to all IP addresses the computer
  65. supports by using the shortcut
  66. "0.0.0.0:<replaceable>port</replaceable>".
  67. </para>
  68. <para>
  69. The following example binds to all IP addresses on the
  70. host:
  71. <literallayout class='monospaced'>
  72. $ source toaster start webport=0.0.0.0:8400
  73. </literallayout>
  74. This example binds to a specific IP address on the host's
  75. NIC:
  76. <literallayout class='monospaced'>
  77. $ source toaster start webport=192.168.1.1:8400
  78. </literallayout>
  79. </para>
  80. </section>
  81. <section id='the-directory-for-cloning-layers'>
  82. <title>The Directory for Cloning Layers</title>
  83. <para>
  84. Toaster creates a <filename>_toaster_clones</filename>
  85. directory inside your Source Directory
  86. (i.e. <filename>poky</filename>) to clone any layers
  87. needed for your builds.
  88. </para>
  89. <para>
  90. Alternatively, if you would like all of your Toaster related
  91. files and directories to be in a particular location other than
  92. the default, you can set the <filename>TOASTER_DIR</filename>
  93. environment variable, which takes precedence over your current
  94. working directory.
  95. Setting this environment variable causes Toaster to create and use
  96. <filename>$TOASTER_DIR./_toaster_clones</filename>.
  97. </para>
  98. </section>
  99. <section id='toaster-the-build-directory'>
  100. <title>The Build Directory</title>
  101. <para>
  102. Toaster creates a build directory within your Source
  103. Directory (e.g. <filename>poky</filename>) to execute
  104. the builds.
  105. </para>
  106. <para>
  107. Alternatively, if you would like all of your Toaster related files
  108. and directories to be in a particular location, you can set
  109. the <filename>TOASTER_DIR</filename> environment variable,
  110. which takes precedence over your current working directory.
  111. Setting this environment variable causes Toaster to use
  112. <filename>$TOASTER_DIR/build</filename> as the build directory.
  113. </para>
  114. </section>
  115. <section id='toaster-creating-a-django-super-user'>
  116. <title>Creating a Django Superuser</title>
  117. <para>
  118. Toaster is built on the
  119. <ulink url='https://www.djangoproject.com/'>Django framework</ulink>.
  120. Django provides an administration interface you can use
  121. to edit Toaster configuration parameters.
  122. </para>
  123. <para>
  124. To access the Django administration interface, you must
  125. create a superuser by following these steps:
  126. <orderedlist>
  127. <listitem><para>
  128. If you used <filename>pip3</filename>, which is
  129. recommended, to set up the Toaster system dependencies,
  130. you need be sure the local user path is in your
  131. <filename>PATH</filename> list.
  132. To append the pip3 local user path, use the following
  133. command:
  134. <literallayout class='monospaced'>
  135. $ export PATH=$PATH:$HOME/.local/bin
  136. </literallayout>
  137. </para></listitem>
  138. <listitem><para>
  139. From the directory containing the Toaster database,
  140. which by default is the
  141. <ulink url='&YOCTO_DOCS_REF_URL;#build-directory'>Build Directory</ulink>,
  142. invoke the <filename>createsuperuser</filename> command
  143. from <filename>manage.py</filename>:
  144. <literallayout class='monospaced'>
  145. $ cd ~/poky/build
  146. $ ../bitbake/lib/toaster/manage.py createsuperuser
  147. </literallayout>
  148. </para></listitem>
  149. <listitem><para>
  150. Django prompts you for the username, which you need to
  151. provide.
  152. </para></listitem>
  153. <listitem><para>
  154. Django prompts you for an email address, which is
  155. optional.
  156. </para></listitem>
  157. <listitem><para>
  158. Django prompts you for a password, which you must provide.
  159. </para></listitem>
  160. <listitem><para>
  161. Django prompts you to re-enter your password for verification.
  162. </para></listitem>
  163. </orderedlist>
  164. After completing these steps, the following confirmation message
  165. appears:
  166. <literallayout class='monospaced'>
  167. Superuser created successfully.
  168. </literallayout>
  169. </para>
  170. <para>
  171. Creating a superuser allows you to access the Django administration
  172. interface through a browser.
  173. The URL for this interface is the same as the URL used for the
  174. Toaster instance with "/admin" on the end.
  175. For example, if you are running Toaster locally, use the
  176. following URL:
  177. <literallayout class='monospaced'>
  178. http://127.0.0.1:8000/admin
  179. </literallayout>
  180. You can use the Django administration interface to set Toaster
  181. configuration parameters such as the build directory, layer sources,
  182. default variable values, and BitBake versions.
  183. </para>
  184. </section>
  185. <section id='toaster-setting-up-a-production-instance-of-toaster'>
  186. <title>Setting Up a Production Instance of Toaster</title>
  187. <para>
  188. You can use a production instance of Toaster to share the
  189. Toaster instance with remote users, multiple users, or both.
  190. The production instance is also the setup that can handle
  191. heavier loads on the web service.
  192. Use the instructions in the following sections to set up
  193. Toaster to run builds through the Toaster web interface.
  194. </para>
  195. <section id='toaster-production-instance-requirements'>
  196. <title>Requirements</title>
  197. <para>
  198. Be sure you meet the following requirements:
  199. <note>
  200. You must comply with all Apache,
  201. <filename>mod-wsgi</filename>, and Mysql requirements.
  202. </note>
  203. <itemizedlist>
  204. <listitem><para>
  205. Have all the build requirements as described in
  206. "<link linkend='toaster-setting-up-the-basic-system-requirements'>Setting Up the Basic System Requirements</link>"
  207. chapter.
  208. </para></listitem>
  209. <listitem><para>
  210. Have an Apache webserver.
  211. </para></listitem>
  212. <listitem><para>
  213. Have <filename>mod-wsgi</filename> for the Apache
  214. webserver.
  215. </para></listitem>
  216. <listitem><para>
  217. Use the Mysql database server.
  218. </para></listitem>
  219. <listitem><para>
  220. If you are using Ubuntu 16.04, run the following:
  221. <literallayout class='monospaced'>
  222. $ sudo apt-get install apache2 libapache2-mod-wsgi-py3 mysql-server python3-pip libmysqlclient-dev
  223. </literallayout>
  224. </para></listitem>
  225. <listitem><para>
  226. If you are using Fedora 24 or a RedHat distribution, run
  227. the following:
  228. <literallayout class='monospaced'>
  229. $ sudo dnf install httpd python3-mod_wsgi python3-pip mariadb-server mariadb-devel python3-devel
  230. </literallayout>
  231. </para></listitem>
  232. <listitem><para>
  233. If you are using openSUSE Leap 42.1, run
  234. the following:
  235. <literallayout class='monospaced'>
  236. $ sudo zypper install apache2 apache2-mod_wsgi-python3 python3-pip mariadb mariadb-client python3-devel
  237. </literallayout>
  238. </para></listitem>
  239. </itemizedlist>
  240. </para>
  241. </section>
  242. <section id='toaster-installation-steps'>
  243. <title>Installation</title>
  244. <para>
  245. Perform the following steps to install Toaster:
  246. <orderedlist>
  247. <listitem><para>
  248. Create toaster user and set its home directory to
  249. <filename>/var/www/toaster</filename>:
  250. <literallayout class='monospaced'>
  251. $ sudo /usr/sbin/useradd toaster -md /var/www/toaster -s /bin/false
  252. $ sudo su - toaster -s /bin/bash
  253. </literallayout>
  254. </para></listitem>
  255. <listitem><para>
  256. Checkout a copy of <filename>poky</filename>
  257. into the web server directory.
  258. You will be using <filename>/var/www/toaster</filename>:
  259. <literallayout class='monospaced'>
  260. $ git clone git://git.yoctoproject.org/poky
  261. $ git checkout &DISTRO_NAME_NO_CAP;
  262. </literallayout>
  263. </para></listitem>
  264. <listitem><para>
  265. Install Toaster
  266. dependencies using the --user flag which
  267. keeps the Python packages
  268. isolated from your system-provided packages:
  269. <literallayout class='monospaced'>
  270. $ cd /var/www/toaster/
  271. $ pip3 install --user -r ./poky/bitbake/toaster-requirements.txt
  272. $ pip3 install --user mysqlclient
  273. </literallayout>
  274. <note>
  275. Isolating these packages is not required but is
  276. recommended.
  277. Alternatively, you can use your operating system's
  278. package manager to install the packages.
  279. </note>
  280. </para></listitem>
  281. <listitem><para>
  282. Configure Toaster by editing
  283. <filename>/var/www/toaster/poky/bitbake/lib/toaster/toastermain/settings.py</filename>
  284. as follows:
  285. <itemizedlist>
  286. <listitem><para>
  287. Edit the
  288. <ulink url='http://docs.djangoproject.com/en/1.8/ref/settings/#std:setting-SECRET_KEY'>DATABASE</ulink>
  289. settings:
  290. <literallayout class='monospaced'>
  291. DATABASES = {
  292. 'default': {
  293. 'ENGINE': 'django.db.backends.mysql',
  294. 'NAME': 'toaster_data',
  295. 'USER': 'toaster',
  296. 'PASSWORD': 'yourpasswordhere',
  297. 'HOST': 'localhost',
  298. 'PORT': '3306',
  299. }
  300. }
  301. </literallayout>
  302. </para></listitem>
  303. <listitem><para>
  304. Edit the
  305. <ulink url='http://docs.djangoproject.com/en/1.8/ref/settings/#std:setting-SECRET_KEY'>SECRET_KEY</ulink>:
  306. <literallayout class='monospaced'>
  307. SECRET_KEY = '<replaceable>your_secret_key</replaceable>'
  308. </literallayout>
  309. </para></listitem>
  310. <listitem><para>
  311. Edit the
  312. <ulink url='http://docs.djangoproject.com/en/1.8/ref/settings/#std:setting-SECRET_KEY'>STATIC_ROOT</ulink>:
  313. <literallayout class='monospaced'>
  314. STATIC_ROOT = '/var/www/toaster/static_files/'
  315. </literallayout>
  316. </para></listitem>
  317. </itemizedlist>
  318. </para></listitem>
  319. <listitem><para>
  320. Add the database and user to the <filename>mysql</filename>
  321. server defined earlier:
  322. <literallayout class='monospaced'>
  323. $ mysql -u root -p
  324. mysql> CREATE DATABASE toaster_data;
  325. mysql> CREATE USER 'toaster'@'localhost' identified by 'yourpasswordhere';
  326. mysql> GRANT all on toaster_data.* to 'toaster'@'localhost';
  327. mysql> quit
  328. </literallayout>
  329. </para></listitem>
  330. <listitem><para>
  331. Get Toaster to create the database schema,
  332. default data, and gather the statically-served files:
  333. <literallayout class='monospaced'>
  334. $ cd /var/www/toaster/poky/
  335. $ ./bitbake/lib/toaster/manage.py migrate
  336. $ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-poky/conf/toasterconf.json \
  337. ./bitbake/lib/toaster/manage.py checksettings
  338. $ ./bitbake/lib/toaster/manage.py collectstatic
  339. </literallayout>
  340. </para>
  341. <para>
  342. For the above set of commands, after moving to the
  343. <filename>poky</filename> directory,
  344. the <filename>migrate</filename>
  345. command ensures the database
  346. schema has had changes propagated correctly (i.e.
  347. migrations).
  348. </para>
  349. <para>
  350. The next line sets the Toaster root directory
  351. <filename>TOASTER_DIR</filename> and the location of
  352. the Toaster configuration file
  353. <filename>TOASTER_CONF</filename>, which is
  354. relative to the Toaster root directory
  355. <filename>TOASTER_DIR</filename>.
  356. For more information on the Toaster configuration file,
  357. see the
  358. <link linkend='configuring-toaster'>Configuring Toaster</link>
  359. chapter.
  360. </para>
  361. <para>
  362. This line also runs the <filename>checksettings</filename>
  363. command, which configures the location of the Toaster
  364. <ulink url='&YOCTO_DOCS_REF_URL;#build-directory'>Build directory</ulink>.
  365. The Toaster root directory <filename>TOASTER_DIR</filename>
  366. determines where the Toaster build directory
  367. is created on the file system.
  368. In the example above,
  369. <filename>TOASTER_DIR</filename> is set as follows:
  370. <literallayout class="monospaced">
  371. /var/www/toaster/poky
  372. </literallayout>
  373. This setting causes the Toaster build directory to be:
  374. <literallayout class="monospaced">
  375. /var/www/toaster/poky/build
  376. </literallayout>
  377. </para>
  378. <para>
  379. Finally, the <filename>collectstatic</filename> command
  380. is a Django framework command that collects all the
  381. statically served files into a designated directory to
  382. be served up by the Apache web server as defined by
  383. <filename>STATIC_ROOT</filename>.
  384. </para></listitem>
  385. <listitem><para>
  386. Add an Apache configuration file for Toaster to your Apache web
  387. server's configuration directory.
  388. If you are using Ubuntu or Debian, put the file here:
  389. <literallayout class='monospaced'>
  390. /etc/apache2/conf-available/toaster.conf
  391. </literallayout>
  392. If you are using Fedora or RedHat, put it here:
  393. <literallayout class='monospaced'>
  394. /etc/httpd/conf.d/toaster.conf
  395. </literallayout>
  396. If you are using OpenSUSE, put it here:
  397. <literallayout class='monospaced'>
  398. /etc/apache2/conf.d/toaster.conf
  399. </literallayout>
  400. Following is a sample Apache configuration for Toaster
  401. you can follow:
  402. <literallayout class='monospaced'>
  403. Alias /static /var/www/toaster/static_files
  404. &lt;Directory /var/www/toaster/static_files&gt;
  405. &lt;IfModule mod_access_compat.c&gt;
  406. Order allow,deny
  407. Allow from all
  408. &lt;/IfModule&gt;
  409. &lt;IfModule !mod_access_compat.c&gt;
  410. Require all granted
  411. &lt;/IfModule&gt;
  412. &lt;/Directory&gt;
  413. &lt;Directory /var/www/toaster/poky/bitbake/lib/toaster/toastermain&gt;
  414. &lt;Files "wsgi.py"&gt;
  415. Require all granted
  416. &lt;/Files&gt;
  417. &lt;/Directory&gt;
  418. WSGIDaemonProcess toaster_wsgi python-path=/var/www/toaster/poky/bitbake/lib/toaster:/var/www/toaster/.local/lib/python3.4/site-packages
  419. WSGIScriptAlias / "/var/www/toaster/poky/bitbake/lib/toaster/toastermain/wsgi.py"
  420. &lt;Location /&gt;
  421. WSGIProcessGroup toaster_wsgi
  422. &lt;/Location&gt;
  423. </literallayout>
  424. If you are using Ubuntu or Debian,
  425. you will need to enable the config and module for Apache:
  426. <literallayout class='monospaced'>
  427. $ sudo a2enmod wsgi
  428. $ sudo a2enconf toaster
  429. $ chmod +x bitbake/lib/toaster/toastermain/wsgi.py
  430. </literallayout>
  431. Finally, restart Apache to make sure all new configuration
  432. is loaded.
  433. For Ubuntu, Debian, and OpenSUSE use:
  434. <literallayout class='monospaced'>
  435. $ sudo service apache2 restart
  436. </literallayout>
  437. For Fedora and RedHat use:
  438. <literallayout class='monospaced'>
  439. $ sudo service httpd restart
  440. </literallayout>
  441. </para></listitem>
  442. <listitem><para>
  443. Prepare the systemd service to run Toaster builds.
  444. Here is a sample configuration file for the service:
  445. <literallayout class='monospaced'>
  446. [Unit]
  447. Description=Toaster runbuilds
  448. [Service]
  449. Type=forking
  450. User=toaster
  451. ExecStart=/usr/bin/screen -d -m -S runbuilds /var/www/toaster/poky/bitbake/lib/toaster/runbuilds-service.sh start
  452. ExecStop=/usr/bin/screen -S runbuilds -X quit
  453. WorkingDirectory=/var/www/toaster/poky
  454. [Install]
  455. WantedBy=multi-user.target
  456. </literallayout>
  457. Prepare the <filename>runbuilds-service.sh</filename>
  458. script that you need to place in the
  459. <filename>/var/www/toaster/poky/bitbake/lib/toaster/</filename>
  460. directory by setting up executable permissions:
  461. <literallayout class='monospaced'>
  462. #!/bin/bash
  463. #export http_proxy=http://proxy.host.com:8080
  464. #export https_proxy=http://proxy.host.com:8080
  465. #export GIT_PROXY_COMMAND=$HOME/bin/gitproxy
  466. cd ~/poky/
  467. source ./oe-init-build-env build
  468. source ../bitbake/bin/toaster $1 noweb
  469. [ "$1" == 'start' ] &amp;&amp; /bin/bash
  470. </literallayout>
  471. </para></listitem>
  472. <listitem><para>
  473. Run the service:
  474. <literallayout class='monospaced'>
  475. # service runbuilds start
  476. </literallayout>
  477. Since the service is running in a detached screen
  478. session, you can attach to it using this command:
  479. <literallayout class='monospaced'>
  480. $ sudo su - toaster
  481. $ screen -rS runbuilds
  482. </literallayout>
  483. You can detach from the service again using "Ctrl-a"
  484. followed by "d" key combination.
  485. </para></listitem>
  486. </orderedlist>
  487. You can now open up a browser and start using Toaster.
  488. </para>
  489. </section>
  490. </section>
  491. <section id='using-the-toaster-web-interface'>
  492. <title>Using the Toaster Web Interface</title>
  493. <para>
  494. The Toaster web interface allows you to do the following:
  495. <itemizedlist>
  496. <listitem><para>
  497. Browse published layers in the
  498. <ulink url='http://layers.openembedded.org'>OpenEmbedded Metadata Index</ulink>
  499. that are available for your selected version of the build
  500. system.
  501. </para></listitem>
  502. <listitem><para>
  503. Import your own layers for building.
  504. </para></listitem>
  505. <listitem><para>
  506. Add and remove layers from your configuration.
  507. </para></listitem>
  508. <listitem><para>
  509. Set configuration variables.
  510. </para></listitem>
  511. <listitem><para>
  512. Select a target or multiple targets to build.
  513. </para></listitem>
  514. <listitem><para>
  515. Start your builds.
  516. </para></listitem>
  517. <listitem><para>
  518. See what was built (recipes and packages) and what
  519. packages were installed into your final image.
  520. </para></listitem>
  521. <listitem><para>
  522. Browse the directory structure of your image.
  523. </para></listitem>
  524. <listitem><para>
  525. See the value of all variables in your build configuration,
  526. and which files set each value.
  527. </para></listitem>
  528. <listitem><para>
  529. Examine error, warning and trace messages to aid in
  530. debugging.
  531. </para></listitem>
  532. <listitem><para>
  533. See information about the BitBake tasks executed and
  534. reused during your build, including those that used
  535. shared state.
  536. </para></listitem>
  537. <listitem><para>
  538. See dependency relationships between recipes, packages
  539. and tasks.
  540. </para></listitem>
  541. <listitem><para>
  542. See performance information such as build time, task time,
  543. CPU usage, and disk I/O.
  544. </para></listitem>
  545. </itemizedlist>
  546. </para>
  547. <section id='web-interface-videos'>
  548. <title>Toaster Web Interface Videos</title>
  549. <para>
  550. Following are several videos that show how to use the Toaster GUI:
  551. <itemizedlist>
  552. <listitem><para><emphasis>Build Configuration:</emphasis>
  553. This
  554. <ulink url='https://www.youtube.com/watch?v=qYgDZ8YzV6w'>video</ulink>
  555. overviews and demonstrates build configuration for Toaster.
  556. </para></listitem>
  557. <listitem><para><emphasis>Build Custom Layers:</emphasis>
  558. This
  559. <ulink url='https://www.youtube.com/watch?v=QJzaE_XjX5c'>video</ulink>
  560. shows you how to build custom layers that are used with
  561. Toaster.
  562. </para></listitem>
  563. <listitem><para><emphasis>Toaster Homepage and Table Controls:</emphasis>
  564. This
  565. <ulink url='https://www.youtube.com/watch?v=QEARDnrR1Xw'>video</ulink>
  566. goes over the Toaster entry page, and provides
  567. an overview of the data manipulation capabilities of
  568. Toaster, which include search, sorting and filtering by
  569. different criteria.
  570. </para></listitem>
  571. <listitem><para><emphasis>Build Dashboard:</emphasis>
  572. This
  573. <ulink url='https://www.youtube.com/watch?v=KKqHYcnp2gE'>video</ulink>
  574. shows you the build dashboard, a page providing an
  575. overview of the information available for a selected build.
  576. </para></listitem>
  577. <listitem><para><emphasis>Image Information:</emphasis>
  578. This
  579. <ulink url='https://www.youtube.com/watch?v=XqYGFsmA0Rw'>video</ulink>
  580. walks through the information Toaster provides
  581. about images: packages installed and root file system.
  582. </para></listitem>
  583. <listitem><para><emphasis>Configuration:</emphasis>
  584. This
  585. <ulink url='https://www.youtube.com/watch?v=UW-j-T2TzIg'>video</ulink>
  586. provides Toaster build configuration information.
  587. </para></listitem>
  588. <listitem><para><emphasis>Tasks:</emphasis>
  589. This
  590. <ulink url='https://www.youtube.com/watch?v=D4-9vGSxQtw'>video</ulink>
  591. shows the information Toaster provides about the
  592. tasks run by the build system.
  593. </para></listitem>
  594. <listitem><para><emphasis>Recipes and Packages Built:</emphasis>
  595. This
  596. <ulink url='https://www.youtube.com/watch?v=x-6dx4huNnw'>video</ulink>
  597. shows the information Toaster provides about recipes
  598. and packages built.
  599. </para></listitem>
  600. <listitem><para><emphasis>Performance Data:</emphasis>
  601. This
  602. <ulink url='https://www.youtube.com/watch?v=qWGMrJoqusQ'>video</ulink>
  603. shows the build performance data provided by
  604. Toaster.
  605. </para></listitem>
  606. </itemizedlist>
  607. </para>
  608. </section>
  609. <section id='a-note-on-the-local-yocto-project-release'>
  610. <title>Additional Information About the Local Yocto Project Release</title>
  611. <para>
  612. This section only applies if you have set up Toaster
  613. for local development, as explained in the
  614. "<link linkend='starting-toaster-for-local-development'>Starting Toaster for Local Development</link>"
  615. section.
  616. </para>
  617. <para>
  618. When you create a project in Toaster, you will be asked to
  619. provide a name and to select a Yocto Project release.
  620. One of the release options you will find is called
  621. "Local Yocto Project".
  622. <imagedata fileref="figures/new-project.png" align="center" width="9in" />
  623. </para>
  624. <para>
  625. When you select the "Local Yocto Project" release, Toaster
  626. will run your builds using the local Yocto
  627. Project clone you have in your computer: the same clone
  628. you are using to run Toaster.
  629. Unless you manually update
  630. this clone, your builds will always use the same Git revision.
  631. </para>
  632. <para>
  633. If you select any of the other release options, Toaster
  634. will fetch the tip of your selected release from the upstream
  635. <ulink url='https://git.yoctoproject.org'>Yocto Project repository</ulink>
  636. every time you run a build.
  637. Fetching this tip effectively
  638. means that if your selected release is updated upstream, the
  639. Git revision you are using for your builds will change.
  640. If you are doing development locally, you might not want this
  641. change to happen.
  642. In that case, the "Local Yocto Project"
  643. release might be the right choice.
  644. </para>
  645. <para>
  646. However, the "Local Yocto Project" release
  647. will not provide you with any compatible layers, other than the
  648. three core layers that come with the Yocto Project:
  649. <itemizedlist>
  650. <listitem><para>
  651. <ulink url='http://layers.openembedded.org/layerindex/branch/master/layer/openembedded-core/'>openembedded-core</ulink>
  652. </para></listitem>
  653. <listitem><para>
  654. <ulink url='http://layers.openembedded.org/layerindex/branch/master/layer/meta-poky/'>meta-poky</ulink>
  655. </para></listitem>
  656. <listitem><para>
  657. <ulink url='http://layers.openembedded.org/layerindex/branch/master/layer/meta-yocto-bsp/'>meta-yocto-bsp</ulink>
  658. </para></listitem>
  659. </itemizedlist>
  660. <imagedata fileref="figures/compatible-layers.png" align="center" width="9in" />
  661. </para>
  662. <para>
  663. If you want to build any other layers, you will need to
  664. manually import them into your Toaster project, using the
  665. "Import layer" page.
  666. <imagedata fileref="figures/import-layer.png" align="center" width="9in" />
  667. </para>
  668. </section>
  669. <section id='toaster-web-interface-preferred-version'>
  670. <title>Building a Specific Recipe Given Multiple Versions</title>
  671. <para>
  672. Occasionally, a layer might provide more than one version of
  673. the same recipe.
  674. For example, the <filename>openembedded-core</filename> layer
  675. provides two versions of the <filename>bash</filename> recipe
  676. (i.e. 3.2.48 and 4.3.30-r0) and two versions of the
  677. <filename>which</filename> recipe (i.e. 2.21 and 2.18).
  678. The following figure shows this exact scenario:
  679. <imagedata fileref="figures/bash-oecore.png" align="center" width="9in" depth="6in" />
  680. </para>
  681. <para>
  682. By default, the OpenEmbedded build system builds one of the
  683. two recipes.
  684. For the <filename>bash</filename> case, version 4.3.30-r0 is
  685. built by default.
  686. Unfortunately, Toaster as it exists, is not able to override
  687. the default recipe version.
  688. If you would like to build bash 3.2.48, you need to set the
  689. <ulink url='&YOCTO_DOCS_REF_URL;#var-PREFERRED_VERSION'><filename>PREFERRED_VERSION</filename></ulink>
  690. variable.
  691. You can do so from Toaster, using the "Add variable" form,
  692. which is available in the "BitBake variables" page of the
  693. project configuration section as shown in the following screen:
  694. <imagedata fileref="figures/add-variable.png" align="center" width="9in" depth="6in" />
  695. </para>
  696. <para>
  697. To specify <filename>bash</filename> 3.2.48 as the version to build,
  698. enter "PREFERRED_VERSION_bash" in the "Variable" field, and "3.2.48"
  699. in the "Value" field.
  700. Next, click the "Add variable" button:
  701. <imagedata fileref="figures/set-variable.png" align="center" width="9in" depth="6in" />
  702. </para>
  703. <para>
  704. After clicking the "Add variable" button, the settings for
  705. <filename>PREFERRED_VERSION</filename> are added to the bottom
  706. of the BitBake variables list.
  707. With these settings, the OpenEmbedded build system builds the
  708. desired version of the recipe rather than the default version:
  709. <imagedata fileref="figures/variable-added.png" align="center" width="9in" depth="6in" />
  710. </para>
  711. </section>
  712. </section>
  713. </chapter>