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://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.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://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git
Make sure everything is up-to-date.
git remote update
Setup Debian kernel svn
svn co svn+ssh://svn.debian.org/svn/kernel/dists/sid
Put Git Patches Under Debian svn
Export patches.
dir=../sid/linux-2.6/debian/patches/bugfix/m68k/2.6.29 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 series=1-extra 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
Notes
- linux-m68k doesn't track point releases, so extra patches may conflict. Drop them from the patches and series.
- If gcc-4.x doesn't work you can change it in debian/config/m68k/defines.
- If everything builds fine, commit to svn and push.
