From 96e3b4206e981c225c77613df3deab53706cb7b5 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 14 Jan 2014 18:02:08 -0600 Subject: ref-manual: Updated the WORKDIR variable description. Removed the machine-dependent and machine-independent descriptions. Created matching description from the "Writing a New Recipe" section. (From yocto-docs rev: 89a00beb81be60668abfdd67b13f5ee5bdc7ea1c) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 78 ++++++++++++++---------------- 1 file changed, 36 insertions(+), 42 deletions(-) diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index d6c4a76a2b..61f374806d 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -7194,58 +7194,52 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" WORKDIR - The pathname of the work directory in which the OpenEmbedded build system - builds a recipe. + The pathname of the work directory in which the OpenEmbedded + build system builds a recipe. This directory is located within the - TMPDIR directory structure and changes - as different packages are built. + TMPDIR + directory structure and changes as different packages are + built. - The actual WORKDIR directory depends on several things: - - The temporary directory - TMPDIR - The package architecture - PACKAGE_ARCH - The target machine - MACHINE - The target operating system - TARGET_OS - The recipe name - PN - The recipe version - PV - The recipe revision - PR - - - - - For packages that are not dependent on a particular machine, - WORKDIR is defined as follows: - - ${TMPDIR}/work/${PACKAGE_ARCH}-poky-${TARGET_OS}/${PN}/${PV}-${PR} - - As an example, assume a - Source Directory top-level - folder name poky and a default - Build Directory - at poky/build. - In this case, the work directory the build system uses to build - the v86d package is the following: + The WORKDIR directory is defined as + follows: - poky/build/tmp/work/qemux86-poky-linux/v86d/01.9-r0 + ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR} + The actual directory depends on several things: + + TMPDIR: + The top-level build output directory + MULTIMACH_TARGET_SYS: + The target system identifier + PN: + The recipe name + EXTENDPE: + The epoch - (if + PE + is not specified, which is usually the case for most + recipes, then EXTENDPE is blank) + PV: + The recipe version + PR: + The recipe revision + - For packages that are dependent on a particular machine, WORKDIR - is defined slightly differently: - - ${TMPDIR}/work/${MACHINE}-poky-${TARGET_OS}/${PN}/${PV}-${PR} - - As an example, again assume a Source Directory top-level folder - named poky and a default Build Directory - at poky/build. - In this case, the work directory the build system uses to build - the acl recipe, which is being built for a - MIPS-based device, is the following: + As an example, assume a Source Directory top-level folder + name poky, a default Build Directory at + poky/build, and a + qemux86-poky-linux machine target + system. + Furthermore, suppose your recipe is named + foo_1.3.0-r0.bb. + In this case, the work directory the build system uses to + build the package would be as follows: - poky/build/tmp/work/mips-poky-linux/acl/2.2.51-r2 + poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0 -- cgit v1.2.3-54-g00ecf