I do this often on my machines as I have two with Asus P3V4X's that wont
compile 2.4 kernels and so have to compile the kernel on another board then
FTP it accross.
I do:
cd /usr/src/linux-2.4.19
make menuconfig
make dep && make bzImage && make modules
tar -czf ~/kernel.tar.gz *
then I ssh into the destined machine, ftp the kernel.tar.gz over to my home
directory then.
cd /usr/src
mkdir linux-2.4.19
tar -xzvf ~/kernel.tar.gz
make modules-install && cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.19
then edit grub.conf or lilo.conf as usual and point it to the new fandangled
kernel.
What I do is configure
----- Original Message -----
From: "Matt Purvis" <matt(a)purvis.co.nz>
To: "wlug" <wlug(a)list.waikato.ac.nz>
Sent: Saturday, September 21, 2002 12:42 AM
Subject: Re: [wlug] Compiling a kernel for a different machine
> On Fri, 20 Sep 2002, Colin Palmer wrote:
>
> > On Fri, 20 Sep 2002, Paul MacDonald wrote:
> >
> > > I would like to compile it on my desktop machine.
> > > Apart from making sure it is correctly configured for the laptop
hardware,
> > > what do I have to do.
> > > For instance, "make modules_install" will obviously not magically wisk
the
> > > modules over to the laptop.
> > > What files need to go where?
> >
> > Since you mention it's a Debian install, 'man make-kpkg' might be
> > helpful. Build the kernel and modules into a package file on your
desktop
> > box, copy that across to the laptop and install it with dpkg.
>
> Another method, if you're not using Debian, or want to do it manually for
> any reason, is to edit the Makefile and change the directory where
> modules_install will put the modules.
>
> Search for INSTALL_MOD_PATH in your Makefile (or specify it before the
> "modules_install:" line if there isn't an INSTALL_MOD_PATH in there). For
> example:
>
> INSTALL_MOD_PATH=/tmp/laptop-kernel
>
> Then run the command "make -n modules_install" to verify that the modules
> will go into the right place (the -n option on make will just print the
> commands to be executed). When it's correct, run "make modules_install",
> then tar up the modules and put them onto your laptop.
>
> Matt
>
>
>