Re: Build Linux kernel to have comparable zImages

From: Andrew Donnellan
Date: Wed Feb 08 2017 - 19:26:50 EST


On 08/02/17 20:20, Lukasz Majewski wrote:
Dear All,

Maybe somebody can point me to solution to the following problem:

Problem:

I do want to be able to compare (with e.g. md5sum, sha1) two linux
zImages. The problem is that Linux compiles in current build time into
the binary. Hence, even two identical builds will have different hash.

Why:

I do want to do some considerable Kconfig rework and avoid situation
where some option would be left not enabled.

You might want to look at https://github.com/hardenedlinux/grsecurity-reproducible-build, I'm not familiar with it at all but it seems to be somewhat in the direction you're after.

--
Andrew Donnellan OzLabs, ADL Canberra
andrew.donnellan@xxxxxxxxxxx IBM Australia Limited