> -----Original Message----- > From: Richard Purdie <[email protected]> > Sent: Sonntag, 4. Juni 2023 14:52 > To: Weihmann, Konrad (Avnet Embedded) <[email protected]>; > [email protected] > Subject: [External]Re: [yocto] Register out-of-tree fetcher with devtool > > On Fri, 2023-06-02 at 04:47 +0000, Weihmann, Konrad (Avnet Embedded) > wrote: > > > > > > > > Hi all, > > > > we do have an out-of-tree fetcher that I would like to make use of > > with devtool, for instance for upgrade checking. > > Within our recipes the fetcher is registered by this workaround > > > > python () { > > import foo > > bb.fetch2.methods.append(foo.FooFetcher()) > > } > > > > Which isn’t the nicest possible solution still does the trick. > > > > But that doesn’t work for devtool, as it seems to not take any but > > oe-core lib-paths into consideration. > > > > For devtool check-upgrade-status <recipe with above code snippet> > > > > I get something like “no handler for foo://… found”. > > > > Is there any way to register this out-of-tree fetcher module so > > tinfoil/devtool can “see” them? > > Currently, no, there isn't a good API for doing this. It is something I've > wondered how to fix for a while. > > The addpylib directive we recently added does go some way to allowing > layers to pragmatically add python modules. There might be options to > buildup upon that extend the fetcher from there?
Indeed it could be a chance to make it happen - sadly we are currently on kirkstone, so if there isn't an alternative present, I guess I have to stick to recreating the devtool check upgrade status via an additional task. If I find the time to, I will post patches or further questions. Cheers Konrad > > Cheers, > > Richard We continuously commit to comply with the applicable data protection laws and ensure fair and transparent processing of your personal data. Please read our privacy statement including an information notice and data protection policy for detailed information on our website.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#60175): https://lists.yoctoproject.org/g/yocto/message/60175 Mute This Topic: https://lists.yoctoproject.org/mt/99280594/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
