Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yocto: : does bitbake cleanall ,cleans dependencies as well

Tags:

yocto

bitbake

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

like image 764
Mohit Avatar asked Jun 15 '17 20:06

Mohit


People also ask

What does Bitbake Cleanall do?

Removes all output files, shared state (sstate) cache, and downloaded source files for a target (i.e. the contents of DL_DIR).

What does Do_install do in yocto?

10 do_install. Copies files that are to be packaged into the holding area ${ D } . This task runs with the current working directory set to ${ B } , which is the compilation directory.

What is a Bitbake file?

BitBake is a make-like build tool with the special focus of distributions and packages for embedded Linux cross compilation, although it is not limited to that. It is inspired by Portage, which is the package management system used by the Gentoo Linux distribution.


2 Answers

If you want to clean everything do,

bitbake world -c cleanall --continue

The --continue will ignore any dependency errors while cleaning. Continue as much as possible after an error.

like image 171
JSixface Avatar answered Nov 10 '22 04:11

JSixface


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.

like image 28
Matthias Avatar answered Nov 10 '22 04:11

Matthias