summaryrefslogtreecommitdiffstats
path: root/meta/classes/rm_work.bbclass
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2016-06-06 15:31:07 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-07 15:22:37 +0100
commitd9e47a522a50c586233f6545f47d85588aaf707e (patch)
tree0aa2642278f19240ae576384502294e3d4bdaea1 /meta/classes/rm_work.bbclass
parenta2eb6d486710973dc40d62d37c70aedf86c8ec3e (diff)
downloadpoky-d9e47a522a50c586233f6545f47d85588aaf707e.tar.gz
rm_work: exclude all kernel recipes
* otherwise kernel is rebuilt every single time and often it fails when building external modules [YOCTO #9352] (From OE-Core rev: 9d23daf03ece06185224f869e9b7f73789689c2d) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rm_work.bbclass')
-rw-r--r--meta/classes/rm_work.bbclass2
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 () {
119rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs" 119rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs"
120 120
121python () { 121python () {
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)