tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to compile the kernel identical to the vanilla one?

On Jul 24, 2013, at 8:02 PM, Edwina Ng <> wrote:

> Hi,
> I have extracted the configuration of /netbsd after a vanilla installation 
> with config(1), then untar the syssrc.tgz from source/sets and build the 
> kernel. The file netbsd generated in the build directory is not the same file 
> size as the one in the root directory.
> I save the kernel that I have built, delete the build directory and started 
> again afresh. The resultant netbsd has the same file size of the previous one 
> yet, cmp(1) says there are some different.
> So my question is, given the same source, same kernel config file, same tool 
> chain and same platform, is that possible for two systems to produce 
> identical compiled kernel images? If not, what is the reason? If yes, which 
> step did I miss?

you probably need MKREPRO=yes when building the kernel to remove things like 
and stuff.

Home | Main Index | Thread Index | Old Index