summaryrefslogtreecommitdiffstats
path: root/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml')
-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