diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-07 23:45:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-08 09:25:03 +0000 |
commit | e13f2681b75fd83aa3a1c823ad1c09faed0d6ae3 (patch) | |
tree | 7c015d95e4448112dd93a99f2357e83d9313d485 /meta | |
parent | 6dd21a9f152a93e2df1178d7a5bd903d7edcf4be (diff) | |
download | poky-e13f2681b75fd83aa3a1c823ad1c09faed0d6ae3.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: 93d79fc162bd49387958e9e4d898dc4ba50d20b0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/rm_work.bbclass | 9 |
1 files changed, 9 insertions, 0 deletions
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 () { | |||
109 | : | 109 | : |
110 | } | 110 | } |
111 | rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs" | 111 | rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs" |
112 | |||
113 | python () { | ||
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 | } | ||