[OE-core] [PATCH] image.bbclass: exclude deploy-${PN}-image-complete from rm_work

Richard Purdie richard.purdie at linuxfoundation.org
Fri Aug 2 12:35:30 UTC 2019


On Fri, 2019-08-02 at 17:12 +0800, liu.ming50 at gmail.com wrote:
> From: Ming Liu <ming.liu at toradex.com>
> 
> The results in ${IMGDEPLOYDIR} generated by a image task could be
> used by later image tasks.

No they shouldn't.

> , hence they should be excluded by rm_work. Or else when a image task
> gets rerun but one of its dependent image task does not, then the
> results generated by this dependent image task would not be there in
> ${IMGDEPLOYDIR}.

Nothing should be poking into IMGDEPLOYDIR outside of the image tasks.

do_image_complete[sstate-inputdirs] = "${IMGDEPLOYDIR}"
do_image_complete[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"

anything else should be after do_image_complete and be referencing
DEPLOY_DIR_IMAGE.

Cheers,

Richard



More information about the Openembedded-core mailing list