Autoupdate of versions in specific recipes #yocto
Hey,
Is there a feature in yocto, similar to ${AUTOREV}, which allows to check for updates and modify a recipe?
Background:
We've a setup which is build upon the yocto project. We've a base git project containing various layers (like basic poky, bsp layers as well as our own layers with our own recipes). Another part of the yocto "superproject" are some source repositorys containing the sourcecode of internal applications. We use the externalsrc class in the recipes (actually a derived class) to build our application which works well.
One benefit of this technique is that we can use git to handle updating and tracking the submodules: We can track a branch of our applications in the .gitmodules file, we can use $ git submodule summary to summarize changes and so on. This covers the requirement that we can go back to commit xxxxxxx of the superproject and this one commit reflects the state of ALL used software. There are drawbacks however: The sources are now handled out of yocto's realms, so some features are limited and we need to check out all our applications, even if the target we're building doesn't even use that recipe.
The alternative we use in some, seldomly changed applications is to use "the regular yocto flow", have a SRCREV in recipe and update that whenever needed. Drawback is that this is a manual process, so sb who needs to update two applications needs to replace the revision, collect changelogs from the repos, create a commit containing the changelog, get that through a PR, ...
My goal would be to set a flag in recipes where I would like updates and than trigger "bitbake update-recipes". Bitbake would parse all recipes, check for the flag. If the flag is set, check SRC_URI (git url + branch), update SRCREV and in the end output a summary similar to git submodule summary (changed commits + changelog / git log --oneline). I feel a lot of the plumbing exists (eg from the fetcher supporting AUTOREV).
Does anyone know if something like this?
Best regards, Olli
Quoted 7 lines · Oliver Westermann
My goal would be to set a flag in recipes where I would like updates and than trigger "bitbake update-recipes". Bitbake would parse all recipes, check for the flag. If the flag is set, check
SRC_URI(git url + branch), update SRCREV and in the end output a summary similar to git submodule summary (changed commits + changelog / git log --oneline). I feel a lot of the plumbing exists (eg from the fetcher supporting AUTOREV).
I think you might find auto upgrade helper useful:
http://git.yoctoproject.org/cgit/cgit.cgi/auto-upgrade-helper/tree/README
It's built on top of 'devtool upgrade' and 'devtool check-upgrade-status', so you can use those directly in some kind of custom script as well.
Alex
Thanks for the link, I will check it out.