From bc5b2e7e7fab53ee9ee0db762de822bb88062419 Mon Sep 17 00:00:00 2001 From: Kristi Rifenbark Date: Mon, 25 Sep 2017 15:58:45 -0700 Subject: bitbake-user-manual: Updated Hello World tutorial Fixes [YOCTO #12016] Signed-off-by: Kristi Rifenbark Signed-off-by: Richard Purdie --- .../bitbake-user-manual-hello.xml | 24 +++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/bitbake-user-manual/bitbake-user-manual-hello.xml b/doc/bitbake-user-manual/bitbake-user-manual-hello.xml index 28891cb91..36aa810c4 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-hello.xml +++ b/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 -- cgit 1.2.3-korg