Yocto: : does bitbake cleanall ,cleans dependencies as well

MohitKLulla picture MohitKLulla · Jun 15, 2017 · Viewed 17.8k times · Source

bitbake cleanall Removes all output files, shared state cache, and downloaded source files for a target

It is not clear or documented if it cleans all build time dependencies as well

Answer

Matthias picture Matthias · Feb 20, 2019

No, cleanall does not clean dependencies. eg

  bitbake -c cleanall core-image-minimal

only removes the output of that named recipe.

What i usually do to clean "everything" is running cleanall on the receipe "world":

bitbake -c cleanall world 

If that fails because of unresolvable packages like that:

ERROR: Nothing PROVIDES 'sg3-utils' (but /home/blubb/meta-freescale/recipes-devtools/utp-com/utp-com_git.bb DEPENDS on or otherwise requires it).

I just add the packages temporary to the ASSUME_PROVIDED variable like this :

bitbake -c cleanall world --ignore-deps=python-nativedtc-native --ignore-deps=sg3-utils

If nothing provides this packages it is unlikely that they where ever build.