summaryrefslogtreecommitdiff
path: root/import-layers/yocto-poky/meta/classes/rm_work.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'import-layers/yocto-poky/meta/classes/rm_work.bbclass')
-rw-r--r--import-layers/yocto-poky/meta/classes/rm_work.bbclass17
1 files changed, 9 insertions, 8 deletions
diff --git a/import-layers/yocto-poky/meta/classes/rm_work.bbclass b/import-layers/yocto-poky/meta/classes/rm_work.bbclass
index c647d88d26..b71a9d1cf8 100644
--- a/import-layers/yocto-poky/meta/classes/rm_work.bbclass
+++ b/import-layers/yocto-poky/meta/classes/rm_work.bbclass
@@ -15,6 +15,9 @@
# to try and reduce disk usage
BB_SCHEDULER ?= "completion"
+# Run the rm_work task in the idle scheduling class
+BB_TASK_IONICE_LEVEL_task-rm_work = "3.0"
+
RMWORK_ORIG_TASK := "${BB_DEFAULT_TASK}"
BB_DEFAULT_TASK = "rm_work_all"
@@ -63,14 +66,10 @@ do_rm_work () {
i=dummy
break
;;
- *do_rootfs*)
- i=dummy
- break
- ;;
- *do_image*)
- i=dummy
- break
- ;;
+ *do_rootfs*|*do_image*|*do_bootimg*|*do_bootdirectdisk*|*do_vmimg*)
+ i=dummy
+ break
+ ;;
*do_build*)
i=dummy
break
@@ -119,6 +118,8 @@ rm_work_rootfs () {
rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs"
python () {
+ if bb.data.inherits_class('kernel', d):
+ d.appendVar("RM_WORK_EXCLUDE", ' ' + d.getVar("PN", True))
# If the recipe name is in the RM_WORK_EXCLUDE, skip the recipe.
excludes = (d.getVar("RM_WORK_EXCLUDE", True) or "").split()
pn = d.getVar("PN", True)