From c3ecfdb70780488a262e079281e7274f49d401ea Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 3 Apr 2013 21:02:05 +0100 Subject: [PATCH] ref-manual: add documentation for rm_work.bbclass I rewrote the class description to conform to the existing manual style. Mainly making voice active and breaking up long sentenced. (From yocto-docs rev: e715167e280eb647be52c142f733942dab3f4dfb) Signed-off-by: Paul Eggleton Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 37 +++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index a03a68b6e9..acda0da063 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml @@ -538,6 +538,42 @@ +
+ Removing work files during the build - <filename>rm_work.bbclass</filename> + + + The OpenEmbedded build system can use a substantial amount of disk + space during the build process. + A portion of this space is the work files under the + ${TMPDIR}/work directory for each recipe. + Once the build system generates the packages for a recipe, the work + files for that recipe are no longer needed. + However, by default, the build system preserves these files + for inspection and possible debugging purposes. + If you would rather have these files deleted to save disk space + as the build progresses, you can enable rm_work + by adding the following to your local.conf file, + which is found in the + Build Directory. + + INHERIT += "rm_work" + + If you are modifying and building source code out of the work directory + for a recipe, enabling rm_work will potentially + result in your changes to the source being lost. + To exclude some recipes from having their work directories deleted by + rm_work, you can add the names of the recipe or + recipes you are working on to the RM_WORK_EXCLUDE + variable, which is also found in your local.conf + file. + Here is an example: + + RM_WORK_EXCLUDE += "busybox eglibc" + + +
+ +
Autotools Configuration Data Cache - <filename>siteinfo.bbclass</filename> @@ -732,7 +768,6 @@ qt4*.bbclass recipe_sanity.bbclass relocatable.bbclass - rm_work.bbclass scons.bbclass sdl.bbclass setuptools.bbclass