diff options
Diffstat (limited to 'meta/classes/rm_work.bbclass')
| -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 |
