disabling other kernel builds in debian/rules

Colin Watson cjwatson at ubuntu.com
Sat Mar 17 23:21:41 GMT 2007


On Fri, Feb 16, 2007 at 03:33:10PM -0500, Luke wrote:
> https://lists.ubuntu.com/archives/ubuntu-installer/2007-February/000008.html
> 
> This mentions that it is possible to avoid building all the kernels flavors.
> 
> I've downloaded the linux-source-2.6.17-2.6.17.1, and just ran fakeroot
> dpkg-buildpackage.
> 
> This compiles for a long, long time.
> 
> Looking in debian/rules, I don't see any mention (except 1) to 386
> architecture.  How do I disable building other things from editing this
> file?

There's a line like this:

  flavours := $(filter-out %.disabled,$(patsubst config.%,%,$(configs)))

Changing that to 'flavours := 386' or similar ought to do the trick.
(Bear in mind that I don't actually do this myself much, so there may be
extra quirks I don't know about.)

-- 
Colin Watson                                       [cjwatson at ubuntu.com]



More information about the Ubuntu-installer mailing list