On Tue, Dec 10, 2019 at 11:15:01AM +0000, Ross Burton wrote:
On 09/12/2019 16:30, Patrick Doyle wrote:I'm currently having issues with that on Thud though.But then I started wondering if I could change do_compile to python,Every layer can have a lib/ folder which is on the Python search path
We have a few python scripts in there and changes to those are not
reflected in Yocto and do not trigger a rebuild.
We have a meta/lib/mypython/ directory where python scripts are.
We have a mypython.bbclass which `import mypython.functions`, which
declares some python functions which calls the functions in
meta/lib/mypython/functions.py appropriately. Changes to this class are
obviously triggering a rebuild of recipes inheriting this class.
This functions.py we import also does `import mypython.custom`
containing some class and array of objects of that class.
Changes to at least meta/lib/mypython/custom.py (maybe even
meta/lib/mypython/functions.py but can't confirm yet) are not triggering
From my experience, the python calls are actually stored as plaintext in
the taskhash and not resolved at parse time, making Yocto unaware of any
change in tasks that should trigger a rebuild.
We're adding those files to filechecksums vardeps of all tasks in the
That's the work-around I've found but I don't like it that much, so if
this meta/lib/ is actually well supported, I'd be very happy to fix my
stuff the correct way :)