Re: Integrating kernel module code into kernel source tree.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/7/27 Bob Beers <bob.beers@xxxxxxxxx>:
> On Mon, Jul 27, 2009 at 7:13 AM, Denis Borisevich<dennisfen@xxxxxxxxx> 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?

Seems this is what I need. Thank you for the clue!

--
Denis

>
> HTH,
> -Bob
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux