On Tue, 2024-06-25 at 13:34 +0200, Alexander Kanavin wrote: > On Tue, 25 Jun 2024 at 13:06, Richard Purdie > <richard.pur...@linuxfoundation.org> wrote: > > > I don't think we even need to list the recipes like this. When > > devtool > > upgrade runs, we get a list of files which change. We can then > > query > > bitbake with that list of changed files and ask "which recipes also > > depend on these?". > > Right. Can you give me a lead on how this can be obtained? (e.g. > where > is the data structure it's in, or a function that returns it)
In tinfoil you can see the code in TinfoilCookerAdapter/TinfoilRecipeCacheAdapter i.e.: self.recipecaches[mc].inherits i.e. the result of: attrvalue = self.tinfoil.run_command('getRecipeInherits', self.mc) or {} I appreciate it calls this "inherits" but this is actually a list of any file included by the base recipe so any bbclass, .bb, or .inc file that was included should be listed here. The True/False associated with it is whether the file existed or not so that if it changed, we know to reparse. Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#201131): https://lists.openembedded.org/g/openembedded-core/message/201131 Mute This Topic: https://lists.openembedded.org/mt/106796297/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-