Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
genimage.bbclass: clean ${B} completely before building
Since do_deploy copies all files from ${B} to the deploy directory, the latter quickly fills up when doing multiple builds. And those files in turn get copied to images/${MACHINE}/ - filling the disk, and making the do_deploy task take longer and longer. Fix this by adding ${B} to do_genimage[cleandirs] so that we always start in an empty directory. For that to work, we have to move the responsibility of creating the copy of genimage.config from do_configure to do_genimage itself (otherwise, a rebuild where none of the inputs to do_configure had changed would break). But since do_genimage now creates that copy itself, we can get rid of the extra .tmp copy, and just use the ${B}/.config file. I deliberately keep do_genimage's working directory set to ${B} (i.e., keeping the [dirs] line), because some users rely on that for using `include()` inside genimage.config. Reported-by: João Loureiro <joaofl@gmail.com> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
- Loading branch information