The quick guide to updating Debian's M68k kernel patches from Geert's linux-m68k tree.

Setup linux-m68k git

Initial clone.

git clone git://
cd linux-m68k

Branch Checkout.

Old git version (lenny).

git checkout -t -b m68k-v2.6.29 origin/m68k-v2.6.29

New git version (sid).

git checkout -t origin/m68k-v2.6.29

Add the Remote if you didn't clone from linux-m68k.git

git remote add linux-m68k git://

Make sure everything is up-to-date.

git remote update

Setup Debian kernel svn

svn co svn+ssh://

Put Git Patches Under Debian svn

Export patches.

git format-patch -o $dir v2.6.29..m68k-v2.6.29

Add patches to Debian series file.

cd ../sid/linux-2.6/debian/patches/series
echo >> $series
echo "#m68k patches for linux-m68k.git" >> $series
find ../bugfix/m68k/2.6.29 -print | sort | sed -e 's;../;+ ;' | sed -e 's;$; m68k;' >> $series

Setup Build Environment

Setup a cross-compiler if necessary.

Fetch debian original tarball (only available after an initial release).

apt-get --download-only source linux-2.6
tar -xvzf linux-2.6_2.6.29.orig.tar.gz 

Symlink the debian directory from svn.

cd linux-2.6-2.6.29
ln -s ../sid/linux-2.6/debian debian

Build it.

# add -b or -B as needed
dpkg-buildpackage -am68k -rfakeroot
# or
#DEB_HOST_ARCH=m68k debuild -B -am68k