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

Re: Debian Boot CVS: joeyh



Debian Boot CVS Master wrote:
> Takes a set of .deb files with kernel modules in them, and a debian/control
> file in a special format, and builds a set of .udeb packages, each
> containing some of the modules.
> 
> In some senses, this is really sick; in others it is pretty cool. Just
> don't look in the rules file and you'll be ok.

A bit more on this -- all you really need to know to use it is how the
debian/control file works. Each stanza in the control file corresponds
to one kernel module .udeb the package will build. They look like this:

Package: nic-modules-#KVERS#
Architecture: all
Provides: eepro100.o, tulip.o, tulip_cb.o, eepro100_cb.o
Description: Common NIC drivers
 This package contains common NIC drivers for the linux kernel.

#KVERS# is automagically replaced with the kernel version. The Provides:
line controls what module files are put in the package. The modules
themselves are pulled out of .debs that you have to maunally provide in
the debs/ directory (this is going to change, I hope).

The result is something like this:

joey@kite:~/debian/packages/debian-installer>ls *.udeb
nic-modules-2.4.0_0.001_i386.udeb  serial-modules-2.4.0_0.001_i386.udeb
ppp-modules-2.4.0_0.001_i386.udeb
joey@kite:~/debian/packages/debian-installer>dpkg --contents nic-modules-2.4.0_0.001_i386.udeb
drwxr-xr-x root/root         0 2001-01-24 18:03:08 ./
drwxr-xr-x root/root         0 2001-01-24 18:03:05 ./lib/
drwxr-xr-x root/root         0 2001-01-24 18:03:05 ./lib/modules/
drwxr-xr-x root/root         0 2001-01-24 18:03:05 ./lib/modules/2.4.0/
drwxr-xr-x root/root         0 2001-01-24 18:03:05 ./lib/modules/2.4.0/kernel/
drwxr-xr-x root/root         0 2001-01-24 18:03:05 ./lib/modules/2.4.0/kernel/drivers/
drwxr-xr-x root/root         0 2001-01-24 18:03:05 ./lib/modules/2.4.0/kernel/drivers/net/
-rw-r--r-- root/root     24572 2001-01-24 18:03:05 ./lib/modules/2.4.0/kernel/drivers/net/eepro100.o
drwxr-xr-x root/root         0 2001-01-24 18:03:05 ./lib/modules/2.4.0/pcmcia/
-rw-r--r-- root/root     41692 2001-01-24 18:03:05 ./lib/modules/2.4.0/pcmcia/tulip_cb.o
-rw-r--r-- root/root     22948 2001-01-24 18:03:05 ./lib/modules/2.4.0/pcmcia/eepro100_cb.o

There are a lot of undertermined things like how flavors will be handled.

-- 
see shy jo



Reply to: