how to determine whether the source code is same between two kernels

Aruna Hewapathirane aruna.hewapathirane at gmail.com
Sat May 11 09:20:22 EDT 2019


On Fri, May 10, 2019 at 11:58 PM Valdis Klētnieks <valdis.kletnieks at vt.edu>
wrote:

> On Fri, 10 May 2019 22:11:31 -0400, Aruna Hewapathirane said:
>
> > > Suppose I have two kernels, one is A.B.C build by people Tom. And
> > > the other is A.B.C build by Jerry. The source code have been deleted
>
> > Run diff vmlinuz-Tom vmlinuz-Jerry and see if they differ. Then just  to
>
> Don't even bother.  If Tom and Jerry both did builds, the binaries *will*
> differ, because...
>
> % dmesg | grep 'Linux vers'
> [    0.000000] Linux version 5.1.0-rc5-next-20190416-dirty
> (source at turing-police) (gcc version 9.0.1 20190328 (Red Hat 9.0.1-0.12)
> (GCC)) #664 SMP PREEMPT Wed Apr 17 12:31:51 EDT 2019
>

Seriously ? Since when are you working for turing-police ? But yes
agreed...  at least it gives someone a
reasonably sane path to follow... nothing lost in trying right :)


> There's a datestamp, a build number, and a compiler version in there.
>
> Also, since vmlinuz is a binary file, /bin/cmp is a better choice than
> diff.
>
Agreed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20190511/ec21dea1/attachment.html>


More information about the Kernelnewbies mailing list