Re: Using kernel-build packages to autobuild modules

2002-12-07 Thread Herbert Xu
David Z Maze <[EMAIL PROTECTED]> wrote:
> 
> The fundamental problem seems to be that I want to build-depend on
> kernel-build-2.4.20, and then build a module for each of the flavors
> in /usr/src/kernel-build-2.4.20.  But which flavors exactly exist
> varies per platform, and might also vary between builds of the
> kernel.  This means that the contents of debian/control need to be
> different on each platform.  I could put every possible
> architecture/version/flavor triple in debian/control, but this seems
> unmaintainable.  Any hints?

Have a control file template and generate the real one at build time.
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




Using kernel-build packages to autobuild modules

2002-12-06 Thread David Z Maze
The perennial wart on the side of kernel module packages is that it's
a big pain to auto-build modules for the stock kernels.  It looks like
the 2.4.20 kernel packages now include a kernel-build package, which
advertises that it contains everything you need to do module builds.
Is there a good way to drop this into module builds?

The fundamental problem seems to be that I want to build-depend on
kernel-build-2.4.20, and then build a module for each of the flavors
in /usr/src/kernel-build-2.4.20.  But which flavors exactly exist
varies per platform, and might also vary between builds of the
kernel.  This means that the contents of debian/control need to be
different on each platform.  I could put every possible
architecture/version/flavor triple in debian/control, but this seems
unmaintainable.  Any hints?

-- 
David Maze [EMAIL PROTECTED]  http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
-- Abra Mitchell