bitbake-user-manual-hello.xml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  2. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  3. <appendix id='hello-world-example'>
  4. <title>Hello World Example</title>
  5. <section id='bitbake-hello-world'>
  6. <title>BitBake Hello World</title>
  7. <para>
  8. The simplest example commonly used to demonstrate any new
  9. programming language or tool is the
  10. "<ulink url="http://en.wikipedia.org/wiki/Hello_world_program">Hello World</ulink>"
  11. example.
  12. This appendix demonstrates, in tutorial form, Hello
  13. World within the context of BitBake.
  14. The tutorial describes how to create a new project
  15. and the applicable metadata files necessary to allow
  16. BitBake to build it.
  17. </para>
  18. </section>
  19. <section id='example-obtaining-bitbake'>
  20. <title>Obtaining BitBake</title>
  21. <para>
  22. See the
  23. "<link linkend='obtaining-bitbake'>Obtaining BitBake</link>"
  24. section for information on how to obtain BitBake.
  25. Once you have the source code on your machine, the BitBake directory
  26. appears as follows:
  27. <literallayout class='monospaced'>
  28. $ ls -al
  29. total 100
  30. drwxrwxr-x. 9 wmat wmat 4096 Jan 31 13:44 .
  31. drwxrwxr-x. 3 wmat wmat 4096 Feb 4 10:45 ..
  32. -rw-rw-r--. 1 wmat wmat 365 Nov 26 04:55 AUTHORS
  33. drwxrwxr-x. 2 wmat wmat 4096 Nov 26 04:55 bin
  34. drwxrwxr-x. 4 wmat wmat 4096 Jan 31 13:44 build
  35. -rw-rw-r--. 1 wmat wmat 16501 Nov 26 04:55 ChangeLog
  36. drwxrwxr-x. 2 wmat wmat 4096 Nov 26 04:55 classes
  37. drwxrwxr-x. 2 wmat wmat 4096 Nov 26 04:55 conf
  38. drwxrwxr-x. 3 wmat wmat 4096 Nov 26 04:55 contrib
  39. -rw-rw-r--. 1 wmat wmat 17987 Nov 26 04:55 COPYING
  40. drwxrwxr-x. 3 wmat wmat 4096 Nov 26 04:55 doc
  41. -rw-rw-r--. 1 wmat wmat 69 Nov 26 04:55 .gitignore
  42. -rw-rw-r--. 1 wmat wmat 849 Nov 26 04:55 HEADER
  43. drwxrwxr-x. 5 wmat wmat 4096 Jan 31 13:44 lib
  44. -rw-rw-r--. 1 wmat wmat 195 Nov 26 04:55 MANIFEST.in
  45. -rw-rw-r--. 1 wmat wmat 2887 Nov 26 04:55 TODO
  46. </literallayout>
  47. </para>
  48. <para>
  49. At this point, you should have BitBake cloned to
  50. a directory that matches the previous listing except for
  51. dates and user names.
  52. </para>
  53. </section>
  54. <section id='setting-up-the-bitbake-environment'>
  55. <title>Setting Up the BitBake Environment</title>
  56. <para>
  57. First, you need to be sure that you can run BitBake.
  58. Set your working directory to where your local BitBake
  59. files are and run the following command:
  60. <literallayout class='monospaced'>
  61. $ ./bin/bitbake --version
  62. BitBake Build Tool Core version 1.23.0, bitbake version 1.23.0
  63. </literallayout>
  64. The console output tells you what version you are running.
  65. </para>
  66. <para>
  67. The recommended method to run BitBake is from a directory of your
  68. choice.
  69. To be able to run BitBake from any directory, you need to add the
  70. executable binary to your binary to your shell's environment
  71. <filename>PATH</filename> variable.
  72. First, look at your current <filename>PATH</filename> variable
  73. by entering the following:
  74. <literallayout class='monospaced'>
  75. $ echo $PATH
  76. </literallayout>
  77. Next, add the directory location for the BitBake binary to the
  78. <filename>PATH</filename>.
  79. Here is an example that adds the
  80. <filename>/home/scott-lenovo/bitbake/bin</filename> directory
  81. to the front of the <filename>PATH</filename> variable:
  82. <literallayout class='monospaced'>
  83. $ export PATH=/home/scott-lenovo/bitbake/bin:$PATH
  84. </literallayout>
  85. You should now be able to enter the <filename>bitbake</filename>
  86. command from the command line while working from any directory.
  87. </para>
  88. </section>
  89. <section id='the-hello-world-example'>
  90. <title>The Hello World Example</title>
  91. <para>
  92. The overall goal of this exercise is to build a
  93. complete "Hello World" example utilizing task and layer
  94. concepts.
  95. Because this is how modern projects such as OpenEmbedded and
  96. the Yocto Project utilize BitBake, the example
  97. provides an excellent starting point for understanding
  98. BitBake.
  99. </para>
  100. <para>
  101. To help you understand how to use BitBake to build targets,
  102. the example starts with nothing but the <filename>bitbake</filename>
  103. command, which causes BitBake to fail and report problems.
  104. The example progresses by adding pieces to the build to
  105. eventually conclude with a working, minimal "Hello World"
  106. example.
  107. </para>
  108. <para>
  109. While every attempt is made to explain what is happening during
  110. the example, the descriptions cannot cover everything.
  111. You can find further information throughout this manual.
  112. Also, you can actively participate in the
  113. <ulink url='http://lists.openembedded.org/mailman/listinfo/bitbake-devel'></ulink>
  114. discussion mailing list about the BitBake build tool.
  115. </para>
  116. <note>
  117. This example was inspired by and drew heavily from these sources:
  118. <itemizedlist>
  119. <listitem><para>
  120. <ulink url="http://www.mail-archive.com/yocto@yoctoproject.org/msg09379.html">Mailing List post - The BitBake equivalent of "Hello, World!"</ulink>
  121. </para></listitem>
  122. <listitem><para>
  123. <ulink url="https://web.archive.org/web/20150325165911/http://hambedded.org/blog/2012/11/24/from-bitbake-hello-world-to-an-image/">Hambedded Linux blog post - From Bitbake Hello World to an Image</ulink>
  124. </para></listitem>
  125. </itemizedlist>
  126. </note>
  127. <para>
  128. As stated earlier, the goal of this example
  129. is to eventually compile "Hello World".
  130. However, it is unknown what BitBake needs and what you have
  131. to provide in order to achieve that goal.
  132. Recall that BitBake utilizes three types of metadata files:
  133. <link linkend='configuration-files'>Configuration Files</link>,
  134. <link linkend='classes'>Classes</link>, and
  135. <link linkend='recipes'>Recipes</link>.
  136. But where do they go?
  137. How does BitBake find them?
  138. BitBake's error messaging helps you answer these types of questions
  139. and helps you better understand exactly what is going on.
  140. </para>
  141. <para>
  142. Following is the complete "Hello World" example.
  143. </para>
  144. <orderedlist>
  145. <listitem><para><emphasis>Create a Project Directory:</emphasis>
  146. First, set up a directory for the "Hello World" project.
  147. Here is how you can do so in your home directory:
  148. <literallayout class='monospaced'>
  149. $ mkdir ~/hello
  150. $ cd ~/hello
  151. </literallayout>
  152. This is the directory that BitBake will use to do all of
  153. its work.
  154. You can use this directory to keep all the metafiles needed
  155. by BitBake.
  156. Having a project directory is a good way to isolate your
  157. project.
  158. </para></listitem>
  159. <listitem><para><emphasis>Run Bitbake:</emphasis>
  160. At this point, you have nothing but a project directory.
  161. Run the <filename>bitbake</filename> command and see what
  162. it does:
  163. <literallayout class='monospaced'>
  164. $ bitbake
  165. The BBPATH variable is not set and bitbake did not
  166. find a conf/bblayers.conf file in the expected location.
  167. Maybe you accidentally invoked bitbake from the wrong directory?
  168. DEBUG: Removed the following variables from the environment:
  169. GNOME_DESKTOP_SESSION_ID, XDG_CURRENT_DESKTOP,
  170. GNOME_KEYRING_CONTROL, DISPLAY, SSH_AGENT_PID, LANG, no_proxy,
  171. XDG_SESSION_PATH, XAUTHORITY, SESSION_MANAGER, SHLVL,
  172. MANDATORY_PATH, COMPIZ_CONFIG_PROFILE, WINDOWID, EDITOR,
  173. GPG_AGENT_INFO, SSH_AUTH_SOCK, GDMSESSION, GNOME_KEYRING_PID,
  174. XDG_SEAT_PATH, XDG_CONFIG_DIRS, LESSOPEN, DBUS_SESSION_BUS_ADDRESS,
  175. _, XDG_SESSION_COOKIE, DESKTOP_SESSION, LESSCLOSE, DEFAULTS_PATH,
  176. UBUNTU_MENUPROXY, OLDPWD, XDG_DATA_DIRS, COLORTERM, LS_COLORS
  177. </literallayout>
  178. The majority of this output is specific to environment variables
  179. that are not directly relevant to BitBake.
  180. However, the very first message regarding the
  181. <filename>BBPATH</filename> variable and the
  182. <filename>conf/bblayers.conf</filename> file
  183. is relevant.</para>
  184. <para>
  185. When you run BitBake, it begins looking for metadata files.
  186. The
  187. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>
  188. variable is what tells BitBake where to look for those files.
  189. <filename>BBPATH</filename> is not set and you need to set it.
  190. Without <filename>BBPATH</filename>, Bitbake cannot
  191. find any configuration files (<filename>.conf</filename>)
  192. or recipe files (<filename>.bb</filename>) at all.
  193. BitBake also cannot find the <filename>bitbake.conf</filename>
  194. file.
  195. </para></listitem>
  196. <listitem><para><emphasis>Setting <filename>BBPATH</filename>:</emphasis>
  197. For this example, you can set <filename>BBPATH</filename>
  198. in the same manner that you set <filename>PATH</filename>
  199. earlier in the appendix.
  200. You should realize, though, that it is much more flexible to set the
  201. <filename>BBPATH</filename> variable up in a configuration
  202. file for each project.</para>
  203. <para>From your shell, enter the following commands to set and
  204. export the <filename>BBPATH</filename> variable:
  205. <literallayout class='monospaced'>
  206. $ BBPATH="<replaceable>projectdirectory</replaceable>"
  207. $ export BBPATH
  208. </literallayout>
  209. Use your actual project directory in the command.
  210. BitBake uses that directory to find the metadata it needs for
  211. your project.
  212. <note>
  213. When specifying your project directory, do not use the
  214. tilde ("~") character as BitBake does not expand that character
  215. as the shell would.
  216. </note>
  217. </para></listitem>
  218. <listitem><para><emphasis>Run Bitbake:</emphasis>
  219. Now that you have <filename>BBPATH</filename> defined, run
  220. the <filename>bitbake</filename> command again:
  221. <literallayout class='monospaced'>
  222. $ bitbake
  223. ERROR: Traceback (most recent call last):
  224. File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 163, in wrapped
  225. return func(fn, *args)
  226. File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 173, in parse_config_file
  227. return bb.parse.handle(fn, data, include)
  228. File "/home/scott-lenovo/bitbake/lib/bb/parse/__init__.py", line 99, in handle
  229. return h['handle'](fn, data, include)
  230. File "/home/scott-lenovo/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 120, in handle
  231. abs_fn = resolve_file(fn, data)
  232. File "/home/scott-lenovo/bitbake/lib/bb/parse/__init__.py", line 117, in resolve_file
  233. raise IOError("file %s not found in %s" % (fn, bbpath))
  234. IOError: file conf/bitbake.conf not found in /home/scott-lenovo/hello
  235. ERROR: Unable to parse conf/bitbake.conf: file conf/bitbake.conf not found in /home/scott-lenovo/hello
  236. </literallayout>
  237. This sample output shows that BitBake could not find the
  238. <filename>conf/bitbake.conf</filename> file in the project
  239. directory.
  240. This file is the first thing BitBake must find in order
  241. to build a target.
  242. And, since the project directory for this example is
  243. empty, you need to provide a <filename>conf/bitbake.conf</filename>
  244. file.
  245. </para></listitem>
  246. <listitem><para><emphasis>Creating <filename>conf/bitbake.conf</filename>:</emphasis>
  247. The <filename>conf/bitbake.conf</filename> includes a number of
  248. configuration variables BitBake uses for metadata and recipe
  249. files.
  250. For this example, you need to create the file in your project directory
  251. and define some key BitBake variables.
  252. For more information on the <filename>bitbake.conf</filename>,
  253. see
  254. <ulink url='https://web.archive.org/web/20150325165911/http://hambedded.org/blog/2012/11/24/from-bitbake-hello-world-to-an-image/#an-overview-of-bitbakeconf'></ulink>
  255. </para>
  256. <para>Use the following commands to create the <filename>conf</filename>
  257. directory in the project directory:
  258. <literallayout class='monospaced'>
  259. $ mkdir conf
  260. </literallayout>
  261. From within the <filename>conf</filename> directory, use
  262. some editor to create the <filename>bitbake.conf</filename>
  263. so that it contains the following:
  264. <literallayout class='monospaced'>
  265. TMPDIR = "${<link linkend='var-TOPDIR'>TOPDIR</link>}/tmp"
  266. <link linkend='var-CACHE'>CACHE</link> = "${TMPDIR}/cache"
  267. <link linkend='var-STAMP'>STAMP</link> = "${TMPDIR}/stamps"
  268. <link linkend='var-T'>T</link> = "${TMPDIR}/work"
  269. <link linkend='var-B'>B</link> = "${TMPDIR}"
  270. </literallayout>
  271. The <filename>TMPDIR</filename> variable establishes a directory
  272. that BitBake uses for build output and intermediate files (other
  273. than the cached information used by the
  274. <link linkend='setscene'>Setscene</link> process.
  275. Here, the <filename>TMPDIR</filename> directory is set to
  276. <filename>hello/tmp</filename>.
  277. <note><title>Tip</title>
  278. You can always safely delete the <filename>tmp</filename>
  279. directory in order to rebuild a BitBake target.
  280. The build process creates the directory for you
  281. when you run BitBake.
  282. </note></para>
  283. <para>For information about each of the other variables defined in this
  284. example, click on the links to take you to the definitions in
  285. the glossary.
  286. </para></listitem>
  287. <listitem><para><emphasis>Run Bitbake:</emphasis>
  288. After making sure that the <filename>conf/bitbake.conf</filename>
  289. file exists, you can run the <filename>bitbake</filename>
  290. command again:
  291. <literallayout class='monospaced'>
  292. $ bitbake
  293. ERROR: Traceback (most recent call last):
  294. File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 163, in wrapped
  295. return func(fn, *args)
  296. File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 177, in _inherit
  297. bb.parse.BBHandler.inherit(bbclass, "configuration INHERITs", 0, data)
  298. File "/home/scott-lenovo/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 92, in inherit
  299. include(fn, file, lineno, d, "inherit")
  300. File "/home/scott-lenovo/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 100, in include
  301. raise ParseError("Could not %(error_out)s file %(fn)s" % vars(), oldfn, lineno)
  302. ParseError: ParseError in configuration INHERITs: Could not inherit file classes/base.bbclass
  303. ERROR: Unable to parse base: ParseError in configuration INHERITs: Could not inherit file classes/base.bbclass
  304. </literallayout>
  305. In the sample output, BitBake could not find the
  306. <filename>classes/base.bbclass</filename> file.
  307. You need to create that file next.
  308. </para></listitem>
  309. <listitem><para><emphasis>Creating <filename>classes/base.bbclass</filename>:</emphasis>
  310. BitBake uses class files to provide common code and functionality.
  311. The minimally required class for BitBake is the
  312. <filename>classes/base.bbclass</filename> file.
  313. The <filename>base</filename> class is implicitly inherited by
  314. every recipe.
  315. BitBake looks for the class in the <filename>classes</filename>
  316. directory of the project (i.e <filename>hello/classes</filename>
  317. in this example).
  318. </para>
  319. <para>Create the <filename>classes</filename> directory as follows:
  320. <literallayout class='monospaced'>
  321. $ cd $HOME/hello
  322. $ mkdir classes
  323. </literallayout>
  324. Move to the <filename>classes</filename> directory and then
  325. create the <filename>base.bbclass</filename> file by inserting
  326. this single line:
  327. <literallayout class='monospaced'>
  328. addtask build
  329. </literallayout>
  330. The minimal task that BitBake runs is the
  331. <filename>do_build</filename> task.
  332. This is all the example needs in order to build the project.
  333. Of course, the <filename>base.bbclass</filename> can have much
  334. more depending on which build environments BitBake is
  335. supporting.
  336. For more information on the <filename>base.bbclass</filename> file,
  337. you can look at
  338. <ulink url='https://web.archive.org/web/20150325165911/http://hambedded.org/blog/2012/11/24/from-bitbake-hello-world-to-an-image/#tasks'></ulink>.
  339. </para></listitem>
  340. <listitem><para><emphasis>Run Bitbake:</emphasis>
  341. After making sure that the <filename>classes/base.bbclass</filename>
  342. file exists, you can run the <filename>bitbake</filename>
  343. command again:
  344. <literallayout class='monospaced'>
  345. $ bitbake
  346. Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.
  347. </literallayout>
  348. BitBake is finally reporting no errors.
  349. However, you can see that it really does not have anything
  350. to do.
  351. You need to create a recipe that gives BitBake something to do.
  352. </para></listitem>
  353. <listitem><para><emphasis>Creating a Layer:</emphasis>
  354. While it is not really necessary for such a small example,
  355. it is good practice to create a layer in which to keep your
  356. code separate from the general metadata used by BitBake.
  357. Thus, this example creates and uses a layer called "mylayer".
  358. <note>
  359. You can find additional information on adding a layer at
  360. <ulink url='https://web.archive.org/web/20150325165911/http://hambedded.org/blog/2012/11/24/from-bitbake-hello-world-to-an-image/#adding-an-example-layer'></ulink>.
  361. </note>
  362. </para>
  363. <para>Minimally, you need a recipe file and a layer configuration
  364. file in your layer.
  365. The configuration file needs to be in the <filename>conf</filename>
  366. directory inside the layer.
  367. Use these commands to set up the layer and the <filename>conf</filename>
  368. directory:
  369. <literallayout class='monospaced'>
  370. $ cd $HOME
  371. $ mkdir mylayer
  372. $ cd mylayer
  373. $ mkdir conf
  374. </literallayout>
  375. Move to the <filename>conf</filename> directory and create a
  376. <filename>layer.conf</filename> file that has the following:
  377. <literallayout class='monospaced'>
  378. BBPATH .= ":${<link linkend='var-LAYERDIR'>LAYERDIR</link>}"
  379. <link linkend='var-BBFILES'>BBFILES</link> += "${LAYERDIR}/*.bb"
  380. <link linkend='var-BBFILE_COLLECTIONS'>BBFILE_COLLECTIONS</link> += "mylayer"
  381. <link linkend='var-BBFILE_PATTERN'>BBFILE_PATTERN_mylayer</link> := "^${LAYERDIR}/"
  382. </literallayout>
  383. For information on these variables, click the links
  384. to go to the definitions in the glossary.</para>
  385. <para>You need to create the recipe file next.
  386. Inside your layer at the top-level, use an editor and create
  387. a recipe file named <filename>printhello.bb</filename> that
  388. has the following:
  389. <literallayout class='monospaced'>
  390. <link linkend='var-DESCRIPTION'>DESCRIPTION</link> = "Prints Hello World"
  391. <link linkend='var-PN'>PN</link> = 'printhello'
  392. <link linkend='var-PV'>PV</link> = '1'
  393. python do_build() {
  394. bb.plain("********************");
  395. bb.plain("* *");
  396. bb.plain("* Hello, World! *");
  397. bb.plain("* *");
  398. bb.plain("********************");
  399. }
  400. </literallayout>
  401. The recipe file simply provides a description of the
  402. recipe, the name, version, and the <filename>do_build</filename>
  403. task, which prints out "Hello World" to the console.
  404. For more information on these variables, follow the links
  405. to the glossary.
  406. </para></listitem>
  407. <listitem><para><emphasis>Run Bitbake With a Target:</emphasis>
  408. Now that a BitBake target exists, run the command and provide
  409. that target:
  410. <literallayout class='monospaced'>
  411. $ cd $HOME/hello
  412. $ bitbake printhello
  413. ERROR: no recipe files to build, check your BBPATH and BBFILES?
  414. Summary: There was 1 ERROR message shown, returning a non-zero exit code.
  415. </literallayout>
  416. We have created the layer with the recipe and the layer
  417. configuration file but it still seems that BitBake cannot
  418. find the recipe.
  419. BitBake needs a <filename>conf/bblayers.conf</filename> that
  420. lists the layers for the project.
  421. Without this file, BitBake cannot find the recipe.
  422. </para></listitem>
  423. <listitem><para><emphasis>Creating <filename>conf/bblayers.conf</filename>:</emphasis>
  424. BitBake uses the <filename>conf/bblayers.conf</filename> file
  425. to locate layers needed for the project.
  426. This file must reside in the <filename>conf</filename> directory
  427. of the project (i.e. <filename>hello/conf</filename> for this
  428. example).</para>
  429. <para>Set your working directory to the <filename>hello/conf</filename>
  430. directory and then create the <filename>bblayers.conf</filename>
  431. file so that it contains the following:
  432. <literallayout class='monospaced'>
  433. BBLAYERS ?= " \
  434. /home/&lt;you&gt;/mylayer \
  435. "
  436. </literallayout>
  437. You need to provide your own information for
  438. <filename>you</filename> in the file.
  439. </para></listitem>
  440. <listitem><para><emphasis>Run Bitbake With a Target:</emphasis>
  441. Now that you have supplied the <filename>bblayers.conf</filename>
  442. file, run the <filename>bitbake</filename> command and provide
  443. the target:
  444. <literallayout class='monospaced'>
  445. $ bitbake printhello
  446. Parsing recipes: 100% |##################################################################################|
  447. Time: 00:00:00
  448. Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors.
  449. NOTE: Resolving any missing task queue dependencies
  450. NOTE: Preparing RunQueue
  451. NOTE: Executing RunQueue Tasks
  452. ********************
  453. * *
  454. * Hello, World! *
  455. * *
  456. ********************
  457. NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.
  458. </literallayout>
  459. BitBake finds the <filename>printhello</filename> recipe and
  460. successfully runs the task.
  461. <note>
  462. After the first execution, re-running
  463. <filename>bitbake printhello</filename> again will not
  464. result in a BitBake run that prints the same console
  465. output.
  466. The reason for this is that the first time the
  467. <filename>printhello.bb</filename> recipe's
  468. <filename>do_build</filename> task executes
  469. successfully, BitBake writes a stamp file for the task.
  470. Thus, the next time you attempt to run the task
  471. using that same <filename>bitbake</filename> command,
  472. BitBake notices the stamp and therefore determines
  473. that the task does not need to be re-run.
  474. If you delete the <filename>tmp</filename> directory
  475. or run <filename>bitbake -c clean printhello</filename>
  476. and then re-run the build, the "Hello, World!" message will
  477. be printed again.
  478. </note>
  479. </para></listitem>
  480. </orderedlist>
  481. </section>
  482. </appendix>