[plug] What are all these commands to build a kernel
ryan at is.as.geeky.as
ryan at is.as.geeky.as
Fri Aug 9 17:15:32 WST 2002
And while it is important to know what they all do, it is also important to
be efficient (if you use Debian) and utilise the make-kpkg command that not
everyone knows about (i was suprised to learn earlier in the year)
# apt-get install kernel-package
# cd /usr/src/whatever
(configure the kernel how you see fit)
# time make-kpkg clean --revision myb0x3n.1 kernel-image
('time' is not essential but I like to use it)
That one commands does all the traditional kernel making activities as well
as creating a fully transportable single .deb package in ../ which can be
installed and removed via dpkg. It contains all the modules as well as
pre/postinst scripts to handle lilo config, boot disk creation etc.
It can get messy if you install a kernel package without removing any
previous custom ones, as it tends to assume the wrong things in creating the
LinuxOLD safeguard link, but this can all be fixed with some manual lilo
editing/symlinking/moving BEFORE installing your kernel package.
> dpkg -i ../kernel-image-whatever-it-is-called.deb
All except the last kernel .deb i built (104 bytes too big - thankyou IBM
ServerRAID) fit on a floppy disk .. which is very handy.
Ryan
----- Original Message -----
From: "Steege, Phil E" <phil.e.steege at lmco.com>
To: "PLUG" <plug at plug.linux.org.au>
Sent: Friday, August 09, 2002 3:21 AM
Subject: [plug] What are all these commands to build a kernel
> I see many different commands in kernel building tutorials.
> Some use 'make clean', some use 'make mrproper'.
> What are these used for, and when is it appropriate to use them?
>
> I normally just use the following:
>
> make xconfig
> make dep
> make
> make bzImage
> make modules
> make install
> make modules_install
> configure LILO or GRUB
>
>
More information about the plug
mailing list