diff options
-rw-r--r-- | meta/classes/rm_work.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass index c647d88d26..3ebf0956c6 100644 --- a/meta/classes/rm_work.bbclass +++ b/meta/classes/rm_work.bbclass | |||
@@ -119,6 +119,8 @@ rm_work_rootfs () { | |||
119 | rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs" | 119 | rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs" |
120 | 120 | ||
121 | python () { | 121 | python () { |
122 | if bb.data.inherits_class('kernel', d): | ||
123 | d.appendVar("RM_WORK_EXCLUDE", ' ' + d.getVar("PN", True)) | ||
122 | # If the recipe name is in the RM_WORK_EXCLUDE, skip the recipe. | 124 | # If the recipe name is in the RM_WORK_EXCLUDE, skip the recipe. |
123 | excludes = (d.getVar("RM_WORK_EXCLUDE", True) or "").split() | 125 | excludes = (d.getVar("RM_WORK_EXCLUDE", True) or "").split() |
124 | pn = d.getVar("PN", True) | 126 | pn = d.getVar("PN", True) |