Walt Mankowski on Thu, 8 Jul 1999 00:56:35 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [Plug] Ok, attempt number two..+ CORRECTIONS


On Thu, Jul 08, 1999 at 03:59:14AM +0000, Martin DiViaio wrote:
> You should do make mrproper BEFORE make config. Especially if you are
> compiling from the sources a second (or more) time. make mrproper will
> clean out all of the object files from your previous compile so you are
> guaranteed to get a clean compile.
> 
> There is also a make distclean that does pretty much the same thing as
> make mrproper.

There is documentation for making the kernel in several places.
Assuming you unpacked your kernel in /usr/src/linux, you should first
look in /usr/src/linux/README.  That documents just about every make
target you're likely to ever use.  There are also the beginnings of
some more extensive documentation in the
/usr/src/linux/Documentation/kbuild directory.  Unfortunately it looks
like it was never finished.

My other piece of advice is to always build a new kernel on a floppy
(make zdisk or make bzdisk, the only difference being that bzdisk will
compress the kernel a little more).  That way if the kernel doesn't
work, you just have to remove the floppy and reboot off the hard drive
with an old kernel you know works.

I generally run through the following steps to build a kernel:

insert floppy into drive
make menuconfig
make dep
make clean
make bzdisk
make modules
make modules_install
reboot from floppy

Once you're happy that your new kernel works, go back to
/usr/src/linux and run

make bzlilo

to install the new kernel on your harddrive.

Obviously you can get a lot more sophisticated (storing multiple boot
images on your harddrive, for instance) but these are the basic steps.

Once you have your config set up the way you like, you can replace

make menuconfig

with

make oldconfig

This will just prompt you for whatever options have been added since
the last time you ran a make config.  Otherwise it will use all your
old settings.

Your config options are stored in /usr/src/linux/.config.  You might
want to copy that file somewhere else before you run a make
menuconfig, oldconfig, etc., so if you totally mess things up you can
always go back to something that worked.  You can also diff your old
and new .config files to see what changed.

Walt


_______________________________________________
Plug maillist  -  Plug@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug