how to find kernel patch applied on existing build kernel
Hi, If I would like to find out if any particular build kernel has a particular patch applied to that kernel how to go about it? Regards, Vipul.
On 22 December 2013 06:56, Vipul Jain <vipulsj@gmail.com> wrote:
Hi,
If I would like to find out if any particular build kernel has a particular patch applied to that kernel how to go about it?
Regards, Vipul.
Hello! You can do a git log on the kernel's repo and see when it was applied. Or do a git blame if you need a particular line of a file. If you want to match it to a release, track the tags in the repo. You can use the webinterface: https://git.kernel.org/cgit/ Just remember that because of the distributed nature of git and the kernel's development model, a particular patch is merged in many trees before reaching the de facto main linux repo (Linus' repo).
Hi, Vipul If you want to know to which kernel release is a specified patch related, you can do it by git "describe --contains": git describe --contains e605b36575e896edd8161534550c9ea021b03bc0 v3.13-rc2~6^2 Regards, Rami Rosen http://ramirose.wix.com/ramirosen On Sun, Dec 22, 2013 at 1:26 PM, Alexandru Juncu <alexj@rosedu.org> wrote:
On 22 December 2013 06:56, Vipul Jain <vipulsj@gmail.com> wrote:
Hi,
If I would like to find out if any particular build kernel has a particular patch applied to that kernel how to go about it?
Regards, Vipul.
Hello!
You can do a git log on the kernel's repo and see when it was applied. Or do a git blame if you need a particular line of a file.
If you want to match it to a release, track the tags in the repo.
You can use the webinterface:
Just remember that because of the distributed nature of git and the kernel's development model, a particular patch is merged in many trees before reaching the de facto main linux repo (Linus' repo).
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Sat, Dec 21, 2013 at 08:56:07PM -0800, Vipul Jain wrote:
Hi,
If I would like to find out if any particular build kernel has a particular patch applied to that kernel how to go about it?
Regards, Vipul.
rpm -q kernel --changelog -- Best Regards, Dong Zhu MySite: http://bluezd.info
On Wed, 25 Dec 2013 11:28:35 +0800, Dong Zhu said:
rpm -q kernel --changelog
That won't actually list all the 10,000+ commits between kernel releases - it often won't even list all the vendor-applied patches that they've put on top of the Linus kernel. And it assumes an RPM based system.... As somebody else mentioned, 'git tag --contains (commit-id)' is the best bet here.
participants (5)
-
Alexandru Juncu -
Dong Zhu -
Rami Rosen -
Valdis.Kletnieks@vt.edu -
Vipul Jain