I've encountered a strange behavior of devtool in my new Yocto project.
Normally, I use devtool modify command to make modifications to source files and later use the finish subcommand to create patches from my commits end put them in my layer. Later on, I use the modify command again to make further modifications. But this time the second time I used the modify subcommand, my patches, which normally I expect apply as commits, were not there. What can be the cause for this?
So in short:
devtool modify recipe-name
Make modification, then git commit ...
devtool finish recipe-name layer-name
Patches are created and placed in the SRC_URI:prepend of .bbappend file in layer-name.
Later:
devtool modify recipe-name
However, the patches are not present in the commit history.
I can also say that doing a compile with the recipe-name checked-out with devtool modify results in errors, since the patches are not applied. But doing devtool reset recipe-name, then bitbake image-name compiles successfully.
linux-raspberrypiMy bad here. The patches were correctly applied but to a different branch to where I was expecting them. I was expecting them to appear on the devtool branch instead they were applied on the rpi-6.6.y branch which is the correct version my yocto config target. So, yeah I think I still need a better understanding of devtool.