Skip to contentSkip to conversation

Build Linux kernel to have comparable zImages

DISCUSSION Lukasz Majewski 2 participants 3 messages Feb 8, 2017 – Feb 9, 2017

lore
Share & tools
lore
#0 lore raw

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.

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]

#1 lore raw
Quoted 6 lines · Lukasz Majewski

Dear All,

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

Problem:

Quoted 8 lines

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.

Signature · 2 lines
Andrew Donnellan              OzLabs, ADL Canberra
[email protected]  IBM Australia Limited
#2 lore raw
Quoted 14 lines · On Thu, 9 Feb 2017 11:25:15 +1100 Andrew Donnellan…
Quoted 13 lines · Lukasz Majewski

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:

Quoted 7 lines
Quoted 2 lines

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.

Thanks for pointing this out :-).

Quoted 1 line

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]