Hi Nils,
As developer of the patch-in-question, please put me in CC in the following discussions.
Using relative paths in the BBLAYERS variable might not be very common in Yocto, but according to the BBLAYERS docs there is no rule that prohibits relative paths there.
Probably you just hit a bug in Yocto where the assumption that the path is absolute is wrong.
Maybe it would make sense to move this discussion to the Yocto ML or try to fix the respective recipe.
Please note, that there is also a lengthy discussion about this topic on Stackoverflow [1].
We mainly need the patch for ISAR builds to improve the sstate cacheability when running builds in the gitlab-ci.
There, the sources folder gets mounted to an non-predictable path that changes on each build.
With improved downstream cache handling (vardepvalue, etc…), this patch might (to be verified) not be relevant anymore.
Then, we could simply revert it. But before doing so, I would really appreciate to get a better understand of the issue.
Felix
--
You received this message because you are subscribed to the Google Groups "kas-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
kas-devel+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/kas-devel/228075af-3718-45e2-9a84-6b1adfd13940n%40googlegroups.com.
Hi Nils,
I just checked if the patch is still required for ISAR / Yocto:
Yes, it is.
The BBLAYERS variable is referenced in the wic logic (in WICVARS) and cannot be excluded there as otherwise changes to the variable are not detected correctly.
This is especially important when doing (rather rare) image-in-image builds (e.g. when building a host image with applications in docker containers).
These inner images (the container) can only be cached when using relative paths in BBLAYERS.
Felix
To view this discussion on the web visit https://groups.google.com/d/msgid/kas-devel/AM9PR10MB4869D6DB58B0A4C666C175DA896D9%40AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM.