Applying Patches from Spinics Archive

This describes how to apply patches from Spinics Linux ARM kernel archives.

Most of the other descriptions on the net assume that you are subscribed to the Linux kernel mailing list. Then you'd just get an E-Mail and would "git am" or "patch -p1 <" that E-Mail.

However, if you are not subscribed, it's still possible to apply those patches:

Store the following block into ~/get-spinics-patch.sh and make it executable:

#!/bin/sh wget "$1" -O - | \ sed -n '/<[p]re>/,/<\/pre\>/b next;b;:next;s@@@;s@[&]gt;@>@g;s@[&]lt;@<@g;s@[&]quot;@"@g;s@[&]amp;@\&@g;p'

Then unpack your Linux kernel sources (for example from https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.20.5.tar.xz), and apply the patches you want, for example (replace the URLs with the archived pages of the patches you actually want to apply - excluding PATCH 0):

cd linux-4.20.5 ~/get-spinics-patch.sh https://www.spinics.net/lists/arm-kernel/msg650111.html |patch -p1 ~/get-spinics-patch.sh https://www.spinics.net/lists/arm-kernel/msg650112.html |patch -p1 ~/get-spinics-patch.sh https://www.spinics.net/lists/arm-kernel/msg650108.html |patch -p1 ~/get-spinics-patch.sh https://www.spinics.net/lists/arm-kernel/msg650105.html |patch -p1 ~/get-spinics-patch.sh https://www.spinics.net/lists/arm-kernel/msg650113.html |patch -p1 ~/get-spinics-patch.sh https://www.spinics.net/lists/arm-kernel/msg650107.html |patch -p1 ~/get-spinics-patch.sh https://www.spinics.net/lists/arm-kernel/msg650110.html |patch -p1 ~/get-spinics-patch.sh https://www.spinics.net/lists/arm-kernel/msg650109.html |patch -p1

Then proceed with the Mainline Kernel Howto.