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: '/home/yoctouser/build/tmp/work/colibri_imx7_emmc-tdx-linux- gnueabi/my-image/1.0-r1/sdk/image/opt/machine-fb/5.0.0-devel- 20200924080856+build.0/sysroots/x86_64-tdxsdk-linux/usr/lib/locale'
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.