Skip to content

Applying Patches

This is specifically for applying patches from a .patch or a .mbox, which is a less ideal way especially if patches has landed in some git trees.

Easiest way is to use b4:

b4 shazam ${LINK_FROM_LORE_KERNEL_ORG}

For example:

b4 shazam 20250613-for-upstream-not-instantiate-spd5118-v2-1-cf456ed9b587@canonical.com

Another way would be downloading the .mbox from a mailing list thread and use git am.

References

Videos

  1. git-am - Apply a series of patches from a mailbox
  2. How to apply patches from the Linux Kernel Mailing List
  3. Applying Patches To The Linux Kernel (obsolete)
  4. am,shazam: retrieving and applying patches from B4 end-used doc.