I am installing Debian squeeze on a brand-new Mac Mini, and the Broadcom NIC in it only works with the latest tg3 module from Broadcom. I can build this module easily enough, but performing a manual build and overwriting the tg3.ko that comes with the kernel packages seems like a kludge because:
- the rather non-trivial steps I performed to build the module are not automated
- kernel upgrades will break ethernet by overwriting my custom-built module
I've read How do I build debian packages of kernel modules?, but the techniques I've researched so far seem to deal with the case of packaging a module that isn't in the kernel packages. Given that I want to replace a module already provided by the kernel package, rather than add a new module, how can I accomplish this without resorting to fragile kludges?