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>
This commit is contained in:
Martin Jansa
2016-06-06 15:31:07 +02:00
committed by Richard Purdie
parent a2eb6d4867
commit d9e47a522a

View 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)