Imagine the situation.
You're running a custom kernel which you compiled from the vanilla sources using your own .config. A new minor update gets released, let's say 5.16.16 which was released just yesterday, while you're already running 5.16.15.
How can you determine for sure that 5.16.16 contains changes that actually affect your setup? Should you compile and reboot into it or it has zero changes for you and you may safely skip it?
I was thinking of this:
- Apply the patch
- Revert the kernel version back to the one you're already running
- Build the kernel and install it into a temporary directory
- Binary compare the resulting files
This will not work. Modules might match (I'm not even totally sure about that) but vmlinuz will be different because it contains the build date/time and the number which identifies how many times the kernel has been built, i.e. Linux localhost.localdomain 5.16.15 #1 SMP PREEMPT Thu Mar 17 11:20:15 2022 x86_64 x86_64 x86_64 GNU/Linux - you can see #1.
This has to be skipped somehow.
In other words I'm looking for a reproducible kernel build which ignores any local variables.
There's TuxMake but I cannot figure out how to use my custom .config and nothing else.