Skip to content
Advertisement

How to build the same Linux Kernel twice sources and get the same checksum

I’m searching if it’s possible to build the same Linux Kerneltwice (same sources, same environment, same options, same compiler) and get the same checksum. Anybody knows how to do so?

Advertisement

Answer

The date of build is included in the version, see init version.c :

JavaScript

and UTS_VERSION is defined in include/linux/compile.h :

JavaScript

compile.h is generated by scripts/mkcompile_h, where you find the following line :

JavaScript

By removing the date from the pervious line, you should be able to get rid of the build time dependency.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement