From: Martin Jansa Date: Mon, 6 Jun 2016 13:31:07 +0000 (+0200) Subject: rm_work: exclude all kernel recipes X-Git-Tag: uninative-1.3~756 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=9d23daf03ece06185224f869e9b7f73789689c2d;p=openembedded-core.git rm_work: exclude all kernel recipes * otherwise kernel is rebuilt every single time and often it fails when building external modules [YOCTO #9352] Signed-off-by: Martin Jansa Signed-off-by: Richard Purdie --- 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 () { 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)