> Why doesn't Mandrake ship "clean" kernel source?  By clean, I mean
running
> "make mrproper" before building the src.rpm.
> 

because it prevents compiling external modules.

The right way is to ship without .config. then there are options

- add explanation text to Makefile that explains how to get standard
config. Something along the following lines:

ifeq (.config,$(wildcard .config))
include .config
[...]
else
        @echo "* You have to configure your kernel source before
compilation"
        @echo "* Configuration of your currently running kernel is
stored"
        @echo "* in /boot/config-$$(uname -r). To reproduce it copy the
file into"
        @echo "* .config and run make oldconfig:"
        @echo "*        cp /boot/config-$$(uname -r) .config"
        @echo "*        make oldconfig"
CONFIGURATION = config
do-it-all:      config
endif

- additionally do the above. It may be a bit risky, so I think the above
is enough.

> Also, the kernel build process changes all the .depend files in the
kernel
> tree.  This is seen by msec, which generates error messages for each
of the
> .depend files because they no longer match what was in
> kernel-source.src.rpm.  Using "make mrproper" before building the
src.rpm
> would remove a significant number of messages.
>

As I said, make mrproper is not possible, but we do not need .depend
files, you are right (meaning - do not need to compile external
modules). So the correct state should be

Kernel-source with correct autoconf.h, modversions.h and
include/linux/modules but without .config and .depend.

-andrej

 
> David


Reply via email to