Compiling kernel modules is slightly different than compiling packages for OpenWrt. To figure out how to compile the module check out the following thread on the OpenWrt message board...

Kernel module example

It contains a simple example of a make file and source file that should get you started.

-- TimothyMerrifield - 16 Feb 2010

Copyright 2016 The Board of Trustees
of the University of
Helping Women Faculty Advance
Funded by NSF