Compiling a kernel in a ppa can take a few tricks. Here is how I do it:

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-natty.git
cd ubuntu-natty
git co -b mytest

git status | grep modified | awk -F: '{ print $2 }' | xargs git add
git commit -s -m 'My test'

fakeroot debian/rules clean

dch -i

export skipmodules=true
export skipabi=true

$flavour = shift;
$prev_abidir = shift;
$abidir = shift;
$skipmodule = 1;

dpkg-buildpackage -S -sa -rfakeroot -I.bzr -I.git -I.gitignore -i"\.git.*"

(Thanks to Sarvatt and tgardner for the info about ignoring VCS files)

fakeroot debian/rules binary-generic

to save having to deal with errors when building in ppa.

cd ..
dput ppa:myuser/ppa *.changes

To compile on your own system, just do:

fakeroot debian/rules clean
fakeroot debian/rules binary-generic

or if you also need ddebs (thanks Sarvatt):

fakeroot debian/rules binary-generic skipdbg=false

SergeHallyn_ppakernels (last edited 2012-08-28 16:09:48 by serge-hallyn)