Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use devtool to fix an outdated patch

Tags:

yocto

bitbake

I'm porting a layer to kirkstone which as an outdated patch which cannot be applied anymore (to u-boot). Can devtool be used to fix that patch? The problem is that per default devtool modify applies the patches and therefore fails to load the workspace.

like image 960
grmmgrmm Avatar asked Jun 25 '26 01:06

grmmgrmm


1 Answers

The patch refresh is indeed the best method if devtool modify can apply the patches with an offset. When devtool modify fails to apply the patches, one way to update the patches is:

  1. Remove the patches which no longer apply from SRC_URI
  2. Run devtool modify <recipe> as usual
  3. Port the patches manually and re-commit them
  4. Terminate with devtool finish <recipe> <destination>

Of course, if a patch does not apply because it was integrated upstream, the right solution is to just remove it from SRC_URI.

like image 183
yadutaf Avatar answered Jun 30 '26 14:06

yadutaf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!