summaryrefslogtreecommitdiffstats
path: root/bitbake/doc/bitbake-user-manual
diff options
context:
space:
mode:
authorKristi Rifenbark <kristi.rifenbark@gmail.com>2017-09-25 15:58:45 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-16 20:38:58 +0000
commit7a2e6534b0a461756fdbfd7a314d6b4fd5310df1 (patch)
treea69c640d5bc26822de7d71e66a0c4abbba99c448 /bitbake/doc/bitbake-user-manual
parent1613e00f52214ed060ff81bde27173c8722fc154 (diff)
downloadpoky-7a2e6534b0a461756fdbfd7a314d6b4fd5310df1.tar.gz
bitbake: bitbake-user-manual: Updated Hello World tutorial
Fixes [YOCTO #12016] (Bitbake rev: bc5b2e7e7fab53ee9ee0db762de822bb88062419) Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/doc/bitbake-user-manual')
-rw-r--r--bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml24
1 files changed, 21 insertions, 3 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml
index 28891cb91e..36aa810c43 100644
--- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml
+++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml
@@ -273,12 +273,30 @@
273 some editor to create the <filename>bitbake.conf</filename> 273 some editor to create the <filename>bitbake.conf</filename>
274 so that it contains the following: 274 so that it contains the following:
275 <literallayout class='monospaced'> 275 <literallayout class='monospaced'>
276 <link linkend='var-PN'>PN</link> = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}"
277 </literallayout>
278 <literallayout class='monospaced'>
276 TMPDIR = "${<link linkend='var-TOPDIR'>TOPDIR</link>}/tmp" 279 TMPDIR = "${<link linkend='var-TOPDIR'>TOPDIR</link>}/tmp"
277 <link linkend='var-CACHE'>CACHE</link> = "${TMPDIR}/cache" 280 <link linkend='var-CACHE'>CACHE</link> = "${TMPDIR}/cache"
278 <link linkend='var-STAMP'>STAMP</link> = "${TMPDIR}/stamps" 281 <link linkend='var-STAMP'>STAMP</link> = "${TMPDIR}/${PN}/stamps"
279 <link linkend='var-T'>T</link> = "${TMPDIR}/work" 282 <link linkend='var-T'>T</link> = "${TMPDIR}/${PN}/work"
280 <link linkend='var-B'>B</link> = "${TMPDIR}" 283 <link linkend='var-B'>B</link> = "${TMPDIR}/${PN}"
281 </literallayout> 284 </literallayout>
285 <note>
286 Without a value for <filename>PN</filename>, the
287 variables <filename>STAMP</filename>,
288 <filename>T</filename>, and <filename>B</filename>,
289 prevent more than one recipe from working. You can fix
290 this by either setting <filename>PN</filename> to have
291 a value similar to what OpenEmbedded and BitBake use
292 in the default <filename>bitbake.conf</filename> file
293 (see previous example). Or, by manually updating each
294 recipe to set <filename>PN</filename>. You will also
295 need to include <filename>PN</filename> as part of the
296 <filename>STAMP</filename>, <filename>T</filename>, and
297 <filename>B</filename> variable definitions in the
298 <filename>local.conf</filename> file.
299 </note>
282 The <filename>TMPDIR</filename> variable establishes a directory 300 The <filename>TMPDIR</filename> variable establishes a directory
283 that BitBake uses for build output and intermediate files (other 301 that BitBake uses for build output and intermediate files (other
284 than the cached information used by the 302 than the cached information used by the