With version 1.7 adding RM_WORK_EXCLUDE +="image-name" would leave the rootfs in the work area fully populated and wic would use it to build an image. After updating to master I began getting empty rootfs images generated by wic. I removed the patch http://git.openembedded.org/openembedded-core/commit/meta/classes/rm_work.bbclass?id=6bf06d80c2ce03dfdedac5ad8cf42ef8e36b0ecb and then I received fully populated wic images again. With the patch in place rootfs contents are removed after performing bitbake image-name. The empty rootfs directory is left so wic will succeed in building an image with an empty rootfs and not report an error.
This change is also in dizzy now and broke some stuff I had running.
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass index 7b1ec17..e68d02a 100644 --- a/meta/classes/rm_work.bbclass +++ b/meta/classes/rm_work.bbclass @@ -110,3 +110,11 @@ rm_work_rootfs () { } rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs" +python () { + # 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) + if pn in excludes: + d.delVarFlag('rm_work_rootfs', 'cleandirs') + d.delVarFlag('rm_work_populatesdk', 'cleandirs') +}
That patch resolved the problem for me. Can we get this into dizzy ASAP?
This patch worked for me. I verified a correct image is generated.
Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=2aa210cbc51df18e74eb04ece9ec5cd29057d2c2 and dizzy: http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=dizzy&id=e13f2681b75fd83aa3a1c823ad1c09faed0d6ae3