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 @@ some editor to create the bitbake.conf so that it contains the following: + PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}" + + TMPDIR = "${TOPDIR}/tmp" CACHE = "${TMPDIR}/cache" - STAMP = "${TMPDIR}/stamps" - T = "${TMPDIR}/work" - B = "${TMPDIR}" + STAMP = "${TMPDIR}/${PN}/stamps" + T = "${TMPDIR}/${PN}/work" + B = "${TMPDIR}/${PN}" + + Without a value for PN, the + variables STAMP, + T, and B, + prevent more than one recipe from working. You can fix + this by either setting PN to have + a value similar to what OpenEmbedded and BitBake use + in the default bitbake.conf file + (see previous example). Or, by manually updating each + recipe to set PN. You will also + need to include PN as part of the + STAMP, T, and + B variable definitions in the + local.conf file. + The TMPDIR variable establishes a directory that BitBake uses for build output and intermediate files (other than the cached information used by the