> On Tue, May 08, 2001 at 05:16:58AM +0800, John Summerfield wrote:
> > > Tony Nugent <[EMAIL PROTECTED]> writes:
> > > 
> > > > On Sun May 06 2001 at 21:48, Bill Nottingham wrote:
> > > > 
> > > > > Dan Kegel ([EMAIL PROTECTED]) said:
> > > > > > 'make modules' in red hat 7.1 fails for me like this:
> > > > 
> > > > > Did you remember to do 'make mrproper' before rebuilding?
> > > > 
> > > > This is definitely an FAQ.
> > > > 
> > > > Why isn't the kernel-source rpm distributed like that as its default
> > > > state?
> > > 
> > > To facilitate compilation of modules on your own, without having to
> > > build a kernel first.
> > 
> > Sounds to me like you've got it the wrong way round. Lots of people want to
>  build 
> > kernels, very few as far as I can see want to build just a module.
> > 
> > And the odds are you have built with the wrong configuration for an awful l
> ot of 
> > folk. I'd guess that most don't want SMP or the "enterprise" kernel, but a 
> few want 
> > one of those, and that the source tree is wrong for at least one of those g
> roups.
> > 
> > If I'm wrong, please describe how.
> > -- 
> 
> I think it depends on how you look at it. Probably the best case I can think
> of for just building a module is VMware. Besides, I think the need for 
> make mrproper has been there for several releases now (at least I always 
> needed to do it to avoid problems).
> 
> Here is my 10 second kernel-build guide that I use at least. It works without
> a problem.
> 
> cd /usr/src/linux-2.4
> make mrproper
> cp configs/{config file for architecture, smp, enterprise, etc. that is desir
> ed} .config
> make oldconfig     <--- not sure this is necessarily needed
> edit Makefile and change EXTRAVERSION
> make menuconfig
> make dep && make clean && make bzImage && make modules && make modules_instal
> l && make install
> mkinitrd /boot/initrd-{version}.img {version}
> edit /etc/lilo.conf
> lilo
> depmod -a
> shutdown -r now
> 
> I may have missed something in the haste to type this out, however.
>

It's lengthier than it needs to be. Edit lilo.conf first and omit lilo.

I thik most people don't need "mkinitrd"
Nobody needs to run depmod - it's done on boot.

And doesn't explain why RH shouldn't ship kernel source in the state where "make 
mrproper" is needed.

btw The "make" can be simplified to
make oldconfig clean bzImage modules
su
make modules_install install
(this leaves the result of running lilo on the screen)

-- 
Cheers
John Summerfield
http://www2.ami.com.au/ for OS/2 & linux information.
Configuration, networking, combined IBM ftpsites index.

Microsoft's most solid OS: http://www.geocities.com/rcwoolley/

Note: mail delivered to me is deemed to be intended for me, for my disposition.





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

Reply via email to