Date
1 - 4 of 4
[OE-core] Introducing yb - a new tool for Yocto environment setup/management
Alexander Kanavin
Hello Chris,
do you think any of these pieces could be moved to 'official yocto', specifically as bitbake-layers subcommands? I read through the README, and it seems that things like 'status' and 'run' would fit very well there. Also note that there's a proposal for a json schema and layer tooling that would be provided directly in oe-core: https://git.yoctoproject.org/poky-contrib/log/?h=akanavin/setup-layers I can't help but say that there's a certain bit of irony in referring to https://xkcd.com/1987/ - when introducing yet another external tool for yocto layer management :-) Alex On Wed, 3 Aug 2022 at 22:21, Chris Laplante via lists.openembedded.org <chris.laplante=agilent.com@...> wrote:
|
|
Chris Laplante
Hi Alex,
do you think any of these pieces could be moved to 'official yocto',I would agree that 'status' and 'run' would be useful additions, though I can't say I'll have time to volunteer to do it :(. Also note that there's a proposal for a json schema and layer tooling thatI saw that a few weeks ago and it is certainly good work :). (as are the other existing solutions, like kas, whisk, etc.) But IMHO bundling the layer setup tool inside bitbake itself feels a bit like the chicken-and-egg problem. I'd like my spec file (or JSON file, kas configuration file, whatever) to be a complete manifest of things to download. But with bitbake-layers, first I need to know the right version of poky and where to get it. Also, I think it would be hard to implement 'yb sync'-like functionality there, specifically if we wanted to be able to change between poky branches. Overall the thing I like about yb is that it is independent of Yocto/BitBake and easier to setup. Like an IDE, I can install it once and use it across multiple projects. I can't help but say that there's a certain bit of irony in referring toThe irony is not lost on me :), especially given the layer setup tool conversation last month. Chris |
|
Alexander Kanavin
On Wed, 3 Aug 2022 at 23:02, Chris Laplante via lists.openembedded.org
<chris.laplante=agilent.com@...> wrote: But IMHO bundling the layer setup tool inside bitbake itself feels a bit like the chicken-and-egg problem. I'd like my spec file (or JSON file, kas configuration file, whatever) to be a complete manifest of things to download. But with bitbake-layers, first I need to > know the right version of poky and where to get it. Also, I think it would be hard to implement 'yb sync'-like functionality there, specifically if we wanted to be able to change between poky branches.The bitbake-layers command is needed only to generate the layer config file (in json format) out of an already existing yocto setup. It does not perform the actual layer fetch/setup from the json. That's the feature I like the most in my proposal: none of the other tools bootstrap the config file in this way, you need to always write it by hand. The actual layer setup (using the json) is performed by an independent, self-contained python script (copied from a template in oe-core), which you can place anywhere you want (e.g. in a product layer repo, or in a 'config stream repo'), and which does not require an active yocto environment or a poky checkout. The equivalant of 'yb sync' would be to pull that repo to get latest revisions of the script and the json, then run the script pointing to an existing checkout - it will sync everything to the revisions in json. Alex |
|
Chris Laplante
The bitbake-layers command is needed only to generate the layer config fileAh, I misunderstood your approach then. That all makes sense and sounds very nice. Chris |
|