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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#49348): https://lists.yoctoproject.org/g/yocto/message/49348
Mute This Topic: https://lists.yoctoproject.org/mt/74029332/21656
Mute #yocto: https://lists.yoctoproject.org/mk?hashtag=yocto&subid=6691583
Group Owner: [email protected]
Unsubscribe:
https://lists.yoctoproject.org/g/yocto/leave/6691583/737036229/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-