On Mon, Jul 27, 2009 at 7:13 AM, Denis Borisevich<[email protected]> wrote:
> Hi!
> I have driver for PCI serial board, it compiles as a module, loads and
> works fine. Now it exists as a several files outside the kernel source
> tree. I want to integrate this code within the kernel source tree: I
> want it to exist as some files inside the kernel source, I want to be
> able to select this driver in kernel config and so on. So can any one
> provide me any instructions to achieve this task (I hope it is not
> very difficult) or point to any online documents, etc.?

You will need a Makefile and Kconfig like any other kernel module.
Look at the source for examples.  Then put your source files,
 including the Makefile and Kconfig in a relevant (new) subdirectory
 and then try make xconfig.  Rinse. repeat.

Maybe <kernel_source>/Documentation/kbuild is a good place to start reading?

HTH,
-Bob

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to