Re: Building a kernel with a driver

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

 




Hi,

In the makefile add

SUBDIRS += pathname/ur_driver
DRIVERS += pathname/ur_driver/ur_driver.o

and if you have a configuration file add it in the corresponding config.in
file
source pathname/ur_driver/config.in

and your initialization function should be preceded by
__init ur_init_func( );

kernel 2.4 takes care of calling ur initialization function when it is
preceded by __init

regards
Shifani



                                                                                                     
                    "SATHISH.J"                                                                      
                    <sathish.j@tatainfotech       To:     kernelnewbies <kernelnewbies@nl.linux.org> 
                    .com>                         cc:                                                
                    Sent by:                      Subject:     Building a kernel with a driver       
                    kernelnewbies-bounce@nl                                                          
                    .linux.org                                                                       
                                                                                                     
                                                                                                     
                    07/29/2002 12:19 PM                                                              
                                                                                                     
                                                                                                     




Hi,

I know how to add a driver as a module. If I want the driver to be inbuilt
into the kernel, what steps should I follow. What all modifications
should I make?



Thanks and regards,
Sathish.J

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/





--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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