This patch addresses 2 aspects of getting the atmel
driver to build on Gentoo:
#1) Unreferenced symbols
"wait_ms"
"__subdf3"
"__divdf3"
"__fixunsdfsi"
"__floatsidf"
"__gtdf2"
The first one reflects a switch from usb's wait_ms() to
a generalized delay routine: msleep()
The remaing 5 are floating point multiplication and
division operations. In src/usb/vnetusba.c, there are
several uses of 1e6 to scale the bitrate down. While
1e6 is a convenient shorthand, it is not the same as
1000000. Using 1e6 means 1000000.0, making it a
floating point operation instead of an integer one.
#2) integration with Kbuild
The current Makefile makes use of Kbuild to compile the
driver, but not to install the modules. The changes to
Makefile,kernelv2.6 enable the use of Kbuild for
installation as well as compilation.
I've only tested this on Gentoo, but it should work on
other 2.6 installations as well.
Patch for clean installation on 2.6.7
Logged In: NO
worked for me with SuSE 9.1 kernel 2.6.5-7.108-default