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

Re: Building kernels on a different machine



Nenad Antonic wrote:
It is quite convenient to build debian kernel packages on one machine,
which has all the neccessary code, sources and automation, while they
are being installed on different machines.
The described fglrx-build.sh script, a well as the procedure suggested
by ATI, is geared towards building on the target machine. [...]

Yes; the script and the instructions on my page are intended to help inexperienced users getting up and running without too much trouble, and that doesn't usually entail building and distributing packages on multiple machines.

If you want a quite automatic build script that takes care of kernel and modules, look for the "build-kernel" script here:
  http://www.stanchina.net/~flavio/debian/quickref.html

I do as follows: after downloading a new kernel (say, Linux 2.6.6), I prepare a few directories for the architectures I use, like this:
  cp -al linux-2.6.6 linux-2.6.6+athlon
  cp -al linux-2.6.6 linux-2.6.6+686-smp

Then for each directory I copy the .config from the previous kernel version and launch the "build-kernel" script above that takes care of configuring and building the kernel and all the modules in /usr/src/modules, setting the various make-kpkg options appropriately.

This means that the plain kernel source tree is left untouched.

I'm tweaking the script and the process quite often, so it's a work in progress, but it Works For Me(tm).

--
Ciao, Flavio