It will probably break autodetection but you can try anyway

Just create a .deb package for your kernel and also dont' forget to install init package for 2.5.x kernels otherwise you won't be able to load modules :]