siemens / kas

Setup tool for bitbake based projects
MIT License
339 stars 145 forks source link

sstate_cache support #83

Closed yli147 closed 1 year ago

yli147 commented 1 year ago

Hi,

I'm using KAS_CONTAINER_IMAGE=ghcr.io/siemens/kas/kas-isar:3.1 and ./kas-container to cross compile my image. But there is no sstate_cache folder generated. Even I explicted declare the SSTATE_DIR marco , there is still no shared cache generated. Any idea ?

jan-kiszka commented 1 year ago

Unless you tweak KAS_WORK_DIR, you will find build/sstate-cache in the current workdir, ottherwise under ${KAS_WORK_DIR}/sstate-cache. SSTATE_DIR inside the build container is managed by kas as needed.

yli147 commented 1 year ago

No. only below files/folders under build folder bitbake-cookerdaemon.log conf downloads tmp

yli147 commented 1 year ago

I'm using this project https://github.com/siemens/isar-riscv, and upgraded the kas-container version to 3.1

jan-kiszka commented 1 year ago

That project is using an Isar revision pre-dating sstate support.

yli147 commented 1 year ago

Then, how to upgrade the isar to support the sstate, thanks !

jan-kiszka commented 1 year ago

Raise a PR with isar-riscv, bumping the Isar revision in the related kas config file and likely also updating the recipes to make that new version work. But it's not a kas issue.

yli147 commented 1 year ago

Thanks for the information, will try.

jan-kiszka commented 1 year ago

Closing as not being a kas topic.