On Tue, 31 Oct 2023 at 13:28, Richard Purdie <richard.pur...@linuxfoundation.org> wrote:
> > Then we can pull all of it together into 'devtool esdk <image>' > > command (or similar), which would enter the esdk environment directly > > via: > > - running 'bitbake <image> meta-ide-support' > > - running the above mentioned bitbake local.conf task to generate the > > esdk-specific local.conf > > - sourcing the environment script produced by meta-ide-support > > - rewriting PATH to provide only the curated esdk tools and not > > everything plus bitbake. > > - writing a custom devtool.conf similar to that of standalone esdk so > > that devtool can find bitbake and bitbake can use the esdk-specific > > local.conf > > > > And it would be tested in the same way standalone esdks are. > > > > Thoughts? Anything missing from the above list? > > That sounds like a good way to handle this to me! A couple followup points: - copy_buildsystem() in populate_sdk_ext class is overly long at 400 lines and does many different barely related things, writing local.conf for esdk one of them: https://git.yoctoproject.org/poky/tree/meta/classes-recipe/populate_sdk_ext.bbclass#n189 The first step would be to structure it into separate functions each doing one thing and hopefully fitting on a single screen. Then these functions can be hand-picked into a task designed to provide esdk things in a yocto build context, and the code would simply be more readable, as right now I can barely understand all the various things that function does, and the spaghetti of local variables etc. - the tool that would set up the esdk environment in a plain yocto build could be a shell script in scripts/oe-init-esdk-env perhaps, similar to oe-init-build-env. No need to make it a devtool plugin; it could use python helpers to program the more tricky bits such as PATH manipulations etc. So one would first initialize the yocto environment, then transition to an esdk environment from that (there would be no way to go back, as one can simply start a new session). Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#189843): https://lists.openembedded.org/g/openembedded-core/message/189843 Mute This Topic: https://lists.openembedded.org/mt/101356420/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-