Enable sstate Cache ¶
sstate Cache Background
To speed up the build process, sstate provides a cache mechanism, where sstate files from server can be reused to avoid build from scratch if the producer and consumer of the sstate have the same environment. With perfect case, we can achieve more than 80% time decreasing.
sstate Cache Server
The default sstate files directory is sstate-cache under build dir. A mirror is available via sstate.karo-electronics.de.
In your build directory in
conf/local.conf add those lines:
SSTATE_MIRRORS = " \ file://.* http://sstate.karo-electronics.de/thud/PATH \ "
The special “PATH” suffix is important as it is automatically expanded to the correct value for native packages (which are split by the host distribution being used).
Verify the sstate is working
If sstate works, you can see something like:
... Checking sstate mirror object availability ... Executing SetScene Tasks
|||More information in official documentation, here.|