diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-03-13 15:01:33 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-18 13:18:21 +0000 |
commit | 83409910dd3a31589ca9ea4172a70f0bcd877d8f (patch) | |
tree | b92a63ebc3a885a1da64802a9ad5a87f61761586 /meta/classes | |
parent | 52026492c61cd51ee53852c8e353cb274c601c88 (diff) | |
download | poky-83409910dd3a31589ca9ea4172a70f0bcd877d8f.tar.gz |
rm_work.bbclass: inhibit rm_work per recipe
Use RM_WORK_WHITELIST to inhibit rm_work per recipe. In this way,
one can use rm_work for the most of the recipes but still keep the
work area for the recipe(s) one is working on.
As an example, the following settings in local.conf will inhibit
rm_work for icu-native, icu and busybox.
INHERIT += "rm_work"
RM_WORK_WHITELIST += "icu-native icu busybox"
If we comment out the RM_WORK_WHITELIST line and do a rebuild, the
working area of these recipes will be cleaned up.
[YOCTO #3675]
(From OE-Core rev: 6c930c3c06f2e698540626c87bd7f7f571df35ef)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/rm_work.bbclass | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass index d3be0be887..54287bf6b3 100644 --- a/meta/classes/rm_work.bbclass +++ b/meta/classes/rm_work.bbclass | |||
@@ -5,6 +5,11 @@ | |||
5 | # | 5 | # |
6 | # INHERIT += "rm_work" | 6 | # INHERIT += "rm_work" |
7 | # | 7 | # |
8 | # To inhibit rm_work for some recipes, specify them in RM_WORK_WHITELIST. | ||
9 | # For example, in conf/local.conf: | ||
10 | # | ||
11 | # RM_WORK_WHITELIST += "icu-native icu busybox" | ||
12 | # | ||
8 | 13 | ||
9 | # Use the completion scheduler by default when rm_work is active | 14 | # Use the completion scheduler by default when rm_work is active |
10 | # to try and reduce disk usage | 15 | # to try and reduce disk usage |
@@ -14,6 +19,14 @@ RMWORK_ORIG_TASK := "${BB_DEFAULT_TASK}" | |||
14 | BB_DEFAULT_TASK = "rm_work_all" | 19 | BB_DEFAULT_TASK = "rm_work_all" |
15 | 20 | ||
16 | do_rm_work () { | 21 | do_rm_work () { |
22 | # If the recipe name is in the RM_WORK_WHITELIST, skip the recipe. | ||
23 | for p in ${RM_WORK_WHITELIST}; do | ||
24 | if [ "$p" = "${PN}" ]; then | ||
25 | bbnote "rm_work: Skipping ${PN} since it is in RM_WORK_WHITELIST" | ||
26 | exit 0 | ||
27 | fi | ||
28 | done | ||
29 | |||
17 | cd ${WORKDIR} | 30 | cd ${WORKDIR} |
18 | for dir in * | 31 | for dir in * |
19 | do | 32 | do |