Red Hat Bugzilla – Bug 76556
kernel-source: Makefile and version.h disagree on "extra version"
Last modified: 2007-04-18 12:47:53 EDT
In kernel-source-2.4.18-17.8.0 the top-level Makefile specifies
EXTRAVERSION = -17.8.0custom
However include/linux/version.h will define UTS_RELEASE using the normal "stock"
naming scheme (2.4.18-17.8.0smp/2.4.18-17.8.0BOOT/2.4.18-17.8.0bigmem/...). As a
result, the modules (under "make modules_install") will be installed in one
directory, but then looked up in a different one!
IMHO, include/linux/version.h should use the same version Makefile uses.
the version.h is set up so that you can compile external kernel modules against
the kernel-source. Once you start a full compile it will automatically be
overwritten with the EXTRAVERSION from the makefle.
Well, the reason I filed this bug is that I have compiled a custom kernel, and
than had to figure out why it couldn't find any modules...
did you run mrproper?
What steps did you run to compile your custom kernel?
(it might well be that there's a dependency missing somewhere)
> did you run mrproper?
> What steps did you run to compile your custom kernel?
If I am not mistaken, I edited .config (base on RedHat's one), then make
oldconfig, make dep, make bzImage, make modules, make modules_install, make install.
You need to run mrproper first.