]> code.ossystems Code Review - openembedded-core.git/commitdiff
rm_work: exclude all kernel recipes
authorMartin Jansa <martin.jansa@gmail.com>
Mon, 6 Jun 2016 13:31:07 +0000 (15:31 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Jun 2016 14:44:04 +0000 (15:44 +0100)
* otherwise kernel is rebuilt every single time and often it fails when
  building external modules

[YOCTO #9352]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rm_work.bbclass

index c647d88d267b1cba02f85cbeecec0e806b65789e..3ebf0956c6f67f5a56086f0caf800f1db9d75afb 100644 (file)
@@ -119,6 +119,8 @@ rm_work_rootfs () {
 rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs"
 
 python () {
+    if bb.data.inherits_class('kernel', d):
+        d.appendVar("RM_WORK_EXCLUDE", ' ' + d.getVar("PN", True))
     # 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)