[lug] Building RedHat's kernel?
Scott A. Herod
herod at interact-tv.com
Wed Aug 29 10:21:11 MDT 2001
Thanks Ferdinand,
Apparently the 'make mrproper' was the key. It had been erroring
out on the first module, drivers/atm/eni.c, for me complaining about
errors in modules.h that I suspect were from functions defined in
assembler code. It's made it past that point now.
Scott
Ferdinand Schmid wrote:
>
> Scott:
> I believe your first step needs to be make mrproper. Then copy the .config over
> and to the usual make xconfig; make dep; make clean; make modules; make
> modules_install (and maybe make bzImage).
>
> Ferdinand
>
> Scott A. Herod wrote:
>
> > Hello,
> >
> > I'm trying to patch a driver in the 2.4.2 kernel that came with
> > RH 7.1. I'd really like to build only that one module and ship
> > it around, but that requires a valid kernel build in
> > /usr/src/kernel-2.4.
> > Correct? Anyway, I can build a kernel.org version of 2.4.2 without
> > any problem, but the driver in that build does not match RH's
> > because of missing dependencies. ( I used the
> > config/kernel-2.4.2-i386.config
> > file that RH ships with their kernel source. )
> >
> > Is there some way to compile RH's shipped version of the kernel from
> > their source tree? The build fails in "make modules". My steps are:
> >
> > rpm -i ( kernel-source-2.4.2-2 source off the 7.1 disk ).
> > cd /usr/src/kernel-2.4
> > cp config/kernel-2.4.2-i386.config .config
> > make clean
> > make xconfig ( merely save and exit. You've got to do this step. )
> > make dep
> > make
> > make modules ( This fails at the first file. )
> >
> > Is there some issue with the version of gcc? I have to do nothing
> > special
> > with the kernel.org version, which btw builds fine even when I copied
> > RH's config file as above. I did switch the Makefile to use kgcc
> > instead
> > and it still couldn't build RH's at the make modules step.
> >
> > Thanks,
> >
> > Scott
> --
> Ferdinand Schmid
> http://www.archenergy.com
> 303-444-4149 x231
More information about the LUG
mailing list