Re: Cleanup populate_sdk artefacts

Richard Purdie

On Fri, 2020-10-09 at 17:16 +0200, Arthur COURTEL wrote:
Hi all,

I'm working with a yocto Dunfell (3.1) on my embedded system.
I successfully built the SDK install script for my image recipe
with: bitbake my-image -c populate_sdk
However, the other day when I stopped the SDK generation before
completing (CTRL-C) and resumed it a couple of minutes after, bitbake
was not able to finish generating the SDK, saying:

Exception: FileNotFoundError: [Errno 2] No such file or directory:

I was able to determine that bitbake uses the variable DISTRO_VERSION
for building some paths during the generation.
My DISTRO_VERSION changes for each generation because it is built on
starting time generation.
I had to remove all my work folder in order for bitbake to restart
the SDK generation from scratch... Which takes some time...

Do you know if there is a way to cleanup the SDK generation properly
in case of a halt in the middle of the generation ?

Thank you for your time, have a great day!
bitbake <target name> -c clean

should clean up that kind of issue and allow it to continue.



Join to automatically receive all group messages.