为什么在 Yocto 构建中删除 tmp 时要删除 sstate-cache?
Why should one delete sstate-cache when deleting tmp in Yocto build?
Yocto 参考手册的 5.2.7. build/tmp/ 部分说:
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.
这是否意味着如果删除 tmp
,他们应该总是 也删除 sstate-cache
,如果不删除,事情就会中断,或者这是否只是一个令人困惑的表述,意味着如果 sstate-cache
仍然存在,它就不会真正从头开始?
如果是前者,原因是什么?
这是一个令人困惑的表述。如果你想从绝对干净的开始构建,那么你需要擦除 sstate-cache,否则它不会从头开始。您可以根据需要尽可能多地删除 tmp 并保留 sstate(我个人的 tmp 在 tmpfs 中,因此一天会被清空几次,但 sstate-cache 已使用多年)。
Yocto 参考手册的 5.2.7. build/tmp/ 部分说:
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 thebuild/sstate-cache
directory.
这是否意味着如果删除 tmp
,他们应该总是 也删除 sstate-cache
,如果不删除,事情就会中断,或者这是否只是一个令人困惑的表述,意味着如果 sstate-cache
仍然存在,它就不会真正从头开始?
如果是前者,原因是什么?
这是一个令人困惑的表述。如果你想从绝对干净的开始构建,那么你需要擦除 sstate-cache,否则它不会从头开始。您可以根据需要尽可能多地删除 tmp 并保留 sstate(我个人的 tmp 在 tmpfs 中,因此一天会被清空几次,但 sstate-cache 已使用多年)。