summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-07 23:45:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-08 09:24:47 +0000
commit2aa210cbc51df18e74eb04ece9ec5cd29057d2c2 (patch)
tree4d3c9595ad148bcb070f986d2e156ab38f35353e /meta/classes
parent292f32b18bad0443fec29e488e4daa28d91e3700 (diff)
downloadpoky-2aa210cbc51df18e74eb04ece9ec5cd29057d2c2.tar.gz
rm_work: Fix RM_WORK_EXCLUDE for image/sdk recipes
A previous change meant image/sdk recipes were removed unconditionally by the class and did not respect RM_WORK_EXCLUDE. This fixes that problem. [YOCTO #7114] (From OE-Core rev: 050de16968fe6efeba5d64761b11512549e9fdc2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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}