Skip to contentSkip to conversation

rm_work: exclude all kernel recipes

PATCH New Martin Jansa 1 participant 1 message Jun 6, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rm_work: exclude all kernel recipes

From: Martin Jansa <[email protected]>

* otherwise kernel is rebuilt every single time and often it fails when building external modules

[YOCTO #9352]

---
 meta/classes/rm_work.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/rm_work.bbclass +2 -0
index c647d88..3ebf095 100644
@@ -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)
Signature · 1 line
2.8.3