Updated instructions for building kernel PPAs?

Darxus at ChaosReigns.com Darxus at ChaosReigns.com
Sat Oct 24 14:01:44 UTC 2009


On 10/24, Nigel Cunningham wrote:
> I've had a look through the kernel.ubuntu.com wiki, looking for details
> of how to build a PPA now that the debian.master directory has been

>From the responses I've gotten on this list, it is horribly documented.
#ubuntu-kernel on irc.freenode.net has also been helpful.
It should have a debian/README.source.  I've done some scribbling,
which I'll paste below.  The rest of what I've written is in
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/424927


The way I've managed to disable ABI and modules checks is "$abiskip
= 1;" in debian.master/scripts/abi-check and "$skipmodule = 1;" in
debian.master/scripts/module-check.

AUTOBUILD=1 in debian.master/rules.d/0-common-vars.mk is supposed to
disable ABI and module checks, if it's not horribly broken, which it
might be.  You will probably need to know what these are to get into
the archives, but for your first test builds you'll probably want to
disable them.

Another possible way to disable ABI and module checks is:
cd debian.master/abi ; for version in * ; do for arch in i386 amd64 lpia ia64 powerpc sparc ; do mkdir -p ${version}/${arch} ; echo 1> ${version}/${arch}/ignore ; echo 1> ${version}/${arch}/ignore.modules ; done ; done

All of these are wrong in some way:
https://help.ubuntu.com/community/Kernel/Compile
https://wiki.kubuntu.org/KernelTeam/KernelMaintenance
https://wiki.kubuntu.org/KernelTeam/AbstractedDebian

To change the package name, you need to change "linux" on the
first line of debian*/changelog, and on the first line of
debian.master/control.stub.in, in the name of the ../*orig.tar.gz,
and a bunch of other places.  This should be more automated.

The #'s in the kernel config are a LIE.  If you don't have a line matching
the pattern of "# CONFIG_DEFAULT_CFQ is not set" your build will die
with the error "Console input/output is redirected. Run 'make oldconfig'
to update configuration."  In the options it wants you to select from,
the one(s) your are missing have "(NEW)" at the end.




You're building a package, not a PPA.

-- 
"For every complex problem, there is a solution that is simple, neat,
and wrong." - H. L. Mencken
http://www.ChaosReigns.com                                 Guns save lives.




More information about the kernel-team mailing list