androidlinux

List the difference between two kernels


I have two Linux kernels with me. One is the Android Linux Kernel and the other is the normal Linux Kernel. I would like to know how to get the differences between them and list them on a file. I don't want to see the differences in the source files but I just want to have an indication that this file is different. More clearly I would like to list the files which are different in both the kernel directories.

Please help me with this.


Solution

  • diff has an option, -q that only tells you if the files differ. You could use that.

    Alternatively, you can generate the md5sum of each file using:

    find . -type f -exec md5sum {} \;
    

    Do this for both trees, output to two files, and diff the files.