gpt4 book ai didi

yocto - Yocto中的sstate-cache目录应该如何删除?

转载 作者:行者123 更新时间:2023-12-03 16:29:10 25 4
gpt4 key购买 nike

我的尺寸sstate-cache我的 YoctoProject“fido”环境的目录超过 3GB。
如何删除 sstate-cache目录在 yocto/build-dir ?

是否保存使用rm -rf或者还有其他方法吗?

最佳答案

根据 Yocto 引用手册,可以删除完整的 build/tmp目录包括 sstate-cache目录:

As a last resort, to clean up a build and start it from scratch (other than the downloads), you can remove everything in the tmp directory or get rid of the directory completely. If you do, you should also completely remove the build/sstate-cache directory. (see [1] and [2])



此外,您可以使用 bitbake 删除 sstate-cache如需特定食谱,请调用 do_cleansstate如下所示(见 do_cleansstate)。
$ bitbake -c cleansstate recipe

请注意,共享状态缓存需要大量内存空间,并且在构建图像期间它会再次增长到所需的大小。

Yocto 引用手册的以下部分提供了有关共享状态缓存的更多详细信息:
Shared State Cachesstate-cache .

关于yocto - Yocto中的sstate-cache目录应该如何删除?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45341760/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com