Re: [yocto] Best way to support multiple versions of Poky?
* Burton, Ross ross.bur...@intel.com [121126 14:58]: On 26 November 2012 13:55, Jerrod Peach pea...@lexmark.com wrote: build-bundle (git repo with our layers + tools) | +-- meta-ourstuff (git submodule, i.e. separate repo locked to a specific version within build-bundle) +-- poky (another submodule) | +-- poky BB files (i.e. within meta, meta-yocto, etc.) Guacamayo does something similar, although meta-outstuff isn't a submodule of build-bundle. At ChargeStorm we're using a similar scheme to Guacamayo, i.e. we have our repo with our recipes, bsp's, distro config etc. in our own meta-*-directories. And the we have oe-core, meta-oe, and/or poky and whatever layers we're using as submodules. Being able to branch a next branch that switched the poky revision to the danny RC instead of denzil was very convenient. Indeed, and also to be able to create a next branch halfway between denzil and danny, to be able to port / adapt some recipe that required bigger changes at about the same time those occured in poky-master (or oe-core master). Thus, I'm pretty satisfied with our structure for the moment, though everything can be improved. Cheers, Anders -- Anders Darander ChargeStorm AB / eStorm AB ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Best way to support multiple versions of Poky?
On Thu, Nov 22, 2012 at 3:35 AM, Chris Tapp opensou...@keylevel.com wrote: I'm just getting round to moving from 'denzil' to 'danny'. I've got a layer that makes some changes to a few recipes through bbappend files. However, 'danny' has bumped a few of these to a new version (which is good) which means I now have bbappend files that get a 'there is no matching bb file' errors when I try to build. This is easy to fix (generally just rename the bbappend to match the new version), but I would like the layer to be able to work with older versions of Poky - mainly in case I need to make changes to an existing project that hasn't be verified under 'danny'. What's the best way to do this? All I can think of is to have another set of layers to use when building against a specific poky version: meta-mystuff | +--poky-versions | +--denzil-specific +--danny-specific +--etc Is there a more elegant solution? Chris Tapp opensou...@keylevel.com www.keylevel.com ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto I don't know what sort of version control (if any) you're using around meta-mystuff, so what I'm about to suggest may not be directly applicable to you. Also, note that we have not actually deployed the scheme we've developed at our company yet (so there may be some reason it doesn't work that we haven't thought of yet), but here's the directory/repo structure we think will work for our code: build-bundle (git repo with our layers + tools) | +-- meta-ourstuff (git submodule, i.e. separate repo locked to a specific version within build-bundle) +-- poky (another submodule) | +-- poky BB files (i.e. within meta, meta-yocto, etc.) When we release code, we'll create a tag in build-bundle. If the released code needs to diverge from the state of our master, we'll branch, then tag. Either way, if you want to build old code, you check out the tag and build it. That should just work because what we see as the tools (i.e. everything in the poky directory) are being version-controlled along-side everything we've added, including .bbappend files in our layers that modify .bb files in the poky layer. Of course, if you need to modify an old release, you'd branch off the release you wanted to modify. So, if denzil is the current version and you need to modify a release created with danny, you simply branch from that release, and all your .bbappend files and tools will be correct for the danny version of the Yocto tools. ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Best way to support multiple versions of Poky?
On 26 November 2012 13:55, Jerrod Peach pea...@lexmark.com wrote: build-bundle (git repo with our layers + tools) | +-- meta-ourstuff (git submodule, i.e. separate repo locked to a specific version within build-bundle) +-- poky (another submodule) | +-- poky BB files (i.e. within meta, meta-yocto, etc.) Guacamayo does something similar, although meta-outstuff isn't a submodule of build-bundle. Being able to branch a next branch that switched the poky revision to the danny RC instead of denzil was very convenient. Ross ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Best way to support multiple versions of Poky?
I'm just getting round to moving from 'denzil' to 'danny'. I've got a layer that makes some changes to a few recipes through bbappend files. However, 'danny' has bumped a few of these to a new version (which is good) which means I now have bbappend files that get a 'there is no matching bb file' errors when I try to build. This is easy to fix (generally just rename the bbappend to match the new version), but I would like the layer to be able to work with older versions of Poky - mainly in case I need to make changes to an existing project that hasn't be verified under 'danny'. What's the best way to do this? All I can think of is to have another set of layers to use when building against a specific poky version: meta-mystuff | +--poky-versions | +--denzil-specific +--danny-specific +--etc Is there a more elegant solution? Chris Tapp opensou...@keylevel.com www.keylevel.com ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Best way to support multiple versions of Poky?
On Thu, Nov 22, 2012 at 9:35 AM, Chris Tapp opensou...@keylevel.com wrote: I'm just getting round to moving from 'denzil' to 'danny'. I've got a layer that makes some changes to a few recipes through bbappend files. However, 'danny' has bumped a few of these to a new version (which is good) which means I now have bbappend files that get a 'there is no matching bb file' errors when I try to build. This is easy to fix (generally just rename the bbappend to match the new version), but I would like the layer to be able to work with older versions of Poky - mainly in case I need to make changes to an existing project that hasn't be verified under 'danny'. What's the best way to do this? All I can think of is to have another set of layers to use when building against a specific poky version: meta-mystuff | +--poky-versions | +--denzil-specific +--danny-specific +--etc Is there a more elegant solution? i suspect you might have thought about that already... and might have discarded the idea... but for meta-ti layer, we use a branching scheme. each version is maintained in its separate branch. you will find 'denzil', 'danny', and master branch here http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/, for each OE version. one drawback with that is that you need multiple copy of the layer 'tree' to work on multiple versions... but that can be managed. ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto