John Leeuw wrote:
> 
> Because it's the proper thing to do.
> 
> Couldn't resist,
> JL
> 
> PS - I wish I knew, the documentation that I have read thus far suggest make
> clean and make mrproper are the same and clearly this is not the case.
> 
> >>Does anyone know why one must do make mrproper before building a kernel?
> Is
> >>it gcc having problems with bad code?  I never had to do this on Redhat
> 6.x,
> >>but it is a must with 7.x.

mrproper removes dependency info and stale object files that
clean misses. changing from uniprocessor to SMP has always needed this.
The frist time this issue showed uop with Red Hat kernels was because
the kernel-sources rpm was created from the files for a SMP kernel.

I think arch changes (i386 -> i686 or athlon) alson need this
But it doesn't make sense to have multiple arch versions of
the sources package, since the kbuild system will correect this.

I think the sources rpm should be made after patching,
but before any 'make config'.

Look at the Makefiles to see what mrproper does that clean doesn't :)
A quick look at the top level Makefile shows mrproper removes
a lot of generated heaher files, some C source files, and all the
.depend
files along with the directories include/config and
include/linux/modules.
There are also architecture dependent versions of clean and mrproper.
Look at arch/$arch/Makefile for those.

        -Thomas



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to