From 93d79fc162bd49387958e9e4d898dc4ba50d20b0 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 7 Jan 2015 23:45:08 +0000 Subject: 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] Signed-off-by: Richard Purdie --- meta/classes/rm_work.bbclass | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'meta/classes') diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass index 7979a53a38..e68d02a783 100644 --- a/meta/classes/rm_work.bbclass +++ b/meta/classes/rm_work.bbclass @@ -109,3 +109,12 @@ rm_work_rootfs () { : } rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs" + +python () { + # 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) + if pn in excludes: + d.delVarFlag('rm_work_rootfs', 'cleandirs') + d.delVarFlag('rm_work_populatesdk', 'cleandirs') +} -- cgit v1.2.3