Re: SSTATE_DIR by MACHINE target?


Quentin Schulz
 

Hi Matt,

On 1/19/23 17:37, mattwood2000@... wrote:
Hi,
is it possible to have SSTATE_DIR overrides based on the MACHINE
target or SOC family?
What are you trying to do? Which problem are you trying to solve that would require this?

For example, is this valid:
SSTATE_DIR:sama5 = "/path/to/sstate_a5"
SSTATE_DIR:rpi = "/path/to/sstate_rpi"
...
It depends what exactly you want to do, because this would apply only to SSTATE cache for the recipes to build for the target. A Yocto build however is made of native and target recipes. The native recipes are compiled and run on the host, while target recipes are compiled on the host with native binaries from native recipes and run on the target. So native recipes would have their SSTATE cache in a common directory, whether you pick rpi or sama5 as your MACHINE.

Cheers,
Quentin

Join yocto@lists.yoctoproject.org to automatically receive all group messages.