Yocto: : does bitbake cleanall ,cleans dependencies as well

ぃ、小莉子 提交于 2019-12-22 12:37:22

问题


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


回答1:


Please read the mega-manual section do_cleanall .

do_cleanall removes:

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

You can run this task using BitBake as follows:

 $ bitbake -c cleanall <recipe-name>

If recipe name is not passed to cleanall task it does not work.




回答2:


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.




回答3:


Removes all output files, shared state (sstate) cache, and downloaded source files for a target (i.e. the contents of DL_DIR). Essentially, the do_cleanall task is identical to the do_cleansstate task with the added removal of downloaded source files.

You can run this task using BitBake as follows:

 $ bitbake -c cleanall recipe

Typically, you would not normally use the cleanall task. Do so only if you want to start fresh with the do_fetch task.



来源:https://stackoverflow.com/questions/44576185/yocto-does-bitbake-cleanall-cleans-dependencies-as-well

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!