summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/rm_work.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass
index 7b1ec17205..e68d02a783 100644
--- a/meta/classes/rm_work.bbclass
+++ b/meta/classes/rm_work.bbclass
@@ -110,3 +110,11 @@ rm_work_rootfs () {
110} 110}
111rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs" 111rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs"
112 112
113python () {
114 # If the recipe name is in the RM_WORK_EXCLUDE, skip the recipe.
115 excludes = (d.getVar("RM_WORK_EXCLUDE", True) or "").split()
116 pn = d.getVar("PN", True)
117 if pn in excludes:
118 d.delVarFlag('rm_work_rootfs', 'cleandirs')
119 d.delVarFlag('rm_work_populatesdk', 'cleandirs')
120}